wok-current rev 25170

updated python, python-dev and python-idle (2.7.17 -> 2.7.18)
author Hans-G?nter Theisgen
date Fri Jul 01 15:56:11 2022 +0100 (2022-07-01)
parents c1d6498c42dd
children 382418015236
files python-dev/receipt python-idle/receipt python/description.txt python/receipt
line diff
     1.1 --- a/python-dev/receipt	Fri Jul 01 15:27:05 2022 +0100
     1.2 +++ b/python-dev/receipt	Fri Jul 01 15:56:11 2022 +0100
     1.3 @@ -1,14 +1,13 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="python-dev"
     1.7 -VERSION="2.7.17"
     1.8 +VERSION="2.7.18"
     1.9  CATEGORY="development"
    1.10  SHORT_DESC="The Python programming language - development files."
    1.11  MAINTAINER="pankso@slitaz.org"
    1.12  LICENSE="PSL"
    1.13  WEB_SITE="https://www.python.org/"
    1.14  
    1.15 -SOURCE="Python"
    1.16  DEPENDS="python"
    1.17  WANTED="python"
    1.18  
    1.19 @@ -19,11 +18,11 @@
    1.20  {
    1.21  	mkdir -p $fs/usr/bin
    1.22  
    1.23 -	cp -a $install/usr/include	$fs/usr
    1.24 +	cook_copy_folders		include
    1.25  	cp -a $install/usr/bin/*-config	$fs/usr/bin
    1.26  	chmod 755			$fs/usr/bin/*-config
    1.27  
    1.28  	# in python package now
    1.29  	python_version=${VERSION:0:3}
    1.30 -	rm	$fs/usr/include/${WANTED}$python_version/pyconfig.h
    1.31 +	rm				$fs/usr/include/${WANTED}$python_version/pyconfig.h
    1.32  }
     2.1 --- a/python-idle/receipt	Fri Jul 01 15:27:05 2022 +0100
     2.2 +++ b/python-idle/receipt	Fri Jul 01 15:56:11 2022 +0100
     2.3 @@ -1,7 +1,7 @@
     2.4  # SliTaz package receipt.
     2.5  
     2.6  PACKAGE="python-idle"
     2.7 -VERSION="2.7.17"
     2.8 +VERSION="2.7.18"
     2.9  CATEGORY="development"
    2.10  SHORT_DESC="Python GUI IDE using TK Toolkit."
    2.11  MAINTAINER="pankso@slitaz.org"
    2.12 @@ -16,9 +16,11 @@
    2.13  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.14  genpkg_rules()
    2.15  {
    2.16 +	python_version=${VERSION%.*}
    2.17  	mkdir -p $fs/usr/bin
    2.18 -	mkdir -p $fs/usr/lib/python2.7
    2.19 +	mkdir -p $fs/usr/lib/python$python_version
    2.20  
    2.21 -	cp -a $install/usr/bin/idle			$fs/usr/bin
    2.22 -	cp -a $install/usr/lib/python2.7/idlelib	$fs/usr/lib/python2.7
    2.23 +	cp -a $install/usr/bin/idle		$fs/usr/bin
    2.24 +	cp -a $install/usr/lib/python$python_version/idlelib \
    2.25 +						$fs/usr/lib/python$python_version
    2.26  }
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/python/description.txt	Fri Jul 01 15:56:11 2022 +0100
     3.3 @@ -0,0 +1,5 @@
     3.4 +Python is a programming language that lets you work more quickly and
     3.5 +integrate your systems more effectively.
     3.6 +
     3.7 +You can learn to use Python and see almost immediate gains in productivity
     3.8 +and lower maintenance costs.
     4.1 --- a/python/receipt	Fri Jul 01 15:27:05 2022 +0100
     4.2 +++ b/python/receipt	Fri Jul 01 15:56:11 2022 +0100
     4.3 @@ -1,7 +1,7 @@
     4.4  # SliTaz package receipt.
     4.5  
     4.6  PACKAGE="python"
     4.7 -VERSION="2.7.17"
     4.8 +VERSION="2.7.18"
     4.9  CATEGORY="development"
    4.10  SHORT_DESC="The Python programming language."
    4.11  MAINTAINER="pankso@slitaz.org"
    4.12 @@ -19,28 +19,28 @@
    4.13  
    4.14  HOST_ARCH="i486 arm"
    4.15  
    4.16 +# @maintainer: Please update also: python-idle
    4.17 +
    4.18  current_version()
    4.19  {
    4.20  	wget -O - https://www.python.org/ftp/python/ 2>/dev/null | \
    4.21  	sed "/=\"${VERSION%.*}/!d;s|.*\">\\(.*\\)/<.*|\\1|" | sort -Vr | sed q
    4.22  }
    4.23  
    4.24 -# @maintainer: Please update also: python-idle
    4.25 -
    4.26  # Rules to configure and make the package.
    4.27  compile_rules()
    4.28  {
    4.29  	# Temporary workaround for FS#22322
    4.30  	# See http://bugs.python.org/issue10835 for upstream report
    4.31 -	sed -i "/progname =/s/python/python${_pybasever}/" \
    4.32 -		Python/pythonrun.c
    4.33 +#	sed -i "/progname =/s/python/python${_pybasever}/" \
    4.34 +#		Python/pythonrun.c
    4.35  
    4.36  	# Enable built-in SQLite3 module to load extensions (fix FS#22122)
    4.37  	sed -i "/SQLITE_OMIT_LOAD_EXTENSION/d" \
    4.38  		setup.py
    4.39  
    4.40  	case "$ARCH" in
    4.41 -		arm*)
    4.42 +		(arm*)
    4.43  			# First pass for build host tools
    4.44  			unset CFLAGS CXXFLAGS
    4.45  			cp -f $CONFIG_SITE .
    4.46 @@ -82,25 +82,27 @@
    4.47  				CROSS_COMPILE_TARGET=yes		\
    4.48  				HOSTARCH=${HOST_SYSTEM}			\
    4.49  				BUILDARCH=${BUILD_SYSTEM} || exit 1
    4.50 -			make	DESTDIR=$DESTDIR install || exit 1 ;;
    4.51 -		i?86)
    4.52 +			make	DESTDIR=$DESTDIR install || exit 1
    4.53 +			;;
    4.54 +		(i?86)
    4.55  			./configure			\
    4.56  				--enable-shared		\
    4.57  				--build=${HOST_SYSTEM}	\
    4.58  				--host=${HOST_SYSTEM} &&
    4.59  				make &&
    4.60 -				make DESTDIR=$DESTDIR install ;;
    4.61 +				make DESTDIR=$DESTDIR install
    4.62 +			;;
    4.63  	esac
    4.64  }
    4.65  
    4.66  # Rules to gen a SliTaz package suitable for Tazpkg.
    4.67  genpkg_rules()
    4.68  {
    4.69 -	python_version=${VERSION:0:3}
    4.70 +	python_version=${VERSION%.*}
    4.71  	mkdir -p $fs/usr/include/${PACKAGE}$python_version
    4.72  
    4.73 -	cp -a $install/usr/bin	$fs/usr
    4.74 -	cp -a $install/usr/lib	$fs/usr
    4.75 +	cook_copy_folders	bin
    4.76 +	cook_copy_folders	lib
    4.77  
    4.78  	# needed for mercurial to work now
    4.79  	cp -a $install/usr/include/${PACKAGE}$python_version/pyconfig.h \
    4.80 @@ -109,5 +111,5 @@
    4.81  
    4.82  	# Split IDLE with TK dep
    4.83  	rm -f			$fs/usr/bin/idle
    4.84 -	rm -rf			$fs/usr/lib/python2.7/idlelib
    4.85 +	rm -rf			$fs/usr/lib/python$python_version/idlelib
    4.86  }