libxml2: rebuild for -dbg pkgs; cross build support.
This commit is contained in:
parent
4113262ec1
commit
66d6f3ef81
3 changed files with 17 additions and 19 deletions
|
@ -2,10 +2,7 @@
|
||||||
#
|
#
|
||||||
noarch=yes
|
noarch=yes
|
||||||
depends="zlib-devel libxml2>=${version}"
|
depends="zlib-devel libxml2>=${version}"
|
||||||
short_desc="${short_desc} (development files)"
|
short_desc="${short_desc} -- development files"
|
||||||
long_desc="${long_desc}
|
|
||||||
|
|
||||||
This package contains files for development, headers, static libs, etc."
|
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
vmove usr/include usr
|
vmove usr/include usr
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
# Template file for 'libxml2-python'.
|
# Template file for 'libxml2-python'.
|
||||||
#
|
#
|
||||||
short_desc="${short_desc} (python extension)"
|
short_desc="${short_desc} -- python extension"
|
||||||
long_desc="${long_desc}
|
|
||||||
|
|
||||||
This package contains ${sourcepkg} python related files."
|
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
vmove "usr/lib/python*" usr/lib
|
vmove "usr/lib/python*" usr/lib
|
||||||
|
|
|
@ -1,27 +1,31 @@
|
||||||
# Template build file for 'libxml2'.
|
# Template build file for 'libxml2'.
|
||||||
pkgname=libxml2
|
pkgname=libxml2
|
||||||
version=2.8.0
|
version=2.8.0
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--disable-static --with-threads --with-history"
|
configure_args="--disable-static --with-threads --with-history"
|
||||||
subpackages="$pkgname-devel $pkgname-python"
|
subpackages="$pkgname-devel $pkgname-python"
|
||||||
makedepends="ncurses-devel readline-devel liblzma-devel python-devel"
|
makedepends="ncurses-devel readline-devel liblzma-devel python-devel"
|
||||||
|
crossmakedepends="zlib-devel ${makedepends}"
|
||||||
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=f2e2d0e322685193d1affec83b21dc05d599e17a7306d7b90de95bb5b9ac622a
|
checksum=f2e2d0e322685193d1affec83b21dc05d599e17a7306d7b90de95bb5b9ac622a
|
||||||
long_desc="
|
|
||||||
This library allows to manipulate XML files. It includes support
|
if [ -n "$XBPS_CROSS_TRIPLET" ]; then
|
||||||
to read, modify and write XML and HTML files. There is DTDs support
|
makedepends="automake gettext-devel ${makedepends}"
|
||||||
this includes parsing and validation even with complex DtDs, either
|
pre_configure() {
|
||||||
at parse time or later once the document has been modified. The output
|
sed -e "s|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g" -i configure.in
|
||||||
can be a simple SAX stream or and in-memory DOM like representations.
|
autoreconf -fi
|
||||||
In this case one can use the built-in XPath and XPointer implementation
|
}
|
||||||
to select subnodes or ranges. A flexible Input/Output mechanism is
|
pre_build() {
|
||||||
available, with existing HTTP and FTP modules and combined to an
|
sed -e "s|/usr/\(include/python2.7\)|/usr/$XBPS_CROSS_TRIPLET/\1|g" \
|
||||||
URI library."
|
-e "s|/usr/\(lib/python2.7/site-packages\)|/usr/$XBPS_CROSS_TRIPLET/\1|g" \
|
||||||
|
-i python/Makefile
|
||||||
|
}
|
||||||
|
fi
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vinstall COPYING 644 usr/share/licenses/${pkgname}
|
vinstall COPYING 644 usr/share/licenses/${pkgname}
|
||||||
|
|
Loading…
Reference in a new issue