2019-09-28 00:17:56 +08:00
|
|
|
# Description: Libraries and utilities used for parsing XML files
|
|
|
|
# URL:
|
2019-11-10 23:58:56 +08:00
|
|
|
# Maintainer: Emmett1, emmett1 dot 2miligrams at gmail dot com
|
2019-09-28 00:17:56 +08:00
|
|
|
# Depends on:
|
|
|
|
|
|
|
|
name=libxml2
|
2020-06-12 16:42:33 +08:00
|
|
|
version=2.9.10
|
2019-09-28 00:17:56 +08:00
|
|
|
release=1
|
|
|
|
source=(http://xmlsoft.org/sources/$name-$version.tar.gz)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $name-$version
|
|
|
|
|
2020-11-13 13:58:01 +08:00
|
|
|
# fix a problem generating the Python3 module with Python-3.9.0 and later
|
|
|
|
sed -i '/if Py/{s/Py/(Py/;s/)/))/}' python/{types.c,libxml.c}
|
|
|
|
|
|
|
|
# ensure that the Python module can be built by Python-3.9.0
|
|
|
|
sed -i '/_PyVerify_fd/,+1d' python/types.c
|
|
|
|
|
2019-09-28 00:17:56 +08:00
|
|
|
./configure --prefix=/usr \
|
|
|
|
--disable-static \
|
|
|
|
--with-history \
|
|
|
|
--with-python=/usr/bin/python3
|
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
}
|