wok-next view python3/receipt @ rev 21064

Up: cookutils (1113), iproute2 (4.19.0), libcap (2.26), meson (0.48.2), perl (5.28.1), procps-ng (3.3.15), psmisc (23.2), python3 (3.7.1), readline (7.0p5), util-linux (2.33); fix: grub2, gzip, m4
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Dec 05 18:07:35 2018 +0200 (2018-12-05)
parents d5aab818505e
children 07b36ab968e3
line source
1 # SliTaz package receipt v2.
3 PACKAGE="python3"
4 VERSION="3.7.1"
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="$PACKAGE-dev"
18 COOKOPTS="!zip"
20 COPY_std="@std pyconfig.h"
21 COPY_dev="@dev @rm"
23 DEPENDS_std="python3-setuptools python3-pip bzlib expat gdbm liblzma \
24 libsqlite3 ncurses ncurses-libpanel openssl readline tcl tk xorg-libX11 zlib"
26 PROVIDE_std="py3k"
27 PROVIDE_dev="py3k-dev"
29 TAGS_std="LFS"
31 compile_rules() {
32 mkdir -p $install/usr/lib/pkgconfig
34 ./configure \
35 --enable-shared \
36 --with-system-expat \
37 --with-system-ffi \
38 --without-ensurepip \
39 $CONFIGURE_ARGS &&
40 make &&
41 make DESTDIR=$install install || return 1
43 chmod 755 $install/usr/lib/libpython${VERSION%.*}m.so
44 chmod 755 $install/usr/lib/libpython${VERSION%%.*}.so
45 }