wok-undigest diff python3/receipt @ rev 1227
copied perl recipe from wok-next
author | Hans-G?nter Theisgen |
---|---|
date | Fri Nov 15 17:49:31 2019 +0100 (2019-11-15) |
parents | |
children | 3ac7c71d9065 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/python3/receipt Fri Nov 15 17:49:31 2019 +0100 1.3 @@ -0,0 +1,59 @@ 1.4 +# SliTaz package receipt v2. 1.5 + 1.6 +PACKAGE="python3" 1.7 +VERSION="3.7.2" 1.8 +CATEGORY="development" 1.9 +SHORT_DESC="The Python 3 programming language" 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +LICENSE="GPL" 1.12 +WEB_SITE="https://www.python.org/download/releases/" 1.13 +LFS="http://www.linuxfromscratch.org/lfs/view/development/chapter06/Python.html" 1.14 + 1.15 +TARBALL="Python-$VERSION.tar.xz" 1.16 +WGET_URL="https://www.python.org/ftp/python/$VERSION/$TARBALL" 1.17 +TARBALL_SHA1="c3dc6928516bcb934cf4740461044c79c7c35494" 1.18 + 1.19 +BUILD_DEPENDS="readline-dev gdbm-dev openssl-dev sqlite3-dev zlib-dev tk-dev \ 1.20 +ncurses-dev xz-dev bzip2-dev expat-dev libffi-dev" 1.21 +SPLIT="$PACKAGE-idle $PACKAGE-tcltk $PACKAGE-ensurepip $PACKAGE $PACKAGE-dev" 1.22 + 1.23 +COPY_idle="idle3 idle${VERSION%.*} idlelib/" 1.24 +COPY_tcltk="_tkinter.*.so tkinter/" 1.25 +COPY_ensurepip="ensurepip/" 1.26 +COPY_std="@std @rm pyconfig.h" 1.27 + 1.28 +CAT_idle="development|GUI IDE using TK Toolkit" 1.29 +CAT_tcltk="development|Tcl/Tk files" 1.30 +CAT_ensurepip="development|ensurepip" 1.31 + 1.32 +DEPENDS_idle="$PACKAGE" 1.33 +DEPENDS_tcltk="$PACKAGE tcl tk" 1.34 +DEPENDS_ensurepip="$PACKAGE" 1.35 +DEPENDS_std="expat libbzip2 libffi libgdbm liblzma libsqlite3 ncurses \ 1.36 +ncurses-libpanel openssl readline util-linux-uuid zlib python3-setuptools \ 1.37 +python3-pip" 1.38 +DEPENDS_dev="$PACKAGE" 1.39 + 1.40 +TAGS_std="LFS" 1.41 +COOKOPTS="!zip" 1.42 + 1.43 +compile_rules() { 1.44 + mkdir -p $install/usr/lib/pkgconfig 1.45 + 1.46 + ./configure \ 1.47 + --enable-shared \ 1.48 + --with-system-expat \ 1.49 + --with-system-ffi \ 1.50 + --without-ensurepip \ 1.51 + $CONFIGURE_ARGS && 1.52 + make && 1.53 + make DESTDIR=$install install || return 1 1.54 + 1.55 + chmod 755 $install/usr/lib/libpython${VERSION%.*}m.so 1.56 + chmod 755 $install/usr/lib/libpython${VERSION%%.*}.so 1.57 + 1.58 + find $install -type f -name '*.pyc' -delete 1.59 +} 1.60 + 1.61 +PROVIDE_std="py3k" 1.62 +PROVIDE_dev="py3k-dev"