wok-next diff py3k/receipt @ rev 20112
Up py3k (3.6.3); py3k, py3k3: receipts v.2
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Oct 30 02:46:09 2017 +0200 (2017-10-30) |
parents | 0f1876141d45 |
children |
line diff
1.1 --- a/py3k/receipt Mon Oct 30 01:52:44 2017 +0200 1.2 +++ b/py3k/receipt Mon Oct 30 02:46:09 2017 +0200 1.3 @@ -1,9 +1,9 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="py3k" 1.8 -VERSION="3.4.3" 1.9 +VERSION="3.6.3" 1.10 CATEGORY="development" 1.11 -SHORT_DESC="The Python 3000 programming language." 1.12 +SHORT_DESC="The Python 3000 programming language" 1.13 MAINTAINER="pascal.bellard@slitaz.org" 1.14 LICENSE="GPL" 1.15 WEB_SITE="https://www.python.org/download/releases/" 1.16 @@ -12,10 +12,9 @@ 1.17 TARBALL="$SOURCE-$VERSION.tar.xz" 1.18 WGET_URL="https://www.python.org/ftp/python/$VERSION/$TARBALL" 1.19 1.20 -DEPENDS="openssl bzlib readline sqlite3 zlib xorg-libXScrnSaver ncurses gdbm \ 1.21 -tk xorg-libXext" 1.22 BUILD_DEPENDS="readline-dev gdbm-dev openssl-dev sqlite3-dev zlib-dev tk-dev \ 1.23 -ncurses-dev liblzma-dev bzip2-dev" 1.24 +ncurses-dev xz-dev bzip2-dev" 1.25 +SPLIT="py3k-dev" 1.26 COOKOPTS="!zip" 1.27 1.28 # Rules to configure and make the package. 1.29 @@ -33,12 +32,27 @@ 1.30 # Rules to gen a SliTaz package suitable for Tazpkg. 1.31 genpkg_rules() 1.32 { 1.33 - python_version=${VERSION:0:3} 1.34 - mkdir -p $fs/usr/include/python${python_version}m 1.35 - cp -a $install/usr/bin $fs/usr 1.36 - cp -a $install/usr/lib $fs/usr 1.37 - # needed for python3 to work 1.38 - cp -a $install/usr/include/python${python_version}m/pyconfig.h \ 1.39 - $fs/usr/include/python${python_version}m 1.40 - rm -f $fs/usr/bin/*-config 1.41 + case $PACKAGE in 1.42 + py3k) 1.43 + python_version=${VERSION:0:3} 1.44 + mkdir -p $fs/usr/include/python${python_version}m 1.45 + cp -a $install/usr/bin $fs/usr 1.46 + cp -a $install/usr/lib $fs/usr 1.47 + # needed for python3 to work 1.48 + cp -a $install/usr/include/python${python_version}m/pyconfig.h \ 1.49 + $fs/usr/include/python${python_version}m 1.50 + rm -f $fs/usr/bin/*-config 1.51 + DEPENDS="openssl bzlib readline sqlite3 zlib xorg-libXScrnSaver \ 1.52 + ncurses gdbm tk xorg-libXext" 1.53 + ;; 1.54 + *-dev) 1.55 + mkdir -p $fs/usr/bin 1.56 + cp -a $install/usr/include $fs/usr 1.57 + cp -a $install/usr/bin/*-config $fs/usr/bin 1.58 + chmod 755 $fs/usr/bin/*-config 1.59 + # in py3k package now 1.60 + python_version=${VERSION:0:3} 1.61 + rm $fs/usr/include/python${python_version}m/pyconfig.h 1.62 + ;; 1.63 + esac 1.64 }