CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
python: initial import due to footprint mismatches for the ARM architecture
[ports/opt-arm.git] / python / Pkgfile
1 # Description: Python interpreter, version 2.7
2 # URL: http://www.python.org
3 # Maintainer: Juergen Daubert, jue at crux dot nu
4 # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
5 # Depends on: db gdbm openssl bzip2 zlib sqlite3
6
7 name=python
8 version=2.7.2
9 release=2
10 source=(http://www.python.org/ftp/$name/$version/Python-$version.tar.xz \
11 $name-gdbm.patch)
12
13 build () {
14 cd Python-$version
15
16 patch -p1 -i $SRC/$name-gdbm.patch
17
18 ./configure --prefix=/usr \
19 --mandir=/usr/man \
20 --enable-shared \
21 --with-threads \
22 --enable-ipv6
23
24 make EXTRA_CFLAGS="$CFLAGS"
25 make -j1 DESTDIR=$PKG install
26
27 ln -sf python2.7 $PKG/usr/bin/python
28 ln -s python2.7 $PKG/usr/lib/python
29 ln -s python2.7 $PKG/usr/include/python
30 ln -s /usr/lib/libpython2.7.so $PKG/usr/lib/python2.7/config/libpython2.7.so
31
32 rm -r $PKG/usr/lib/python/{bsddb,ctypes,email,sqlite3}/test
33 rm -r $PKG/usr/lib/python/{distutils,json,lib2to3}/tests
34 rm $PKG/usr/lib/python/{distutils,site-packages,test/data}/README
35 rm $PKG/usr/lib/python/idlelib/{ChangeLog,{NEWS,README,TODO}.txt}
36 rm $PKG/usr/lib/python/ctypes/macholib/README.ctypes
37 }