wok-next diff python/receipt @ rev 20930

pyaudio -> python-pyaudio
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Aug 23 07:07:52 2018 +0300 (2018-08-23)
parents 4e6503d7a19f
children c9a7a7b42a86
line diff
     1.1 --- a/python/receipt	Thu Jul 12 18:34:58 2018 +0300
     1.2 +++ b/python/receipt	Thu Aug 23 07:07:52 2018 +0300
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt v2.
     1.5  
     1.6  PACKAGE="python"
     1.7 -VERSION="2.7.13"
     1.8 +VERSION="2.7.15"
     1.9  CATEGORY="development"
    1.10  SHORT_DESC="The Python programming language"
    1.11  MAINTAINER="pankso@slitaz.org"
    1.12 @@ -21,10 +21,18 @@
    1.13  compile_rules() {
    1.14  	# Temporary workaround for FS#22322
    1.15  	# See http://bugs.python.org/issue10835 for upstream report
    1.16 -	sed -i "/progname =/s/python/python${_pybasever}/" Python/pythonrun.c
    1.17 +	sed -i.orig "/progname =/s/python/python${_pybasever}/" Python/pythonrun.c
    1.18  
    1.19  	# Enable built-in SQLite3 module to load extensions (fix FS#22122)
    1.20 -	sed -i "/SQLITE_OMIT_LOAD_EXTENSION/d" setup.py
    1.21 +	sed -i.orig "/SQLITE_OMIT_LOAD_EXTENSION/d" setup.py
    1.22 +
    1.23 +	# If setuptools installed on the host, they will not be installed to the
    1.24 +	# $DESTDIR. Probably bug. Dirty hack using chroot to resolve it:
    1.25 +	rm /usr/bin/easy_install* /usr/bin/pip*
    1.26 +	rm -r /usr/lib/python2.7/site-packages/easy_install.py \
    1.27 +		  /usr/lib/python2.7/site-packages/pip* \
    1.28 +		  /usr/lib/python2.7/site-packages/pkg_resources \
    1.29 +		  /usr/lib/python2.7/site-packages/setuptools*
    1.30  
    1.31  	case "$ARCH" in
    1.32  		arm*)
    1.33 @@ -78,7 +86,8 @@
    1.34  				--enable-unicode=ucs4 \
    1.35  				--build=$HOST_SYSTEM \
    1.36  				--host=$HOST_SYSTEM &&
    1.37 -				make && make DESTDIR=$DESTDIR install &&
    1.38 +				make &&
    1.39 +				make DESTDIR=$DESTDIR install &&
    1.40  				chmod -v 755 $install/usr/lib/libpython2.7.so.1.0
    1.41  			;;
    1.42  	esac