wok-next view python3/receipt @ rev 20977
"Pythonize" egenix-mx-base and snimpy
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Sep 26 00:03:58 2018 +0300 (2018-09-26) |
parents | 3457c3087924 |
children | d5aab818505e |
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 --without-ensurepip \
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="python3-setuptools python3-pip \
41 bzlib expat gdbm liblzma libsqlite3 ncurses \
42 ncurses-libpanel openssl readline tcl tk xorg-libX11 zlib"
43 PROVIDE="py3k"
44 TAGS="LFS"
45 ;;
46 *-dev)
47 copy @dev @rm
48 PROVIDE="py3k-dev"
49 ;;
50 esac
51 }