wok view python/receipt @ rev 9488

Fixed libglade to make sure libglade-convert is in DESTDIR/usr/bin folder.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue Apr 05 12:33:43 2011 +0000 (2011-04-05)
parents 5d9a6e5f6f88
children 9e8cd7598a81
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 TARBALL="$SOURCE-$VERSION.tar.bz2"
11 WEB_SITE="http://www.python.org/"
12 WGET_URL="http://www.python.org/ftp/python/$VERSION/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 ./configure --enable-shared --with-ncurses &&
19 make &&
20 make DESTDIR=$DESTDIR install
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 python_version=${VERSION:0:3}
27 mkdir -p $fs/usr/include/${PACKAGE}$python_version
28 cp -a $_pkg/usr/bin $fs/usr
29 cp -a $_pkg/usr/lib $fs/usr
30 # needed for mericurial to work now
31 cp -a $_pkg/usr/include/${PACKAGE}$python_version/pyconfig.h \
32 $fs/usr/include/${PACKAGE}$python_version
33 rm -f $fs/usr/bin/*-config
35 # Python can be symlink to python$python_version ???
36 #cd $fs/usr/bin
37 #rm python && ln -s python$python_version python
38 }