wok-current annotate py3k/receipt @ rev 21906
updated shared-mime-info and shared-mime-info-dev (1.6 -> 1.14)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Oct 04 14:42:51 2019 +0100 (2019-10-04) |
parents | 605c88c58754 |
children | 2f230197370e |
rev | line source |
---|---|
pascal@1822 | 1 # SliTaz package receipt. |
pascal@1822 | 2 |
pascal@1822 | 3 PACKAGE="py3k" |
pascal@20460 | 4 VERSION="3.7.0" |
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@20461 | 22 mkdir -p $DESTDIR/usr/lib/pkgconfig build |
pascal@15094 | 23 ./configure --enable-shared \ |
pascal@20460 | 24 --enable-optimizations \ |
pascal@1822 | 25 --prefix=/usr --infodir=/usr/share/info \ |
pascal@1822 | 26 --mandir=/usr/share/man $CONFIGURE_ARGS && |
pascal@1822 | 27 make && |
slaxemulator@11027 | 28 make DESTDIR=$DESTDIR install |
pascal@1822 | 29 } |
pascal@1822 | 30 |
pascal@1822 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@1822 | 32 genpkg_rules() |
pascal@1822 | 33 { |
slaxemulator@9619 | 34 python_version=${VERSION:0:3} |
slaxemulator@9619 | 35 mkdir -p $fs/usr/include/python${python_version}m |
pascal@15088 | 36 cp -a $install/usr/bin $fs/usr |
pascal@15088 | 37 cp -a $install/usr/lib $fs/usr |
slaxemulator@9619 | 38 # needed for python3 to work |
pascal@15088 | 39 cp -a $install/usr/include/python${python_version}m/pyconfig.h \ |
slaxemulator@9619 | 40 $fs/usr/include/python${python_version}m |
pascal@1822 | 41 rm -f $fs/usr/bin/*-config |
pascal@1822 | 42 } |