wok view python/receipt @ rev 9158
Up: samba to 3.5.8.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Mon Mar 07 11:11:16 2011 +0000 (2011-03-07) |
parents | a238d58b4e7a |
children | 5d9a6e5f6f88 |
line source
1 # SliTaz package receipt.
3 PACKAGE="python"
4 VERSION="2.7.1"
5 CATEGORY="development"
6 SHORT_DESC="The Python programming language."
7 MAINTAINER="pankso@slitaz.org"
8 SOURCE="Python"
9 DEPENDS="openssl bzlib readline sqlite zlib ncursesw"
10 BUILD_DEPENDS="$DEPENDS readline-dev openssl-dev ncursesw-dev"
11 TARBALL="$SOURCE-$VERSION.tar.bz2"
12 WEB_SITE="http://www.python.org/"
13 WGET_URL="http://www.python.org/ftp/python/$VERSION/$TARBALL"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 ./configure --enable-shared --with-ncurses \
20 --prefix=/usr --infodir=/usr/share/info \
21 --mandir=/usr/share/man $CONFIGURE_ARGS &&
22 make &&
23 make DESTDIR=$PWD/_pkg install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 python_version=${VERSION:0:3}
30 mkdir -p $fs/usr/include/${PACKAGE}$python_version
31 cp -a $_pkg/usr/bin $fs/usr
32 cp -a $_pkg/usr/lib $fs/usr
33 # needed for mericurial to work now
34 cp -a $_pkg/usr/include/${PACKAGE}$python_version/pyconfig.h \
35 $fs/usr/include/${PACKAGE}$python_version
36 find $fs/usr/lib/${PACKAGE}$python_version -name "*.pyc" -delete
37 find $fs/usr/lib/${PACKAGE}$python_version -name "*.pyo" -delete
38 rm -f $fs/usr/bin/*-config
39 strip -s $fs/usr/bin/* 2>/dev/null
40 strip -s $fs/usr/lib/*.so* 2>/dev/null
42 # Python can be symlink to python$python_version ???
43 #cd $fs/usr/bin
44 #rm python && ln -s python$python_version python
45 }