wok-next annotate python/receipt @ rev 21443
updated sarg (2.3.1 -> 2.4.0)
author | Hans-G?nter Theisgen |
---|---|
date | Tue May 05 16:34:52 2020 +0100 (2020-05-05) |
parents | 8105ce8fc51a |
children |
rev | line source |
---|---|
al@19763 | 1 # SliTaz package receipt v2. |
pankso@18 | 2 |
pankso@18 | 3 PACKAGE="python" |
al@20885 | 4 VERSION="2.7.15" |
pankso@204 | 5 CATEGORY="development" |
al@19763 | 6 SHORT_DESC="The Python programming language" |
al@21020 | 7 MAINTAINER="devel@slitaz.org" |
pascal@15378 | 8 LICENSE="PSL" |
al@19763 | 9 WEB_SITE="https://www.python.org/" |
al@21017 | 10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/python2.html" |
al@20884 | 11 REPOLOGY="python2" |
pankso@18 | 12 |
al@19763 | 13 TARBALL="$PACKAGE-$VERSION.tar.xz" |
al@19763 | 14 WGET_URL="https://www.python.org/ftp/python/$VERSION/Python-$VERSION.tar.xz" |
al@21129 | 15 TARBALL_SHA1="f99348a095ec4a6411c84c0d15343d11920c9724" |
al@19582 | 16 |
pascal@20098 | 17 BUILD_DEPENDS="openssl-dev bzip2-dev readline-dev sqlite3-dev zlib-dev \ |
al@19763 | 18 ncurses-dev tcl-dev tk-dev db-dev gdbm-dev libffi-dev expat-dev" |
al@21020 | 19 SPLIT="$PACKAGE-dev $PACKAGE-idle $PACKAGE-tcltk $PACKAGE" |
al@21129 | 20 |
al@20443 | 21 COOKOPTS="!menus !zip" |
pankso@16026 | 22 |
al@20443 | 23 compile_rules() { |
slaxemulator@10975 | 24 # Temporary workaround for FS#22322 |
slaxemulator@10975 | 25 # See http://bugs.python.org/issue10835 for upstream report |
al@20885 | 26 sed -i.orig "/progname =/s/python/python${_pybasever}/" Python/pythonrun.c |
al@18077 | 27 |
slaxemulator@10975 | 28 # Enable built-in SQLite3 module to load extensions (fix FS#22122) |
al@20885 | 29 sed -i.orig "/SQLITE_OMIT_LOAD_EXTENSION/d" setup.py |
al@20885 | 30 |
al@21020 | 31 ./configure \ |
al@21020 | 32 --prefix=/usr \ |
al@21020 | 33 --enable-shared \ |
al@21020 | 34 --with-system-expat \ |
al@21020 | 35 --with-system-ffi \ |
al@21020 | 36 --without-ensurepip \ |
al@21020 | 37 --enable-unicode=ucs4 \ |
al@21020 | 38 $CONFIGURE_ARGS && |
al@21020 | 39 make && |
al@21020 | 40 make DESTDIR=$install install && |
al@21020 | 41 chmod -v 755 $install/usr/lib/libpython2.7.so.1.0 |
al@20977 | 42 |
al@20977 | 43 find $install -type f \( -name '*.pyc' -o -name '*.pyo' \) -delete |
pankso@18 | 44 } |
pankso@18 | 45 |
al@20443 | 46 genpkg_rules() { |
al@19763 | 47 case $PACKAGE in |
al@20977 | 48 *-dev) |
al@20978 | 49 copy @dev test/ distutils/command/*.exe ensurepip/ |
al@20977 | 50 find $fs -type f -name pyconfig.h -delete # move to python package |
al@21133 | 51 DEPENDS="python" # skip python-idle and python-tcltk |
al@20977 | 52 ;; |
al@19763 | 53 *-idle) |
al@19763 | 54 copy idle idlelib/ python-idle.desktop |
al@19763 | 55 CAT="development|GUI IDE using TK Toolkit" |
al@19763 | 56 DEPENDS="python-tcltk tcl tk" |
al@19763 | 57 ;; |
al@19763 | 58 *-tcltk) |
al@20977 | 59 copy _tkinter.so lib-tk/ @rm |
al@19763 | 60 CAT="development|Tcl/Tk files" |
al@21078 | 61 DEPENDS="python tcl tk libx11" |
al@19763 | 62 ;; |
al@19763 | 63 python) |
al@20443 | 64 # Now pyconfig.h is required for Mercurial. |
al@20977 | 65 copy @std @rm pyconfig.h |
al@20975 | 66 DEPENDS="python-setuptools python-pip \ |
al@21111 | 67 libbzip2 expat libgdbm libffi libsqlite3 ncurses \ |
al@20443 | 68 ncurses-libpanel openssl readline zlib" |
al@19763 | 69 ;; |
al@19763 | 70 esac |
pankso@18 | 71 } |