wok-next view py3k/receipt @ rev 20279

samba: typo
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 08 12:57:30 2017 +0100 (2017-11-08)
parents 0f1876141d45
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="py3k"
4 VERSION="3.6.3"
5 CATEGORY="development"
6 SHORT_DESC="The Python 3000 programming language"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL"
9 WEB_SITE="https://www.python.org/download/releases/"
11 SOURCE="Python"
12 TARBALL="$SOURCE-$VERSION.tar.xz"
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="py3k-dev"
18 COOKOPTS="!zip"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 mkdir -p $DESTDIR/usr/lib/pkgconfig
25 ./configure \
26 --enable-shared \
27 $CONFIGURE_ARGS &&
28 make &&
29 make DESTDIR=$DESTDIR install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 case $PACKAGE in
36 py3k)
37 python_version=${VERSION:0:3}
38 mkdir -p $fs/usr/include/python${python_version}m
39 cp -a $install/usr/bin $fs/usr
40 cp -a $install/usr/lib $fs/usr
41 # needed for python3 to work
42 cp -a $install/usr/include/python${python_version}m/pyconfig.h \
43 $fs/usr/include/python${python_version}m
44 rm -f $fs/usr/bin/*-config
45 DEPENDS="openssl bzlib readline sqlite3 zlib xorg-libXScrnSaver \
46 ncurses gdbm tk xorg-libXext"
47 ;;
48 *-dev)
49 mkdir -p $fs/usr/bin
50 cp -a $install/usr/include $fs/usr
51 cp -a $install/usr/bin/*-config $fs/usr/bin
52 chmod 755 $fs/usr/bin/*-config
53 # in py3k package now
54 python_version=${VERSION:0:3}
55 rm $fs/usr/include/python${python_version}m/pyconfig.h
56 ;;
57 esac
58 }