wok-next annotate py3k3/receipt @ rev 20884
Check Repology info from m* to python-babel
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Jul 12 18:34:58 2018 +0300 (2018-07-12) |
parents | 0fcf48f89432 |
children |
rev | line source |
---|---|
al@20112 | 1 # SliTaz package receipt v2. |
nneul@18058 | 2 |
nneul@18058 | 3 PACKAGE="py3k3" |
nneul@18058 | 4 VERSION="3.3.6" |
nneul@18058 | 5 CATEGORY="development" |
al@20112 | 6 SHORT_DESC="The Python 3000 programming language" |
nneul@18058 | 7 MAINTAINER="nneul@neulinger.org" |
nneul@18058 | 8 LICENSE="GPL" |
al@20112 | 9 WEB_SITE="https://www.python.org/download/releases/" |
al@20884 | 10 REPOLOGY="python3" |
al@20112 | 11 |
nneul@18058 | 12 SOURCE="Python" |
nneul@18058 | 13 TARBALL="$SOURCE-$VERSION.tgz" |
nneul@18058 | 14 WGET_URL="https://www.python.org/ftp/python/$VERSION/$TARBALL" |
nneul@18058 | 15 |
pascal@20098 | 16 BUILD_DEPENDS="readline-dev gdbm-dev openssl-dev sqlite3-dev zlib-dev tk-dev \ |
al@20452 | 17 ncurses-dev xz-dev bzip2-dev" |
al@20112 | 18 SPLIT="py3k3-dev" |
al@20111 | 19 COOKOPTS="!zip" |
nneul@18058 | 20 |
nneul@18058 | 21 # Rules to configure and make the package. |
nneul@18058 | 22 compile_rules() |
nneul@18058 | 23 { |
nneul@18058 | 24 mkdir -p $DESTDIR/usr/lib/pkgconfig |
al@20112 | 25 ./configure \ |
al@20112 | 26 --enable-shared \ |
al@20112 | 27 --prefix=/usr \ |
al@20112 | 28 --infodir=/usr/share/info \ |
al@20112 | 29 --mandir=/usr/share/man \ |
al@20112 | 30 $CONFIGURE_ARGS && |
nneul@18058 | 31 make && |
nneul@18058 | 32 make DESTDIR=$DESTDIR install |
nneul@18058 | 33 } |
nneul@18058 | 34 |
nneul@18058 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
nneul@18058 | 36 genpkg_rules() |
nneul@18058 | 37 { |
al@20112 | 38 case $PACKAGE in |
al@20112 | 39 py3k3) |
al@20112 | 40 python_version=${VERSION:0:3} |
al@20112 | 41 mkdir -p $fs/usr/include/python${python_version}m |
al@20112 | 42 cp -a $install/usr/bin $fs/usr |
al@20112 | 43 cp -a $install/usr/lib $fs/usr |
al@20112 | 44 # needed for python3 to work |
al@20112 | 45 cp -a $install/usr/include/python${python_version}m/pyconfig.h \ |
al@20112 | 46 $fs/usr/include/python${python_version}m |
al@20112 | 47 rm -f $fs/usr/bin/*-config |
al@20112 | 48 DEPENDS="openssl bzlib readline sqlite3 zlib xorg-libXScrnSaver \ |
al@20112 | 49 ncurses gdbm tk xorg-libXext" |
al@20112 | 50 PROVIDE="py3k" |
al@20112 | 51 ;; |
al@20112 | 52 *-dev) |
al@20112 | 53 mkdir -p $fs/usr/bin |
al@20112 | 54 cp -a $install/usr/include $fs/usr |
al@20112 | 55 cp -a $install/usr/bin/*-config $fs/usr/bin |
al@20112 | 56 chmod 755 $fs/usr/bin/*-config |
al@20112 | 57 rm $fs/usr/include/*/pyconfig.h |
al@20112 | 58 ;; |
al@20112 | 59 esac |
nneul@18058 | 60 } |