wok-next view python3/receipt @ rev 21111
gdbm: split to "libpkg - pkg - pkg-dev"; fix some symlinks
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Jan 11 14:45:46 2019 +0200 (2019-01-11) |
parents | 82b613cfd1e0 |
children | 0d186da10c16 |
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/development/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 libffi-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 libbzip2 expat libgdbm libffi liblzma \
24 libsqlite3 ncurses ncurses-libpanel openssl readline zlib" # tcl tk libx11
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 }