wok-undigest diff python/receipt @ rev 1238
added recipes for flac and flac-dev
author | Hans-G?nter Theisgen |
---|---|
date | Sat Aug 06 17:32:50 2022 +0100 (23 months ago) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/python/receipt Sat Aug 06 17:32:50 2022 +0100 1.3 @@ -0,0 +1,71 @@ 1.4 +# SliTaz package receipt v2. 1.5 + 1.6 +PACKAGE="python" 1.7 +VERSION="2.7.15" 1.8 +CATEGORY="development" 1.9 +SHORT_DESC="The Python programming language" 1.10 +MAINTAINER="devel@slitaz.org" 1.11 +LICENSE="PSL" 1.12 +WEB_SITE="https://www.python.org/" 1.13 +LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/python2.html" 1.14 +REPOLOGY="python2" 1.15 + 1.16 +TARBALL="$PACKAGE-$VERSION.tar.xz" 1.17 +WGET_URL="https://www.python.org/ftp/python/$VERSION/Python-$VERSION.tar.xz" 1.18 +TARBALL_SHA1="f99348a095ec4a6411c84c0d15343d11920c9724" 1.19 + 1.20 +BUILD_DEPENDS="openssl-dev bzip2-dev readline-dev sqlite3-dev zlib-dev \ 1.21 +ncurses-dev tcl-dev tk-dev db-dev gdbm-dev libffi-dev expat-dev" 1.22 +SPLIT="$PACKAGE-dev $PACKAGE-idle $PACKAGE-tcltk $PACKAGE" 1.23 + 1.24 +COOKOPTS="!menus !zip" 1.25 + 1.26 +compile_rules() { 1.27 + # Temporary workaround for FS#22322 1.28 + # See http://bugs.python.org/issue10835 for upstream report 1.29 + sed -i.orig "/progname =/s/python/python${_pybasever}/" Python/pythonrun.c 1.30 + 1.31 + # Enable built-in SQLite3 module to load extensions (fix FS#22122) 1.32 + sed -i.orig "/SQLITE_OMIT_LOAD_EXTENSION/d" setup.py 1.33 + 1.34 + ./configure \ 1.35 + --prefix=/usr \ 1.36 + --enable-shared \ 1.37 + --with-system-expat \ 1.38 + --with-system-ffi \ 1.39 + --without-ensurepip \ 1.40 + --enable-unicode=ucs4 \ 1.41 + $CONFIGURE_ARGS && 1.42 + make && 1.43 + make DESTDIR=$install install && 1.44 + chmod -v 755 $install/usr/lib/libpython2.7.so.1.0 1.45 + 1.46 + find $install -type f \( -name '*.pyc' -o -name '*.pyo' \) -delete 1.47 +} 1.48 + 1.49 +genpkg_rules() { 1.50 + case $PACKAGE in 1.51 + *-dev) 1.52 + copy @dev test/ distutils/command/*.exe ensurepip/ 1.53 + find $fs -type f -name pyconfig.h -delete # move to python package 1.54 + DEPENDS="python" # skip python-idle and python-tcltk 1.55 + ;; 1.56 + *-idle) 1.57 + copy idle idlelib/ python-idle.desktop 1.58 + CAT="development|GUI IDE using TK Toolkit" 1.59 + DEPENDS="python-tcltk tcl tk" 1.60 + ;; 1.61 + *-tcltk) 1.62 + copy _tkinter.so lib-tk/ @rm 1.63 + CAT="development|Tcl/Tk files" 1.64 + DEPENDS="python tcl tk libx11" 1.65 + ;; 1.66 + python) 1.67 + # Now pyconfig.h is required for Mercurial. 1.68 + copy @std @rm pyconfig.h 1.69 + DEPENDS="python-setuptools python-pip \ 1.70 + libbzip2 expat libgdbm libffi libsqlite3 ncurses \ 1.71 + ncurses-libpanel openssl readline zlib" 1.72 + ;; 1.73 + esac 1.74 +}