wok-4.x view python/receipt @ rev 12477

Up openssl 1.1.1n (bump packages curl, git, wget, python), up cherokee 1.2.104 and bdeps (automake, openldap, cyrus-sasl)
author Stanislas Leduc <shann@slitaz.org>
date Sun Apr 02 14:34:44 2023 +0000 (20 months ago)
parents 39f7962e4210
children
line source
1 # SliTaz package receipt.
3 PACKAGE="python"
4 VERSION="2.7.18"
5 CATEGORY="development"
6 SHORT_DESC="The Python programming language."
7 MAINTAINER="pankso@slitaz.org"
8 SOURCE="Python"
9 TARBALL="$SOURCE-$VERSION.tar.xz"
10 WEB_SITE="http://www.python.org/"
11 #WGET_URL="http://www.python.org/ftp/python/$VERSION/$TARBALL"
12 WGET_URL="http://mirror.slitaz.org/sources/packages-cooking/P/$TARBALL"
14 DEPENDS="openssl bzlib readline sqlite zlib ncursesw gdbm libffi"
15 BUILD_DEPENDS="openssl-dev bzip2-dev readline-dev sqlite-dev zlib-dev \
16 ncursesw-dev tcl-dev db-dev gdbm-dev libffi-dev"
17 SUGGESTED="tcl tk"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src
23 # Temporary workaround for FS#22322
24 # See http://bugs.python.org/issue10835 for upstream report
25 sed -i "/progname =/s/python/python${_pybasever}/" Python/pythonrun.c
26 # Enable built-in SQLite3 module to load extensions (fix FS#22122)
27 sed -i "/SQLITE_OMIT_LOAD_EXTENSION/d" setup.py
28 # Enable SSL module
29 patch -p1 < $stuff/python_enablessl.patch
30 ./configure \
31 --enable-shared \
32 --build=$HOST_SYSTEM \
33 --host=$HOST_SYSTEM &&
34 make && make DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 python_version=${VERSION:0:3}
41 mkdir -p $fs/usr/include/${PACKAGE}$python_version
42 cp -a $_pkg/usr/bin $fs/usr
43 cp -a $_pkg/usr/lib $fs/usr
44 # needed for mericurial to work now
45 cp -a $_pkg/usr/include/${PACKAGE}$python_version/pyconfig.h \
46 $fs/usr/include/${PACKAGE}$python_version
47 rm -f $fs/usr/bin/*-config
49 # Python can be symlink to python$python_version ???
50 #cd $fs/usr/bin
51 #rm python && ln -s python$python_version python
52 }