wok-next annotate py3k/receipt @ rev 20113

Add some bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Oct 30 09:29:31 2017 +0100 (2017-10-30)
parents 0f1876141d45
children
rev   line source
al@20112 1 # SliTaz package receipt v2.
pascal@1822 2
pascal@1822 3 PACKAGE="py3k"
al@20112 4 VERSION="3.6.3"
pascal@1822 5 CATEGORY="development"
al@20112 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
pascal@20098 15 BUILD_DEPENDS="readline-dev gdbm-dev openssl-dev sqlite3-dev zlib-dev tk-dev \
al@20112 16 ncurses-dev xz-dev bzip2-dev"
al@20112 17 SPLIT="py3k-dev"
al@20111 18 COOKOPTS="!zip"
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 {
al@20112 35 case $PACKAGE in
al@20112 36 py3k)
al@20112 37 python_version=${VERSION:0:3}
al@20112 38 mkdir -p $fs/usr/include/python${python_version}m
al@20112 39 cp -a $install/usr/bin $fs/usr
al@20112 40 cp -a $install/usr/lib $fs/usr
al@20112 41 # needed for python3 to work
al@20112 42 cp -a $install/usr/include/python${python_version}m/pyconfig.h \
al@20112 43 $fs/usr/include/python${python_version}m
al@20112 44 rm -f $fs/usr/bin/*-config
al@20112 45 DEPENDS="openssl bzlib readline sqlite3 zlib xorg-libXScrnSaver \
al@20112 46 ncurses gdbm tk xorg-libXext"
al@20112 47 ;;
al@20112 48 *-dev)
al@20112 49 mkdir -p $fs/usr/bin
al@20112 50 cp -a $install/usr/include $fs/usr
al@20112 51 cp -a $install/usr/bin/*-config $fs/usr/bin
al@20112 52 chmod 755 $fs/usr/bin/*-config
al@20112 53 # in py3k package now
al@20112 54 python_version=${VERSION:0:3}
al@20112 55 rm $fs/usr/include/python${python_version}m/pyconfig.h
al@20112 56 ;;
al@20112 57 esac
pascal@1822 58 }