diff options
author | piernov <piernov@piernov.org> | 2012-05-25 17:13:03 +0000 |
---|---|---|
committer | piernov <piernov@piernov.org> | 2012-05-25 17:13:03 +0000 |
commit | 9dcc57324a97bba6931acf2325133f735e7d6e47 (patch) | |
tree | fccfa16ff5b96e385f71161fc1037ed32c7467b0 /python2/Pkgfile | |
parent | 349b9db16145c6f92b154b52c8bebc0e29e02db0 (diff) | |
download | nutyx-pakxe-9dcc57324a97bba6931acf2325133f735e7d6e47.tar.gz nutyx-pakxe-9dcc57324a97bba6931acf2325133f735e7d6e47.tar.bz2 nutyx-pakxe-9dcc57324a97bba6931acf2325133f735e7d6e47.tar.xz nutyx-pakxe-9dcc57324a97bba6931acf2325133f735e7d6e47.zip |
python2 2.7.3-1 màj port
Diffstat (limited to 'python2/Pkgfile')
-rwxr-xr-x | python2/Pkgfile | 69 |
1 files changed, 33 insertions, 36 deletions
diff --git a/python2/Pkgfile b/python2/Pkgfile index 8395b79be..78c7a290e 100755 --- a/python2/Pkgfile +++ b/python2/Pkgfile @@ -2,67 +2,64 @@ # URL: http://www.python.org # Maintainer: NuTyX core team # Packager: thierryn1 at hispeed dot ch -# Depends on:tk,expat +# Depends on: tk,expat name=python2 -version=2.7.2 -release=2 +version=2.7.3 +release=1 _pybasever=2.7 -source=(http://www.python.org/ftp/python/$version/Python-$version.tar.bz2 - python-2.7-db51.diff - gdbm-magic-values.patch) +source=(http://www.python.org/ftp/python/$version/Python-$version.tar.bz2) build() { cd Python-$version sed -i "/progname =/s/python/python${_pybasever}/" Python/pythonrun.c - patch -Np1 -i ../python-2.7-db51.diff - patch -Np1 -i ../gdbm-magic-values.patch - 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 - rm -r Modules/_ctypes/{darwin,libffi}* + rm -r Modules/zlib + rm -r Modules/_ctypes/{darwin,libffi}* - export OPT="${CFLAGS}" - ./configure --prefix=/usr --enable-shared --with-threads --enable-ipv6 \ - --enable-unicode=ucs4 --with-system-expat --with-system-ffi + ./configure --prefix=/usr \ + --enable-shared \ + --with-threads \ + --enable-ipv6 \ + --enable-unicode=ucs4 \ + --with-system-expat \ + --with-system-ffi \ + --with-dbmliborder=gdbm:ndbm make 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}-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 - - + 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}/ + mv $PKG/usr/bin/smtpd.py $PKG/usr/lib/python${_pybasever}/ - # some useful "stuff" - install -dm755 $PKG/usr/lib/python${_pybasever}/Tools/{i18n,scripts} - install -m755 Tools/i18n/{msgfmt,pygettext}.py \ - $PKG/usr/lib/python${_pybasever}/Tools/i18n/ - install -m755 Tools/scripts/{README,*py} \ - $PKG/usr/lib/python${_pybasever}/Tools/scripts/ + # some useful "stuff" + install -dm755 $PKG/usr/lib/python${_pybasever}/Tools/{i18n,scripts} + install -m755 Tools/i18n/{msgfmt,pygettext}.py \ + $PKG/usr/lib/python${_pybasever}/Tools/i18n/ + install -m755 Tools/scripts/{README,*py} \ + $PKG/usr/lib/python${_pybasever}/Tools/scripts/ - # fix conflicts with python - mv $PKG/usr/bin/idle{,2} - mv $PKG/usr/bin/pydoc{,2} + # fix conflicts with python + mv $PKG/usr/bin/idle{,2} + mv $PKG/usr/bin/pydoc{,2} - # clean up #!s - find $PKG/usr/lib/python2.7/ -name '*.py' | \ - xargs sed -i "s|#[ ]*![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" + # clean up #!s + find $PKG/usr/lib/python2.7/ -name '*.py' | \ + xargs sed -i "s|#[ ]*![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" - # clean-up reference to build directory - sed -i "s#$SRC/Python-$version:##" \ - $PKG/usr/lib/python${_pybasever}/config/Makefile + # clean-up reference to build directory + sed -i "s#$SRC/Python-$version:##" \ + $PKG/usr/lib/python${_pybasever}/config/Makefile } - |