wok-next view python3/receipt @ rev 20730
glib: up (2.56.1) with static libs and Python2
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue May 29 15:17:41 2018 +0300 (2018-05-29) |
parents | |
children | c9a7a7b42a86 |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="python3"
4 VERSION="3.6.4"
5 CATEGORY="development"
6 SHORT_DESC="The Python 3 programming language"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL"
9 WEB_SITE="https://www.python.org/download/releases/"
10 LFS="http://www.linuxfromscratch.org/lfs/view/stable/chapter06/Python.html"
12 TARBALL="Python-$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 expat-dev"
17 SPLIT="python3-dev"
18 COOKOPTS="!zip"
20 compile_rules() {
21 mkdir -p $install/usr/lib/pkgconfig
23 ./configure \
24 --enable-shared \
25 --with-system-expat \
26 --with-system-ffi \
27 --with-ensurepip=yes \
28 $CONFIGURE_ARGS &&
29 make &&
30 make DESTDIR=$DESTDIR install || return 1
32 chmod 755 $install/usr/lib/libpython${VERSION%.*}m.so
33 chmod 755 $install/usr/lib/libpython${VERSION%%.*}.so
34 }
36 genpkg_rules() {
37 case $PACKAGE in
38 python3)
39 copy @std pyconfig.h
40 DEPENDS="bzlib expat gdbm liblzma libsqlite3 ncurses \
41 ncurses-libpanel openssl readline tcl tk xorg-libX11 zlib"
42 PROVIDE="py3k"
43 TAGS="LFS"
44 ;;
45 *-dev)
46 copy @dev @rm
47 PROVIDE="py3k-dev"
48 ;;
49 esac
50 }