libxml2: update to 2.9.2.

This commit is contained in:
Juan RP 2014-10-18 18:20:12 +02:00
parent 4545aca5e3
commit 8d430e6b61

View file

@ -1,40 +1,42 @@
# Template build file for 'libxml2'. # Template build file for 'libxml2'.
pkgname=libxml2 pkgname=libxml2
version=2.9.1 version=2.9.2
revision=4 revision=1
build_style=gnu-configure build_style=gnu-configure
configure_args="--disable-static --with-threads --with-history" configure_args="--disable-static --with-threads --with-history"
hostmakedepends="automake libtool gettext-devel pkg-config python-devel"
makedepends="zlib-devel ncurses-devel readline-devel>=6.3 liblzma-devel python-devel" makedepends="zlib-devel ncurses-devel readline-devel>=6.3 liblzma-devel python-devel"
short_desc="Library providing XML and HTML support" short_desc="Library providing XML and HTML support"
maintainer="Juan RP <xtraeme@gmail.com>" maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.xmlsoft.org/" homepage="http://www.xmlsoft.org/"
license="MIT" license="MIT"
distfiles="http://xmlsoft.org/sources/$pkgname-$version.tar.gz" distfiles="http://xmlsoft.org/sources/$pkgname-$version.tar.gz"
checksum=fd3c64cb66f2c4ea27e934d275904d92cec494a8e8405613780cbc8a71680fdb checksum=5178c30b151d044aefb1b08bf54c3003a0ac55c59c866763997529d60770d5bc
LDFLAGS="-lz -llzma -lpthread"
if [ "$CROSS_BUILD" ]; then
hostmakedepends="automake libtool gettext-devel python-devel"
pre_configure() { pre_configure() {
sed -e "s|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g" -i configure.in
autoreconf -fi autoreconf -fi
sed '/PROGRAMS =/s,$(noinst_PROGRAMS),,' -i Makefile.in
} }
pre_build() { pre_build() {
sed -e "s|/usr/\(include/python2.7\)|$XBPS_CROSS_BASE/\1|g" -i python/Makefile if [ "$CROSS_BUILD" ]; then
} sed "s|/usr/\(include/python2.7\)|$XBPS_CROSS_BASE/\1|g" -i python/Makefile
fi fi
}
post_install() { post_install() {
vinstall COPYING 644 usr/share/licenses/${pkgname} vlicense COPYING
} }
libxml2-devel_package() { libxml2-devel_package() {
depends="zlib-devel libxml2>=${version}_${revision}" depends="zlib-devel liblzma-devel libxml2>=${version}_${revision}"
short_desc+=" - development files" short_desc+=" - development files"
pkg_install() { pkg_install() {
vmove usr/include vmove usr/include
vmove usr/bin/xml2-config vmove usr/bin/xml2-config
vmove usr/lib/xml2Conf.sh vmove usr/lib/xml2Conf.sh
vmove usr/lib/pkgconfig vmove usr/lib/pkgconfig
vmove usr/lib/cmake
vmove usr/share/aclocal vmove usr/share/aclocal
vmove usr/share/gtk-doc vmove usr/share/gtk-doc
vmove usr/share/doc/${sourcepkg}-${version} vmove usr/share/doc/${sourcepkg}-${version}
@ -43,7 +45,6 @@ libxml2-devel_package() {
vmove "usr/lib/*.so" vmove "usr/lib/*.so"
} }
} }
libxml2-python_package() { libxml2-python_package() {
lib32disabled=yes lib32disabled=yes
short_desc+=" - python extension" short_desc+=" - python extension"