wok diff python/receipt @ rev 25361

sshrc: typo in wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 27 16:25:20 2022 +0000 (2022-07-27)
parents 3e9a9990c985
children
line diff
     1.1 --- a/python/receipt	Thu Jul 08 13:19:25 2021 +0000
     1.2 +++ b/python/receipt	Wed Jul 27 16:25:20 2022 +0000
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="python"
     1.7 -VERSION="2.7.17"
     1.8 +VERSION="2.7.18"
     1.9  CATEGORY="development"
    1.10  SHORT_DESC="The Python programming language."
    1.11  MAINTAINER="pankso@slitaz.org"
    1.12 @@ -19,28 +19,28 @@
    1.13  
    1.14  HOST_ARCH="i486 arm"
    1.15  
    1.16 +# @maintainer: Please update also: python-idle
    1.17 +
    1.18  current_version()
    1.19  {
    1.20  	wget -O - https://www.python.org/ftp/python/ 2>/dev/null | \
    1.21  	sed "/=\"${VERSION%.*}/!d;s|.*\">\\(.*\\)/<.*|\\1|" | sort -Vr | sed q
    1.22  }
    1.23  
    1.24 -# @maintainer: Please update also: python-idle
    1.25 -
    1.26  # Rules to configure and make the package.
    1.27  compile_rules()
    1.28  {
    1.29  	# Temporary workaround for FS#22322
    1.30  	# See http://bugs.python.org/issue10835 for upstream report
    1.31 -	sed -i "/progname =/s/python/python${_pybasever}/" \
    1.32 -		Python/pythonrun.c
    1.33 +#	sed -i "/progname =/s/python/python${_pybasever}/" \
    1.34 +#		Python/pythonrun.c
    1.35  
    1.36  	# Enable built-in SQLite3 module to load extensions (fix FS#22122)
    1.37  	sed -i "/SQLITE_OMIT_LOAD_EXTENSION/d" \
    1.38  		setup.py
    1.39  
    1.40  	case "$ARCH" in
    1.41 -		arm*)
    1.42 +		(arm*)
    1.43  			# First pass for build host tools
    1.44  			unset CFLAGS CXXFLAGS
    1.45  			cp -f $CONFIG_SITE .
    1.46 @@ -82,25 +82,27 @@
    1.47  				CROSS_COMPILE_TARGET=yes		\
    1.48  				HOSTARCH=${HOST_SYSTEM}			\
    1.49  				BUILDARCH=${BUILD_SYSTEM} || exit 1
    1.50 -			make	DESTDIR=$DESTDIR install || exit 1 ;;
    1.51 -		i?86)
    1.52 +			make	DESTDIR=$DESTDIR install || exit 1
    1.53 +			;;
    1.54 +		(i?86)
    1.55  			./configure			\
    1.56  				--enable-shared		\
    1.57  				--build=${HOST_SYSTEM}	\
    1.58  				--host=${HOST_SYSTEM} &&
    1.59  				make &&
    1.60 -				make DESTDIR=$DESTDIR install ;;
    1.61 +				make DESTDIR=$DESTDIR install
    1.62 +			;;
    1.63  	esac
    1.64  }
    1.65  
    1.66  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.67  genpkg_rules()
    1.68  {
    1.69 -	python_version=${VERSION:0:3}
    1.70 +	python_version=${VERSION%.*}
    1.71  	mkdir -p $fs/usr/include/${PACKAGE}$python_version
    1.72  
    1.73 -	cp -a $install/usr/bin	$fs/usr
    1.74 -	cp -a $install/usr/lib	$fs/usr
    1.75 +	cook_copy_folders	bin
    1.76 +	cook_copy_folders	lib
    1.77  
    1.78  	# needed for mercurial to work now
    1.79  	cp -a $install/usr/include/${PACKAGE}$python_version/pyconfig.h \
    1.80 @@ -109,5 +111,5 @@
    1.81  
    1.82  	# Split IDLE with TK dep
    1.83  	rm -f			$fs/usr/bin/idle
    1.84 -	rm -rf			$fs/usr/lib/python2.7/idlelib
    1.85 +	rm -rf			$fs/usr/lib/python$python_version/idlelib
    1.86  }