wok-next rev 6594

fix python path
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Oct 09 17:19:46 2010 +0200 (2010-10-09)
parents 7c1f2a196c26
children 9f96d6c3e8db
files childsplay/receipt dbus-python-dev/receipt gcc+gcj/receipt gnome-menus-dev/receipt gnome-menus/receipt libxslt-dev/receipt pycairo/receipt pygobject/receipt pygtk/receipt python-couchdbkit/receipt python-pygame/receipt python-restclient/receipt python-sqlalchemy/receipt python-turbogears/receipt rrdtool-python/receipt slitaz-mercurial-style/receipt
line diff
     1.1 --- a/childsplay/receipt	Sat Oct 09 15:59:11 2010 +0200
     1.2 +++ b/childsplay/receipt	Sat Oct 09 17:19:46 2010 +0200
     1.3 @@ -16,7 +16,7 @@
     1.4  compile_rules()
     1.5  {
     1.6  	cd $src
     1.7 -	PYTHON_LIB=$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
     1.8 +	PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
     1.9  	sed -i "s|PREFIX = '/usr/local'|PREFIX = '_pkg/usr'|" $src/setup.py
    1.10  	sed -i \
    1.11  "s|get_python_lib()|'_pkg', 'usr', 'lib', '$PYTHON_LIB', 'site-packages'|" \
     2.1 --- a/dbus-python-dev/receipt	Sat Oct 09 15:59:11 2010 +0200
     2.2 +++ b/dbus-python-dev/receipt	Sat Oct 09 17:19:46 2010 +0200
     2.3 @@ -11,7 +11,7 @@
     2.4  # Rules to gen a SliTaz package suitable for Tazpkg.
     2.5  genpkg_rules()
     2.6  {
     2.7 -	PYTHON_LIB=$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
     2.8 +	PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
     2.9  	mkdir -p $fs/usr/lib/$PYTHON_LIB/site-packages
    2.10  	cp -a $_pkg/usr/lib/python*/*/*.la \
    2.11  		$fs/usr/lib/$PYTHON_LIB/site-packages
     3.1 --- a/gcc+gcj/receipt	Sat Oct 09 15:59:11 2010 +0200
     3.2 +++ b/gcc+gcj/receipt	Sat Oct 09 17:19:46 2010 +0200
     3.3 @@ -61,7 +61,7 @@
     3.4      mkdir -p $SOURCE-$VERSION-build
     3.5      cd $SOURCE-$VERSION-build
     3.6  	
     3.7 -    PYTHON_LIB=$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
     3.8 +    PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
     3.9      ../$SOURCE-$VERSION/configure --prefix=/usr --libexecdir=/usr/lib \
    3.10  		--infodir=/usr/share/info --mandir=/usr/share/man --enable-nls \
    3.11  		--enable-languages=c,c++,objc,java --enable-shared \
     4.1 --- a/gnome-menus-dev/receipt	Sat Oct 09 15:59:11 2010 +0200
     4.2 +++ b/gnome-menus-dev/receipt	Sat Oct 09 17:19:46 2010 +0200
     4.3 @@ -12,7 +12,7 @@
     4.4  # Rules to gen a SliTaz package suitable for Tazpkg.
     4.5  genpkg_rules()
     4.6  {
     4.7 -	PYTHON_LIB=$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
     4.8 +	PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
     4.9  	mkdir -p $fs/usr/lib/$PYTHON_LIB/site-packages
    4.10  	cp -a $_pkg/usr/lib/*.*a $fs/usr/lib
    4.11  	cp -a $_pkg/usr/lib/$PYTHON_LIB/site-packages/*.*a \
     5.1 --- a/gnome-menus/receipt	Sat Oct 09 15:59:11 2010 +0200
     5.2 +++ b/gnome-menus/receipt	Sat Oct 09 17:19:46 2010 +0200
     5.3 @@ -9,7 +9,7 @@
     5.4  BUILD_DEPENDS="perl perl-xml-parser python-dev glib glib-dev"
     5.5  TARBALL="$PACKAGE-$VERSION.tar.gz"
     5.6  WEB_SITE="http://www.gnome.org/"
     5.7 -WGET_URL="http://ftp.gnome.org/pub/GNOME/desktop/2.30/$VERSION/sources/$TARBALL"
     5.8 +WGET_URL="http://ftp.gnome.org/pub/GNOME/desktop/${VERSION%.*}/$VERSION/sources/$TARBALL"
     5.9  
    5.10  # Rules to configure and make the package.
    5.11  compile_rules()
    5.12 @@ -27,7 +27,7 @@
    5.13  # Rules to gen a SliTaz package suitable for Tazpkg.
    5.14  genpkg_rules()
    5.15  {
    5.16 -	PYTHON_LIB=$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
    5.17 +	PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
    5.18  	mkdir -p $fs/usr/lib
    5.19  	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
    5.20  	cp -a $_pkg/usr/lib/$PYTHON_LIB $fs/usr/lib
     6.1 --- a/libxslt-dev/receipt	Sat Oct 09 15:59:11 2010 +0200
     6.2 +++ b/libxslt-dev/receipt	Sat Oct 09 17:19:46 2010 +0200
     6.3 @@ -22,7 +22,7 @@
     6.4  	chmod +x $fs/usr/bin/*
     6.5  	
     6.6  	# Python module
     6.7 -	PYTHON_LIB=$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
     6.8 +	PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
     6.9  	cp -a $_pkg/usr/lib/$PYTHON_LIB $fs/usr/lib
    6.10  	
    6.11  	cp -a $_pkg/usr/include $fs/usr
     7.1 --- a/pycairo/receipt	Sat Oct 09 15:59:11 2010 +0200
     7.2 +++ b/pycairo/receipt	Sat Oct 09 17:19:46 2010 +0200
     7.3 @@ -25,7 +25,7 @@
     7.4  # Rules to gen a SliTaz package suitable for Tazpkg.
     7.5  genpkg_rules()
     7.6  {
     7.7 -	PYTHON_LIB=$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
     7.8 +	PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
     7.9  	mkdir -p $fs/usr/lib
    7.10  	cp -a $_pkg/usr/lib/$PYTHON_LIB $fs/usr/lib
    7.11  }
     8.1 --- a/pygobject/receipt	Sat Oct 09 15:59:11 2010 +0200
     8.2 +++ b/pygobject/receipt	Sat Oct 09 17:19:46 2010 +0200
     8.3 @@ -24,7 +24,7 @@
     8.4  # Rules to gen a SliTaz package suitable for Tazpkg.
     8.5  genpkg_rules()
     8.6  {
     8.7 -	PYTHON_LIB=$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
     8.8 +	PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
     8.9  	mkdir -p $fs/usr/lib
    8.10  	cp -a $_pkg/usr/lib/$PYTHON_LIB $fs/usr/lib
    8.11  	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
     9.1 --- a/pygtk/receipt	Sat Oct 09 15:59:11 2010 +0200
     9.2 +++ b/pygtk/receipt	Sat Oct 09 17:19:46 2010 +0200
     9.3 @@ -12,7 +12,7 @@
     9.4  BUILD_DEPENDS="pygobject-dev pycairo-dev libglade-dev python-dev xcb-util-dev expat-dev"
     9.5  TARBALL="$PACKAGE-$VERSION.tar.bz2"
     9.6  WEB_SITE="http://www.pygtk.org/"
     9.7 -WGET_URL="http://ftp.gnome.org/pub/GNOME/sources/pygtk/2.16/$TARBALL"
     9.8 +WGET_URL="http://ftp.gnome.org/pub/GNOME/sources/pygtk/${VERSION%.*}/$TARBALL"
     9.9  
    9.10  
    9.11  # Rules to configure and make the package.
    9.12 @@ -30,7 +30,7 @@
    9.13  # Rules to gen a SliTaz package suitable for Tazpkg.
    9.14  genpkg_rules()
    9.15  {
    9.16 -	PYTHON_LIB=$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
    9.17 +	PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
    9.18  	mkdir -p $fs/usr/lib
    9.19  	cp -a $_pkg/usr/lib/$PYTHON_LIB $fs/usr/lib
    9.20  }
    10.1 --- a/python-couchdbkit/receipt	Sat Oct 09 15:59:11 2010 +0200
    10.2 +++ b/python-couchdbkit/receipt	Sat Oct 09 17:19:46 2010 +0200
    10.3 @@ -23,7 +23,7 @@
    10.4  # Rules to gen a SliTaz package suitable for Tazpkg.
    10.5  genpkg_rules()
    10.6  {
    10.7 -	PYTHON_LIB=$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
    10.8 +	PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
    10.9  	_pkg="$SOURCE/_pkg"
   10.10  	for file in `find $_pkg | grep 'pyc$'`; do
   10.11  		rm $file
    11.1 --- a/python-pygame/receipt	Sat Oct 09 15:59:11 2010 +0200
    11.2 +++ b/python-pygame/receipt	Sat Oct 09 17:19:46 2010 +0200
    11.3 @@ -26,7 +26,7 @@
    11.4  # Rules to gen a SliTaz package suitable for Tazpkg.
    11.5  genpkg_rules()
    11.6  {
    11.7 -	PYTHON_LIB=$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
    11.8 +	PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
    11.9  	mkdir -p $fs/usr
   11.10  	cp -a $_pkg/usr/lib $fs/usr
   11.11  	chmod 644 $fs/usr/lib/$PYTHON_LIB/site-packages/pygame/freesansbold.ttf
    12.1 --- a/python-restclient/receipt	Sat Oct 09 15:59:11 2010 +0200
    12.2 +++ b/python-restclient/receipt	Sat Oct 09 17:19:46 2010 +0200
    12.3 @@ -23,7 +23,7 @@
    12.4  # Rules to gen a SliTaz package suitable for Tazpkg.
    12.5  genpkg_rules()
    12.6  {
    12.7 -	PYTHON_LIB=$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
    12.8 +	PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
    12.9  	_pkg="$SOURCE/_pkg"
   12.10  	for file in `find $_pkg | grep 'pyc$'`; do
   12.11  		rm $file
    13.1 --- a/python-sqlalchemy/receipt	Sat Oct 09 15:59:11 2010 +0200
    13.2 +++ b/python-sqlalchemy/receipt	Sat Oct 09 17:19:46 2010 +0200
    13.3 @@ -23,7 +23,7 @@
    13.4  # Rules to gen a SliTaz package suitable for Tazpkg.
    13.5  genpkg_rules()
    13.6  {
    13.7 -	PYTHON_LIB=$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
    13.8 +	PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
    13.9  	for file in `find $_pkg | grep 'pyc$'`; do
   13.10  		rm $file
   13.11  	done
    14.1 --- a/python-turbogears/receipt	Sat Oct 09 15:59:11 2010 +0200
    14.2 +++ b/python-turbogears/receipt	Sat Oct 09 17:19:46 2010 +0200
    14.3 @@ -17,7 +17,7 @@
    14.4  # Rules to configure and make the package.
    14.5  compile_rules()
    14.6  {
    14.7 -	PYTHON_LIB=$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
    14.8 +	PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
    14.9  	# Tgsetup dont build TurboGearsKid and friends if there are already
   14.10  	# installed, so remove python-turbogears before building.
   14.11  	if [ -d /var/lib/tazpkg/installed/python-turbogears ]; then
   14.12 @@ -34,7 +34,7 @@
   14.13  # Rules to gen a SliTaz package suitable for Tazpkg.
   14.14  genpkg_rules()
   14.15  {
   14.16 -	PYTHON_LIB=$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
   14.17 +	PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
   14.18  	cp -a $_pkg/usr $fs
   14.19  	rm $fs/usr/lib/$PYTHON_LIB/site-packages/site.py*
   14.20  }
    15.1 --- a/rrdtool-python/receipt	Sat Oct 09 15:59:11 2010 +0200
    15.2 +++ b/rrdtool-python/receipt	Sat Oct 09 17:19:46 2010 +0200
    15.3 @@ -12,7 +12,7 @@
    15.4  # Rules to gen a SliTaz package suitable for Tazpkg.
    15.5  genpkg_rules()
    15.6  {
    15.7 -	PYTHON_LIB=$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
    15.8 +	PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
    15.9  	mkdir -p $fs/usr/lib
   15.10  	cp -a $_pkg/usr/lib/$PYTHON_LIB $fs/usr/lib
   15.11  }
    16.1 --- a/slitaz-mercurial-style/receipt	Sat Oct 09 15:59:11 2010 +0200
    16.2 +++ b/slitaz-mercurial-style/receipt	Sat Oct 09 17:19:46 2010 +0200
    16.3 @@ -11,7 +11,7 @@
    16.4  # Rules to gen a SliTaz package suitable for Tazpkg.
    16.5  genpkg_rules()
    16.6  {
    16.7 -	PYTHON_LIB=$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
    16.8 +	PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/')
    16.9  	mkdir -p $fs/usr/lib/$PYTHON_LIB/site-packages/mercurial
   16.10  	cp -a stuff/templates $fs/usr/lib/$PYTHON_LIB/site-packages/mercurial
   16.11  	chown -R root.root $fs