36 lines
936 B
Plaintext
Raw Normal View History

# Description: Python bindings for the XML library version 2
2014-10-18 22:59:29 +11:00
# URL: http://xmlsoft.org/
# Maintainer: CRUX compat-32 Team, compat-32-ports at crux dot nu
2014-10-18 22:59:29 +11:00
# Depends on: python-32 libxml2-32 libxml2-python
name=libxml2-python-32
2016-05-28 15:33:05 +10:00
version=2.9.4
2015-11-21 13:12:49 +11:00
release=1
2013-05-29 13:25:53 +10:00
source=(ftp://xmlsoft.org/libxml2/libxml2-$version.tar.gz
2014-10-18 22:59:29 +11:00
libxml2-python-config.patch)
2014-10-18 22:59:29 +11:00
build() {
cd libxml2-$version
2012-12-24 21:32:57 +11:00
2014-10-18 22:59:29 +11:00
patch -p1 -i $SRC/libxml2-python-config.patch
# --libdir=/usr/lib32 is unpredictable version 2.9.1 and 2.9.2
2014-10-18 22:59:29 +11:00
./configure --prefix=/usr --libdir=/usr/lib32
cd python
2012-12-24 21:32:57 +11:00
2014-10-18 22:59:29 +11:00
make
make DESTDIR=$PKG install
2013-05-29 13:25:53 +10:00
# --libdir is not to be trusted some sort of race at configure
# library will either end up in lib or lib32 depending on mood
2015-11-21 13:12:49 +11:00
# if [ -e $PKG/usr/lib ]; then
# mv $PKG/usr/lib $PKG/usr/lib32
# fi
2014-10-18 22:59:29 +11:00
rm $PKG/usr/lib32/python2.7/site-packages/libxml2mod.{a,la}
rm -r $PKG/usr/share/doc
rmdir $PKG/usr/share
2013-10-27 19:05:29 +11:00
2014-10-18 22:59:29 +11:00
python -mcompileall $PKG/usr/lib32/python2.7/
}