wok-next annotate python3/receipt @ rev 21130
python3: up (3.7.2), split like python2
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Jan 18 16:58:29 2019 +0200 (2019-01-18) |
parents | 0ed3f456a542 |
children |
rev | line source |
---|---|
al@20472 | 1 # SliTaz package receipt v2. |
al@20472 | 2 |
al@20472 | 3 PACKAGE="python3" |
al@21130 | 4 VERSION="3.7.2" |
al@20472 | 5 CATEGORY="development" |
al@20472 | 6 SHORT_DESC="The Python 3 programming language" |
al@20472 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
al@20472 | 8 LICENSE="GPL" |
al@20472 | 9 WEB_SITE="https://www.python.org/download/releases/" |
al@21065 | 10 LFS="http://www.linuxfromscratch.org/lfs/view/development/chapter06/Python.html" |
al@20472 | 11 |
al@20472 | 12 TARBALL="Python-$VERSION.tar.xz" |
al@20472 | 13 WGET_URL="https://www.python.org/ftp/python/$VERSION/$TARBALL" |
al@21130 | 14 TARBALL_SHA1="c3dc6928516bcb934cf4740461044c79c7c35494" |
al@20472 | 15 |
al@20472 | 16 BUILD_DEPENDS="readline-dev gdbm-dev openssl-dev sqlite3-dev zlib-dev tk-dev \ |
al@21065 | 17 ncurses-dev xz-dev bzip2-dev expat-dev libffi-dev" |
al@21130 | 18 SPLIT="$PACKAGE-idle $PACKAGE-tcltk $PACKAGE-ensurepip $PACKAGE $PACKAGE-dev" |
al@20472 | 19 |
al@21130 | 20 COPY_idle="idle3 idle${VERSION%.*} idlelib/" |
al@21130 | 21 COPY_tcltk="_tkinter.*.so tkinter/" |
al@21130 | 22 COPY_ensurepip="ensurepip/" |
al@21130 | 23 COPY_std="@std @rm pyconfig.h" |
al@21064 | 24 |
al@21130 | 25 CAT_idle="development|GUI IDE using TK Toolkit" |
al@21130 | 26 CAT_tcltk="development|Tcl/Tk files" |
al@21130 | 27 CAT_ensurepip="development|ensurepip" |
al@21064 | 28 |
al@21130 | 29 DEPENDS_idle="$PACKAGE" |
al@21130 | 30 DEPENDS_tcltk="$PACKAGE tcl tk" |
al@21130 | 31 DEPENDS_ensurepip="$PACKAGE" |
al@21130 | 32 DEPENDS_std="expat libbzip2 libffi libgdbm liblzma libsqlite3 ncurses \ |
al@21130 | 33 ncurses-libpanel openssl readline util-linux-uuid zlib python3-setuptools \ |
al@21130 | 34 python3-pip" |
al@21130 | 35 DEPENDS_dev="$PACKAGE" |
al@21064 | 36 |
al@21064 | 37 TAGS_std="LFS" |
al@21130 | 38 COOKOPTS="!zip" |
al@21064 | 39 |
al@20472 | 40 compile_rules() { |
al@20472 | 41 mkdir -p $install/usr/lib/pkgconfig |
al@20472 | 42 |
al@20472 | 43 ./configure \ |
al@20472 | 44 --enable-shared \ |
al@20472 | 45 --with-system-expat \ |
al@20472 | 46 --with-system-ffi \ |
al@20977 | 47 --without-ensurepip \ |
al@20472 | 48 $CONFIGURE_ARGS && |
al@20472 | 49 make && |
al@21020 | 50 make DESTDIR=$install install || return 1 |
al@20472 | 51 |
al@20472 | 52 chmod 755 $install/usr/lib/libpython${VERSION%.*}m.so |
al@20472 | 53 chmod 755 $install/usr/lib/libpython${VERSION%%.*}.so |
al@21130 | 54 |
al@21130 | 55 find $install -type f -name '*.pyc' -delete |
al@20472 | 56 } |
al@21130 | 57 |
al@21130 | 58 PROVIDE_std="py3k" |
al@21130 | 59 PROVIDE_dev="py3k-dev" |