wok annotate py3k/receipt @ rev 18917
Up: Correct link.
author | Leonardo Laporte <hackdorte@sapo.pt> |
---|---|
date | Wed Feb 24 08:39:49 2016 -0300 (2016-02-24) |
parents | 16df76e1fc6a |
children | 605c88c58754 |
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" |
pascal@1822 | 9 SOURCE="Python" |
pascal@18206 | 10 TARBALL="$SOURCE-$VERSION.tar.xz" |
pascal@18206 | 11 WEB_SITE="https://www.python.org/download/releases/" |
pascal@18206 | 12 WGET_URL="https://www.python.org/ftp/python/$VERSION/$TARBALL" |
pascal@1822 | 13 |
pascal@15088 | 14 DEPENDS="openssl bzlib readline sqlite zlib xorg-libXss ncursesw gdbm \ |
pascal@15088 | 15 tk xorg-libXext" |
pascal@15094 | 16 BUILD_DEPENDS="readline-dev gdbm-dev openssl-dev sqlite-dev zlib-dev tk-dev \ |
pascal@18206 | 17 ncursesw-dev liblzma-dev wget" |
pascal@15088 | 18 |
pascal@1822 | 19 # Rules to configure and make the package. |
pascal@1822 | 20 compile_rules() |
pascal@1822 | 21 { |
pascal@15094 | 22 mkdir -p $DESTDIR/usr/lib/pkgconfig |
pascal@15094 | 23 ./configure --enable-shared \ |
pascal@1822 | 24 --prefix=/usr --infodir=/usr/share/info \ |
pascal@1822 | 25 --mandir=/usr/share/man $CONFIGURE_ARGS && |
pascal@1822 | 26 make && |
slaxemulator@11027 | 27 make DESTDIR=$DESTDIR install |
pascal@1822 | 28 } |
pascal@1822 | 29 |
pascal@1822 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1822 | 31 genpkg_rules() |
pascal@1822 | 32 { |
slaxemulator@9619 | 33 python_version=${VERSION:0:3} |
slaxemulator@9619 | 34 mkdir -p $fs/usr/include/python${python_version}m |
pascal@15088 | 35 cp -a $install/usr/bin $fs/usr |
pascal@15088 | 36 cp -a $install/usr/lib $fs/usr |
slaxemulator@9619 | 37 # needed for python3 to work |
pascal@15088 | 38 cp -a $install/usr/include/python${python_version}m/pyconfig.h \ |
slaxemulator@9619 | 39 $fs/usr/include/python${python_version}m |
pascal@1822 | 40 rm -f $fs/usr/bin/*-config |
pascal@1822 | 41 } |