CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
python: initial import aligned with upstream and removed pyconfig-64.h header
[ports/opt-arm.git] / python / Pkgfile
index 0103aa80b686a4319c51f38a7957d60b255f50f5..5b47934a2293c5cbe1fa435331504f664c844dc7 100644 (file)
@@ -1,29 +1,32 @@
 # Description: Python interpreter, version 2.7
-# URL: http://www.python.org
-# Maintainer: Juergen Daubert, jue at crux dot nu
-# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
-# Depends on: db gdbm openssl bzip2 zlib sqlite3
+# URL:         http://www.python.org
+# Maintainer:  Juergen Daubert, jue at crux dot nu
+# Depends on:  db gdbm openssl bzip2 zlib sqlite3
 
 name=python
-version=2.7.2
-release=2
+version=2.7.5
+release=1
 source=(http://www.python.org/ftp/$name/$version/Python-$version.tar.xz \
-        $name-gdbm.patch)
+        pyconfig.h)
 
 build () {
     cd Python-$version
 
-    patch -p1 -i $SRC/$name-gdbm.patch
-
+    # set OPT to the python default without -O3
+    # our CFLAGS are used as well
+    OPT="-Wall -Wstrict-prototypes -fwrapv" \
     ./configure --prefix=/usr \
                 --mandir=/usr/man \
                 --enable-shared \
                 --with-threads \
                 --enable-ipv6 
 
-    make EXTRA_CFLAGS="$CFLAGS"
+    make 
     make -j1 DESTDIR=$PKG install
 
+    # fix issue with man-page symlink
+    ln -sf python2.7.1 $PKG/usr/man/man1/python.1
+
     ln -sf python2.7 $PKG/usr/bin/python
     ln -s python2.7 $PKG/usr/lib/python
     ln -s python2.7 $PKG/usr/include/python
@@ -34,4 +37,6 @@ build () {
     rm $PKG/usr/lib/python/{distutils,site-packages,test/data}/README
     rm $PKG/usr/lib/python/idlelib/{ChangeLog,{NEWS,README,TODO}.txt}
     rm $PKG/usr/lib/python/ctypes/macholib/README.ctypes
+
+    cp $SRC/pyconfig.h $PKG/usr/include/python2.7/
 }