wok-next annotate py3k/receipt @ rev 19638
Up tcl, tk, py3k, iso-codes
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Feb 13 02:23:31 2017 +0200 (2017-02-13) |
parents | 3d39589d41a0 |
children | 2809ecb8c754 |
rev | line source |
---|---|
pascal@1822 | 1 # SliTaz package receipt. |
pascal@1822 | 2 |
pascal@1822 | 3 PACKAGE="py3k" |
pascal@18206 | 4 VERSION="3.4.3" |
pascal@1822 | 5 CATEGORY="development" |
pascal@1822 | 6 SHORT_DESC="The Python 3000 programming language." |
pascal@1822 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15088 | 8 LICENSE="GPL" |
al@19638 | 9 WEB_SITE="https://www.python.org/download/releases/" |
al@19638 | 10 |
pascal@1822 | 11 SOURCE="Python" |
pascal@18206 | 12 TARBALL="$SOURCE-$VERSION.tar.xz" |
pascal@18206 | 13 WGET_URL="https://www.python.org/ftp/python/$VERSION/$TARBALL" |
pascal@1822 | 14 |
al@19638 | 15 DEPENDS="openssl bzlib readline sqlite zlib xorg-libXScrnSaver ncurses gdbm \ |
pascal@15088 | 16 tk xorg-libXext" |
pascal@15094 | 17 BUILD_DEPENDS="readline-dev gdbm-dev openssl-dev sqlite-dev zlib-dev tk-dev \ |
al@19638 | 18 ncurses-dev liblzma-dev bzip2-dev" |
pascal@15088 | 19 |
pascal@1822 | 20 # Rules to configure and make the package. |
pascal@1822 | 21 compile_rules() |
pascal@1822 | 22 { |
pascal@15094 | 23 mkdir -p $DESTDIR/usr/lib/pkgconfig |
al@19638 | 24 |
al@19638 | 25 ./configure \ |
al@19638 | 26 --enable-shared \ |
al@19638 | 27 $CONFIGURE_ARGS && |
pascal@1822 | 28 make && |
slaxemulator@11027 | 29 make DESTDIR=$DESTDIR install |
pascal@1822 | 30 } |
pascal@1822 | 31 |
pascal@1822 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1822 | 33 genpkg_rules() |
pascal@1822 | 34 { |
slaxemulator@9619 | 35 python_version=${VERSION:0:3} |
slaxemulator@9619 | 36 mkdir -p $fs/usr/include/python${python_version}m |
pascal@15088 | 37 cp -a $install/usr/bin $fs/usr |
pascal@15088 | 38 cp -a $install/usr/lib $fs/usr |
slaxemulator@9619 | 39 # needed for python3 to work |
pascal@15088 | 40 cp -a $install/usr/include/python${python_version}m/pyconfig.h \ |
slaxemulator@9619 | 41 $fs/usr/include/python${python_version}m |
pascal@1822 | 42 rm -f $fs/usr/bin/*-config |
pascal@1822 | 43 } |