wok-next annotate python/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 | 8105ce8fc51a |
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@19582 | 15 |
pascal@20098 | 16 BUILD_DEPENDS="openssl-dev bzip2-dev readline-dev sqlite3-dev zlib-dev \ |
al@19763 | 17 ncurses-dev tcl-dev tk-dev db-dev gdbm-dev libffi-dev expat-dev" |
al@21020 | 18 SPLIT="$PACKAGE-dev $PACKAGE-idle $PACKAGE-tcltk $PACKAGE" |
al@20443 | 19 COOKOPTS="!menus !zip" |
pankso@16026 | 20 |
al@20443 | 21 compile_rules() { |
slaxemulator@10975 | 22 # Temporary workaround for FS#22322 |
slaxemulator@10975 | 23 # See http://bugs.python.org/issue10835 for upstream report |
al@20885 | 24 sed -i.orig "/progname =/s/python/python${_pybasever}/" Python/pythonrun.c |
al@18077 | 25 |
slaxemulator@10975 | 26 # Enable built-in SQLite3 module to load extensions (fix FS#22122) |
al@20885 | 27 sed -i.orig "/SQLITE_OMIT_LOAD_EXTENSION/d" setup.py |
al@20885 | 28 |
al@21020 | 29 ./configure \ |
al@21020 | 30 --prefix=/usr \ |
al@21020 | 31 --enable-shared \ |
al@21020 | 32 --with-system-expat \ |
al@21020 | 33 --with-system-ffi \ |
al@21020 | 34 --without-ensurepip \ |
al@21020 | 35 --enable-unicode=ucs4 \ |
al@21020 | 36 $CONFIGURE_ARGS && |
al@21020 | 37 make && |
al@21020 | 38 make DESTDIR=$install install && |
al@21020 | 39 chmod -v 755 $install/usr/lib/libpython2.7.so.1.0 |
al@20977 | 40 |
al@20977 | 41 find $install -type f \( -name '*.pyc' -o -name '*.pyo' \) -delete |
pankso@18 | 42 } |
pankso@18 | 43 |
al@20443 | 44 genpkg_rules() { |
al@19763 | 45 case $PACKAGE in |
al@20977 | 46 *-dev) |
al@20978 | 47 copy @dev test/ distutils/command/*.exe ensurepip/ |
al@20977 | 48 find $fs -type f -name pyconfig.h -delete # move to python package |
al@20977 | 49 ;; |
al@19763 | 50 *-idle) |
al@19763 | 51 copy idle idlelib/ python-idle.desktop |
al@19763 | 52 CAT="development|GUI IDE using TK Toolkit" |
al@19763 | 53 DEPENDS="python-tcltk tcl tk" |
al@19763 | 54 ;; |
al@19763 | 55 *-tcltk) |
al@20977 | 56 copy _tkinter.so lib-tk/ @rm |
al@19763 | 57 CAT="development|Tcl/Tk files" |
al@21078 | 58 DEPENDS="python tcl tk libx11" |
al@19763 | 59 ;; |
al@19763 | 60 python) |
al@20443 | 61 # Now pyconfig.h is required for Mercurial. |
al@20977 | 62 copy @std @rm pyconfig.h |
al@20975 | 63 DEPENDS="python-setuptools python-pip \ |
al@21111 | 64 libbzip2 expat libgdbm libffi libsqlite3 ncurses \ |
al@20443 | 65 ncurses-libpanel openssl readline zlib" |
al@19763 | 66 ;; |
al@19763 | 67 esac |
pankso@18 | 68 } |