wok-next view py3k3/receipt @ rev 20577

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