wok-6.x annotate python/receipt @ rev 6616
Fixed mercurial. Need pyconfig.h for mercurial to work. So i added this to python package since pyconfig.h maybe need for more python programs. I also removed all .pyc and .pyo files from python. Removed about 4mb from python by doing that.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat Oct 09 20:49:19 2010 +0000 (2010-10-09) |
parents | 5921dc28d8c6 |
children | 15b3f14c3001 |
rev | line source |
---|---|
pankso@18 | 1 # SliTaz package receipt. |
pankso@18 | 2 |
pankso@18 | 3 PACKAGE="python" |
slaxemulator@6586 | 4 VERSION="2.7" |
pankso@204 | 5 CATEGORY="development" |
pankso@18 | 6 SHORT_DESC="The Python programming language." |
pankso@18 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@18 | 8 SOURCE="Python" |
pankso@5251 | 9 DEPENDS="openssl bzlib readline sqlite zlib ncursesw" |
pankso@5251 | 10 BUILD_DEPENDS="$DEPENDS readline-dev openssl-dev ncursesw-dev" |
pankso@18 | 11 TARBALL="$SOURCE-$VERSION.tar.bz2" |
pankso@18 | 12 WEB_SITE="http://www.python.org/" |
pankso@18 | 13 WGET_URL="http://www.python.org/ftp/python/$VERSION/$TARBALL" |
pankso@18 | 14 |
pankso@18 | 15 # Rules to configure and make the package. |
pankso@18 | 16 compile_rules() |
pankso@18 | 17 { |
pankso@18 | 18 cd $src |
pankso@18 | 19 ./configure --enable-shared --with-ncurses \ |
pankso@18 | 20 --prefix=/usr --infodir=/usr/share/info \ |
pascal@1470 | 21 --mandir=/usr/share/man $CONFIGURE_ARGS && |
pascal@1470 | 22 make && |
pankso@18 | 23 make DESTDIR=$PWD/_pkg install |
pankso@18 | 24 } |
pankso@18 | 25 |
pankso@18 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@18 | 27 genpkg_rules() |
pankso@18 | 28 { |
slaxemulator@6616 | 29 mkdir -p $fs/usr/include/${PACKAGE}${VERSION} |
pankso@18 | 30 cp -a $_pkg/usr/bin $fs/usr |
pankso@18 | 31 cp -a $_pkg/usr/lib $fs/usr |
slaxemulator@6616 | 32 # needed for mericurial to work now |
slaxemulator@6616 | 33 cp -a $_pkg/usr/include/${PACKAGE}${VERSION}/pyconfig.h $fs/usr/include/${PACKAGE}${VERSION} |
slaxemulator@6616 | 34 find $fs/usr/lib/${PACKAGE}${VERSION} -name "*.pyc" -delete |
slaxemulator@6616 | 35 find $fs/usr/lib/${PACKAGE}${VERSION} -name "*.pyo" -delete |
pankso@18 | 36 rm -f $fs/usr/bin/*-config |
pankso@18 | 37 strip -s $fs/usr/bin/* 2>/dev/null |
pankso@18 | 38 strip -s $fs/usr/lib/*.so* 2>/dev/null |
pankso@18 | 39 |
pascal@6592 | 40 # Python can be symlink to python${VERSION:0:3} ??? |
pankso@18 | 41 #cd $fs/usr/bin |
pascal@6592 | 42 #rm python && ln -s python${VERSION:0:3} python |
pankso@18 | 43 } |
pankso@18 | 44 |