wok-6.x rev 9467

Fix receipts that remove lines that removed .pyc and .pyo files. Tazwok does that now.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Apr 03 14:11:25 2011 +0000 (2011-04-03)
parents d434bfe7b498
children c2f84a816b96
files deluge/receipt gajim/receipt python-mysql/receipt python-pygame/receipt python/receipt
line diff
     1.1 --- a/deluge/receipt	Sun Apr 03 12:45:27 2011 +0000
     1.2 +++ b/deluge/receipt	Sun Apr 03 14:11:25 2011 +0000
     1.3 @@ -16,7 +16,7 @@
     1.4  {
     1.5  	cd $src
     1.6  	LC_ALL=C python setup.py build
     1.7 -	LC_ALL=C python setup.py install --prefix=/usr --root=$PWD/_pkg --optimize=1
     1.8 +	LC_ALL=C python setup.py install --prefix=/usr --root=$DESTDIR --optimize=1
     1.9  }
    1.10  
    1.11  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.12 @@ -27,8 +27,6 @@
    1.13  	cp -a $_pkg/usr/bin $fs/usr
    1.14  	cp -a $_pkg/usr/share/applications $fs/usr/share
    1.15  	cp -a $_pkg/usr/share/pixmaps $fs/usr/share
    1.16 -	find $fs/usr -name "*.pyc" -delete
    1.17 -	find $fs/usr -name "*.pyo" -delete
    1.18  	sed -i 's|deluge.svg|deluge.png|g' $fs/usr/lib/python2.7/site-packages/deluge/ui/gtkui/common.py
    1.19  }
    1.20  
     2.1 --- a/gajim/receipt	Sun Apr 03 12:45:27 2011 +0000
     2.2 +++ b/gajim/receipt	Sun Apr 03 14:11:25 2011 +0000
     2.3 @@ -6,7 +6,7 @@
     2.4  SHORT_DESC="Gtk Jabber client."
     2.5  MAINTAINER="rocky@slitaz.org"
     2.6  DEPENDS="gtkspell python dbus-python pygtk pygobject pyopenssl python-pysqlite xorg-libXss bind-client"
     2.7 -BUILD_DEPENDS="gettext gtkspell gtkspell-dev python-dev pygtk-dev pygobject-dev dbus-dev xorg-libXss xorg-libXss-dev xcb-util-dev enchant-dev xorg-scrnsaverproto xorg-xextproto gtk+-dev libffi-dev intltool"
     2.8 +BUILD_DEPENDS="gettext xcb-util-dev enchant-dev xorg-scrnsaverproto xorg-xextproto libffi-dev intltool"
     2.9  TARBALL="$PACKAGE-$VERSION.tar.bz2"
    2.10  WEB_SITE="http://www.gajim.org/"
    2.11  WGET_URL="http://www.gajim.org/downloads/${VERSION%.*}/$TARBALL"
    2.12 @@ -15,11 +15,9 @@
    2.13  compile_rules()
    2.14  {
    2.15      cd $src
    2.16 -    ./configure --prefix=/usr \
    2.17 -        --mandir=/usr/share/man \
    2.18 -        $CONFIGURE_ARGS &&
    2.19 +    ./configure &&
    2.20      make &&
    2.21 -    make DESTDIR=$PWD/_pkg install
    2.22 +    make install
    2.23  }
    2.24  
    2.25  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.26 @@ -31,6 +29,4 @@
    2.27      cp -a $_pkg/usr/share/icons/hicolor/64x64/apps/gajim.png $fs/usr/share/pixmaps
    2.28      cp -a $_pkg/usr/share/applications $fs/usr/share
    2.29      chmod +x $fs/usr/bin/*
    2.30 -    find $fs/usr/share/gajim/ -name "*.pyo" -delete
    2.31 -    find $fs/usr/share/gajim/ -name "*.pyc" -delete
    2.32  }
     3.1 --- a/python-mysql/receipt	Sun Apr 03 12:45:27 2011 +0000
     3.2 +++ b/python-mysql/receipt	Sun Apr 03 14:11:25 2011 +0000
     3.3 @@ -8,9 +8,9 @@
     3.4  MAINTAINER="claudinei@slitaz.org"
     3.5  TARBALL="$SOURCE-$VERSION.tar.gz"
     3.6  WEB_SITE="http://mysql-python.sourceforge.net/"
     3.7 -WGET_URL="http://ufpr.dl.sourceforge.net/sourceforge/mysql-python/$TARBALL"
     3.8 -DEPENDS="python mysql zlib openssl"
     3.9 -BUILD_DEPENDS="python-dev mysql-dev zlib-dev openssl-dev setuptools"
    3.10 +WGET_URL="$SF_MIRROR/mysql-python/$TARBALL"
    3.11 +DEPENDS="python libmysqlclient zlib openssl"
    3.12 +BUILD_DEPENDS="setuptools"
    3.13  
    3.14  # Rules to configure and make the package.
    3.15  compile_rules()
    3.16 @@ -18,13 +18,12 @@
    3.17  	cd $src
    3.18  	sed -i 's/threadsafe = True/threadsafe = False/' $src/site.cfg
    3.19  	python setup.py build
    3.20 -	python setup.py install --root=$PWD/_pkg
    3.21 +	python setup.py install --root=$DESTDIR
    3.22  }
    3.23  
    3.24  # Rules to gen a SliTaz package suitable for Tazpkg.
    3.25  genpkg_rules()
    3.26  {
    3.27 -	find $_pkg -name "*.pyc" -exec rm '{}' \;
    3.28  	mkdir -p $fs/usr
    3.29  	cp -a $_pkg/usr/lib $fs/usr
    3.30  }
     4.1 --- a/python-pygame/receipt	Sun Apr 03 12:45:27 2011 +0000
     4.2 +++ b/python-pygame/receipt	Sun Apr 03 14:11:25 2011 +0000
     4.3 @@ -11,17 +11,14 @@
     4.4  WGET_URL="$WEB_SITE/ftp/$TARBALL"
     4.5  DEPENDS="python libsdl libsdl-image libsdl-mixer libsdl-ttf python-numpy \
     4.6  libsmpeg gcc-lib-base"
     4.7 -BUILD_DEPENDS="python python-dev python-numpy libsdl libsdl-dev libsdl-image \
     4.8 -libsdl-image-dev libsdl-mixer libsdl-mixer-dev libsdl-ttf libsdl-ttf-dev \
     4.9 -libsmpeg libsmpeg-dev"
    4.10  
    4.11  # Rules to configure and make the package.
    4.12  compile_rules()
    4.13  {
    4.14  	cd $src
    4.15 -	patch -Np0 -i ../stuff/config.patch
    4.16 +	patch -Np0 -i $stuff/config.patch
    4.17  	python config.py -auto &&
    4.18 -	python setup.py install --root=$PWD/_pkg
    4.19 +	python setup.py install --root=$DESTDIR
    4.20  }
    4.21  
    4.22  # Rules to gen a SliTaz package suitable for Tazpkg.
    4.23 @@ -32,7 +29,6 @@
    4.24  	cp -a $_pkg/usr/lib $fs/usr
    4.25  	chmod 644 $fs/usr/lib/$PYTHON_LIB/site-packages/pygame/freesansbold.ttf
    4.26  	cp -a $_pkg/usr/include $fs/usr
    4.27 -	find $fs/usr/lib/$PYTHON_LIB/ -name "*.pyc" -delete
    4.28  }
    4.29  
    4.30  # Remove old package.
     5.1 --- a/python/receipt	Sun Apr 03 12:45:27 2011 +0000
     5.2 +++ b/python/receipt	Sun Apr 03 14:11:25 2011 +0000
     5.3 @@ -7,7 +7,6 @@
     5.4  MAINTAINER="pankso@slitaz.org"
     5.5  SOURCE="Python"
     5.6  DEPENDS="openssl bzlib readline sqlite zlib ncursesw"
     5.7 -BUILD_DEPENDS="$DEPENDS readline-dev openssl-dev ncursesw-dev"
     5.8  TARBALL="$SOURCE-$VERSION.tar.bz2"
     5.9  WEB_SITE="http://www.python.org/"
    5.10  WGET_URL="http://www.python.org/ftp/python/$VERSION/$TARBALL"
    5.11 @@ -16,11 +15,9 @@
    5.12  compile_rules()
    5.13  {
    5.14  	cd $src
    5.15 -	./configure --enable-shared --with-ncurses \
    5.16 -	--prefix=/usr --infodir=/usr/share/info \
    5.17 -	--mandir=/usr/share/man $CONFIGURE_ARGS &&
    5.18 +	./configure --enable-shared --with-ncurses &&
    5.19  	make &&
    5.20 -	make DESTDIR=$PWD/_pkg install
    5.21 +	make DESTDIR=$DESTDIR install
    5.22  }
    5.23  
    5.24  # Rules to gen a SliTaz package suitable for Tazpkg.
    5.25 @@ -33,8 +30,6 @@
    5.26  	# needed for mericurial to work now
    5.27  	cp -a $_pkg/usr/include/${PACKAGE}$python_version/pyconfig.h \
    5.28  		$fs/usr/include/${PACKAGE}$python_version
    5.29 -	find $fs/usr/lib/${PACKAGE}$python_version -name "*.pyc" -delete
    5.30 -	find $fs/usr/lib/${PACKAGE}$python_version -name "*.pyo" -delete
    5.31  	rm -f $fs/usr/bin/*-config
    5.32  	strip -s $fs/usr/bin/* 2>/dev/null
    5.33  	strip -s $fs/usr/lib/*.so* 2>/dev/null