wok-current rev 16494
Add python-idle (to split TK deps on python)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Apr 23 15:48:36 2014 +0200 (2014-04-23) |
parents | 4d888974dc59 |
children | 007630052ef4 |
files | python-idle/receipt python-idle/stuff/python-idle.desktop python/receipt python/stuff/applications/idle.desktop |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/python-idle/receipt Wed Apr 23 15:48:36 2014 +0200 1.3 @@ -0,0 +1,20 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="python-idle" 1.7 +VERSION="2.7.5" 1.8 +CATEGORY="development" 1.9 +SHORT_DESC="Python GUI IDE using TK Toolkit" 1.10 +MAINTAINER="pankso@slitaz.org" 1.11 +WEB_SITE="http://www.python.org/" 1.12 +HOST_ARCH="i486 arm" 1.13 + 1.14 +WANTED="python" 1.15 +DEPENDS="python tcl tk" 1.16 + 1.17 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.18 +genpkg_rules() 1.19 +{ 1.20 + mkdir -p $fs/usr/bin $fs/usr/lib/python2.7 1.21 + cp -a $install/usr/bin/idle $fs/usr/bin 1.22 + cp -a $install/usr/lib/python2.7/idlelib $fs/usr/lib/python2.7 1.23 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/python-idle/stuff/python-idle.desktop Wed Apr 23 15:48:36 2014 +0200 2.3 @@ -0,0 +1,8 @@ 2.4 +[Desktop Entry] 2.5 +Encoding=UTF-8 2.6 +Name=Python IDLE 2.7 +Terminal=false 2.8 +Exec=idle 2.9 +Icon=python 2.10 +Type=Application 2.11 +Categories=Development;
3.1 --- a/python/receipt Wed Apr 23 15:29:12 2014 +0200 3.2 +++ b/python/receipt Wed Apr 23 15:48:36 2014 +0200 3.3 @@ -12,16 +12,10 @@ 3.4 WGET_URL="https://www.python.org/ftp/python/$VERSION/$TARBALL" 3.5 HOST_ARCH="i486 arm" 3.6 3.7 +RELATED="python-dev python-idle" # version must match 3.8 DEPENDS="openssl bzlib readline sqlite zlib ncursesw gdbm libffi" 3.9 BUILD_DEPENDS="openssl-dev bzip2-dev readline-dev sqlite-dev zlib-dev \ 3.10 -ncursesw-dev tcl-dev tk-dev db-dev gdbm-dev wget" 3.11 -SUGGESTED="tcl tk" 3.12 - 3.13 -# Handle cross compilation 3.14 -case "$ARCH" in 3.15 - arm*) BUILD_DEPENDS="openssl-dev bzip2-dev readline-dev ncursesw-dev \ 3.16 -tcl-dev db-dev wget libffi-dev gdbm-dev" ;; 3.17 -esac 3.18 +ncursesw-dev tcl-dev tk-dev db-dev gdbm-dev wget libffi-dev" 3.19 3.20 # Rules to configure and make the package. 3.21 compile_rules() 3.22 @@ -95,5 +89,8 @@ 3.23 cp -a $install/usr/include/${PACKAGE}$python_version/pyconfig.h \ 3.24 $fs/usr/include/${PACKAGE}$python_version 3.25 rm -f $fs/usr/bin/*-config 3.26 + # Split IDLE with TK dep 3.27 + rm -f $fs/usr/bin/idle 3.28 + rm -rf $fs/usr/lib/python2.7/idlelib 3.29 } 3.30
4.1 --- a/python/stuff/applications/idle.desktop Wed Apr 23 15:29:12 2014 +0200 4.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 4.3 @@ -1,8 +0,0 @@ 4.4 -[Desktop Entry] 4.5 -Encoding=UTF-8 4.6 -Name=Python IDLE 4.7 -Terminal=false 4.8 -Exec=idle 4.9 -Icon=python 4.10 -Type=Application 4.11 -Categories=Development;