wok-6.x 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 | 741d74ff5db3 |
children | aa908cf474fa |
files | python-dev/receipt python/receipt |
line diff
1.1 --- a/python-dev/receipt Sat Oct 09 20:29:32 2010 +0000 1.2 +++ b/python-dev/receipt Sat Oct 09 20:49:19 2010 +0000 1.3 @@ -5,6 +5,7 @@ 1.4 CATEGORY="development" 1.5 SHORT_DESC="The Python programming language devel files." 1.6 MAINTAINER="pankso@slitaz.org" 1.7 +DEPENDS="python" 1.8 WANTED="python" 1.9 SOURCE="Python" 1.10 WEB_SITE="http://www.python.org/" 1.11 @@ -16,5 +17,7 @@ 1.12 cp -a $WOK/$WANTED/$SOURCE-$VERSION/_pkg/usr/include $fs/usr 1.13 cp -a $WOK/$WANTED/$SOURCE-$VERSION/_pkg/usr/bin/*-config $fs/usr/bin 1.14 chmod 755 $fs/usr/bin/*-config 1.15 + # in python package now 1.16 + rm $fs/usr/include/${PACKAGE}${VERSION}/pyconfig.h 1.17 } 1.18
2.1 --- a/python/receipt Sat Oct 09 20:29:32 2010 +0000 2.2 +++ b/python/receipt Sat Oct 09 20:49:19 2010 +0000 2.3 @@ -26,9 +26,13 @@ 2.4 # Rules to gen a SliTaz package suitable for Tazpkg. 2.5 genpkg_rules() 2.6 { 2.7 - mkdir -p $fs/usr 2.8 + mkdir -p $fs/usr/include/${PACKAGE}${VERSION} 2.9 cp -a $_pkg/usr/bin $fs/usr 2.10 cp -a $_pkg/usr/lib $fs/usr 2.11 + # needed for mericurial to work now 2.12 + cp -a $_pkg/usr/include/${PACKAGE}${VERSION}/pyconfig.h $fs/usr/include/${PACKAGE}${VERSION} 2.13 + find $fs/usr/lib/${PACKAGE}${VERSION} -name "*.pyc" -delete 2.14 + find $fs/usr/lib/${PACKAGE}${VERSION} -name "*.pyo" -delete 2.15 rm -f $fs/usr/bin/*-config 2.16 strip -s $fs/usr/bin/* 2>/dev/null 2.17 strip -s $fs/usr/lib/*.so* 2>/dev/null