python: add patch to detect Linux 3.x as linux2 in sys.platform.
This commit is contained in:
parent
040eaa74a6
commit
56efac8fb9
4 changed files with 50 additions and 18 deletions
|
@ -1,12 +1,11 @@
|
|||
# Template build file for 'python'.
|
||||
pkgname=python
|
||||
version=2.7.2
|
||||
revision=1
|
||||
patch_args="-Np1"
|
||||
wrksrc="Python-$version"
|
||||
distfiles="http://www.python.org/ftp/python/$version/Python-$version.tar.bz2"
|
||||
configure_args="--with-threads --enable-ipv6 --with-signal-module
|
||||
--enable-shared --with-system-ffi --enable-unicode=ucs4 --with-system-expat
|
||||
--with-wctype-functions"
|
||||
build_style=gnu_configure
|
||||
build_style=custom-install
|
||||
short_desc="Interpreted, interactive, object-oriented programming language"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
homepage="http://www.python.org"
|
||||
|
@ -50,13 +49,27 @@ Add_dependency build db-devel
|
|||
Add_dependency build ncurses-devel
|
||||
Add_dependency build sqlite-devel
|
||||
|
||||
pre_configure()
|
||||
do_configure()
|
||||
{
|
||||
export OPT="${XBPS_CFLAGS} -fwrapv"
|
||||
# Enable built-in SQLite3 module to load extensions (Arch fix FS#22122)
|
||||
sed -i "/SQLITE_OMIT_LOAD_EXTENSION/d" setup.py
|
||||
|
||||
export OPT="${XBPS_CFLAGS}"
|
||||
./configure ${CONFIGURE_SHARED_ARGS} --with-threads \
|
||||
--enable-ipv6 --with-signal-module --enable-shared \
|
||||
--with-system-ffi --enable-unicode=ucs4 --with-system-expat \
|
||||
--with-wctype-functions
|
||||
}
|
||||
|
||||
post_install()
|
||||
do_build()
|
||||
{
|
||||
make ${makejobs}
|
||||
}
|
||||
|
||||
do_install()
|
||||
{
|
||||
make DESTDIR=${DESTDIR} install
|
||||
|
||||
chmod 755 ${DESTDIR}/usr/lib/libpython*.so*
|
||||
install -Dm644 LICENSE ${DESTDIR}/usr/share/licenses/python/LICENSE
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue