wok-next diff python/receipt @ rev 20564

shell-detector, screenfetch: create $install tree
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Apr 10 10:14:26 2018 +0200 (2018-04-10)
parents 0f1876141d45
children 765ca39b5898
line diff
     1.1 --- a/python/receipt	Mon Oct 30 01:52:44 2017 +0200
     1.2 +++ b/python/receipt	Tue Apr 10 10:14:26 2018 +0200
     1.3 @@ -7,8 +7,7 @@
     1.4  MAINTAINER="pankso@slitaz.org"
     1.5  LICENSE="PSL"
     1.6  WEB_SITE="https://www.python.org/"
     1.7 -HOST_ARCH="i486 arm"
     1.8 -COOKOPTS="!menus !zip"
     1.9 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/python2.html"
    1.10  
    1.11  TARBALL="$PACKAGE-$VERSION.tar.xz"
    1.12  WGET_URL="https://www.python.org/ftp/python/$VERSION/Python-$VERSION.tar.xz"
    1.13 @@ -16,10 +15,9 @@
    1.14  BUILD_DEPENDS="openssl-dev bzip2-dev readline-dev sqlite3-dev zlib-dev \
    1.15  ncurses-dev tcl-dev tk-dev db-dev gdbm-dev libffi-dev expat-dev"
    1.16  SPLIT="python-idle python-tcltk python python-dev"
    1.17 +COOKOPTS="!menus !zip"
    1.18  
    1.19 -# Rules to configure and make the package.
    1.20 -compile_rules()
    1.21 -{
    1.22 +compile_rules() {
    1.23  	# Temporary workaround for FS#22322
    1.24  	# See http://bugs.python.org/issue10835 for upstream report
    1.25  	sed -i "/progname =/s/python/python${_pybasever}/" Python/pythonrun.c
    1.26 @@ -33,7 +31,7 @@
    1.27  			unset CFLAGS CXXFLAGS
    1.28  			cp -f $CONFIG_SITE .
    1.29  			CONFIG_SITE="$(pwd)/cook.site"
    1.30 -			cat >> $CONFIG_SITE << EOT
    1.31 +			cat >> $CONFIG_SITE <<EOT
    1.32  ac_cv_have_long_long_format=yes
    1.33  EOT
    1.34  			./configure CC=gcc \
    1.35 @@ -49,7 +47,7 @@
    1.36  			. /etc/slitaz/cook.conf
    1.37  			cp -f $CONFIG_SITE .
    1.38  			CONFIG_SITE="$(pwd)/cook.site"
    1.39 -			cat >> $CONFIG_SITE << EOT
    1.40 +			cat >> $CONFIG_SITE <<EOT
    1.41  ac_cv_have_long_long_format=yes
    1.42  ac_cv_buggy_getaddrinfo=no
    1.43  ac_cv_file__dev_ptmx=yes
    1.44 @@ -69,7 +67,7 @@
    1.45  				BUILDARCH=${BUILD_SYSTEM} || exit 1
    1.46  			make DESTDIR=$DESTDIR install || exit 1
    1.47  			;;
    1.48 -		i?86)
    1.49 +		i?86|x86_64)
    1.50  			./configure \
    1.51  				--prefix=/usr \
    1.52  				--enable-shared \
    1.53 @@ -85,9 +83,7 @@
    1.54  	esac
    1.55  }
    1.56  
    1.57 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.58 -genpkg_rules()
    1.59 -{
    1.60 +genpkg_rules() {
    1.61  	case $PACKAGE in
    1.62  		*-idle)
    1.63  			copy idle idlelib/ python-idle.desktop
    1.64 @@ -100,15 +96,13 @@
    1.65  			DEPENDS="python tcl tk xorg-libX11"
    1.66  			;;
    1.67  		python)
    1.68 -			# pyconfig.h needed for mercurial to work now
    1.69 -			copy @std pyconfig.h
    1.70 -			remove_already_packed
    1.71 -			DEPENDS="bzlib expat gdbm libcrypto libffi libsqlite3 libssl \
    1.72 -			ncurses ncurses-libpanel readline zlib"
    1.73 +			# Now pyconfig.h is required for Mercurial.
    1.74 +			copy @std pyconfig.h @rm
    1.75 +			DEPENDS="bzlib expat gdbm libffi libsqlite3 ncurses \
    1.76 +			ncurses-libpanel openssl readline zlib"
    1.77  			;;
    1.78  		*-dev)
    1.79 -			copy @dev
    1.80 -			remove_already_packed
    1.81 +			copy @dev @rm
    1.82  			;;
    1.83  	esac
    1.84  }