summaryrefslogtreecommitdiffstats
path: root/base/python2/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'base/python2/Pkgfile')
-rwxr-xr-xbase/python2/Pkgfile16
1 files changed, 11 insertions, 5 deletions
diff --git a/base/python2/Pkgfile b/base/python2/Pkgfile
index da3495b3f..416678f5c 100755
--- a/base/python2/Pkgfile
+++ b/base/python2/Pkgfile
@@ -2,11 +2,11 @@
# URL: http://www.python.org
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
-# Depends on:
+# Depends on:tk
name=python2
-version=2.7.1
-release=6
+version=2.7.2
+release=1
_pybasever=2.7
source=( http://www.python.org/ftp/python/$version/Python-$version.tar.bz2
@@ -15,9 +15,12 @@ source=( http://www.python.org/ftp/python/$version/Python-$version.tar.bz2
build() {
cd Python-$version
- patch -Np1 -i ../python-2.7-db51.diff
+ sed -i "/progname =/s/python/python${_pybasever}/" Python/pythonrun.c
+
+# patch -Np1 -i ../python-2.7-db51.diff
sed -i "/SQLITE_OMIT_LOAD_EXTENSION/d" setup.py
+ sed -i -e "s|^#.* /usr/local/bin/python|#!/usr/bin/python2|" Lib/cgi.py
rm -r Modules/expat
rm -r Modules/zlib
@@ -29,14 +32,17 @@ build() {
--enable-unicode=ucs4 --with-system-expat --with-system-ffi
make
- make DESTDIR=$PKG altinstall
+ make DESTDIR=$PKG altinstall maninstall
ln -sf python${_pybasever} $PKG/usr/bin/python2
ln -sf python${_pybasever}-config $PKG/usr/bin/python2-config
+ ln -sf python${_pybasever}.1 $PKG/usr/share/man/man1/python2.1
ln -sf ../../libpython${_pybasever}.so \
$PKG/usr/lib/python${_pybasever}/config/libpython${_pybasever}.so
+
+
mv $PKG/usr/bin/smtpd.py $PKG/usr/lib/python${_pybasever}/
# some useful "stuff"