libxml2: add -python3
This commit is contained in:
parent
ab16a08839
commit
8c0d01bb06
|
@ -1 +0,0 @@
|
||||||
libxml2
|
|
|
@ -0,0 +1,32 @@
|
||||||
|
# Template file for 'libxml2-python'
|
||||||
|
pkgname=libxml2-python
|
||||||
|
version=2.9.8
|
||||||
|
revision=6
|
||||||
|
wrksrc="${pkgname%-python}-${version}"
|
||||||
|
build_wrksrc=python
|
||||||
|
build_style=python-module
|
||||||
|
hostmakedepends="python-devel python3-devel"
|
||||||
|
makedepends="libxml2-devel python-devel python3-devel"
|
||||||
|
depends="python python3"
|
||||||
|
short_desc="Library providing XML and HTML support - Python2 bindings"
|
||||||
|
maintainer="Rasmus Thomsen <rasmus.thomsen@protonmail.com>"
|
||||||
|
license="MIT"
|
||||||
|
homepage="http://www.xmlsoft.org/"
|
||||||
|
distfiles="http://xmlsoft.org/sources/libxml2-${version}.tar.gz"
|
||||||
|
checksum=0b74e51595654f958148759cfef0993114ddccccbb6f31aee018f3558e8e2732
|
||||||
|
|
||||||
|
pre_build() {
|
||||||
|
sed "s:/usr/include:${XBPS_CROSS_BASE}/usr/include:" -i setup.py
|
||||||
|
}
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
vlicense ../COPYING
|
||||||
|
}
|
||||||
|
|
||||||
|
libxml2-python3_package() {
|
||||||
|
short_desc+="${short_dest/Python2/Python3}"
|
||||||
|
pkg_install() {
|
||||||
|
vmove "usr/lib/python3*"
|
||||||
|
vlicense ../COPYING
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1 @@
|
||||||
|
libxml2-python
|
|
@ -1,13 +1,16 @@
|
||||||
# Template file for 'libxml2'
|
# Template file for 'libxml2'
|
||||||
|
#
|
||||||
|
# Please keep this in sync with "srcpkgs/libxml2-python"
|
||||||
|
#
|
||||||
pkgname=libxml2
|
pkgname=libxml2
|
||||||
version=2.9.8
|
version=2.9.8
|
||||||
revision=5
|
revision=6
|
||||||
patch_args="-Np1"
|
patch_args="-Np1"
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--disable-static --with-threads --with-history --with-icu"
|
configure_args="--disable-static --with-threads --with-history --with-icu
|
||||||
hostmakedepends="automake libtool gettext-devel pkg-config python-devel"
|
--without-python"
|
||||||
makedepends="zlib-devel ncurses-devel readline-devel liblzma-devel
|
hostmakedepends="automake libtool gettext-devel pkg-config"
|
||||||
icu-devel python-devel"
|
makedepends="zlib-devel ncurses-devel readline-devel liblzma-devel icu-devel"
|
||||||
short_desc="Library providing XML and HTML support"
|
short_desc="Library providing XML and HTML support"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
homepage="http://www.xmlsoft.org/"
|
homepage="http://www.xmlsoft.org/"
|
||||||
|
@ -21,11 +24,7 @@ pre_configure() {
|
||||||
autoreconf -fi
|
autoreconf -fi
|
||||||
sed '/PROGRAMS =/s,$(noinst_PROGRAMS),,' -i Makefile.in
|
sed '/PROGRAMS =/s,$(noinst_PROGRAMS),,' -i Makefile.in
|
||||||
}
|
}
|
||||||
pre_build() {
|
|
||||||
if [ "$CROSS_BUILD" ]; then
|
|
||||||
sed "s|/usr/\(include/python2.7\)|$XBPS_CROSS_BASE/\1|g" -i python/Makefile
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense COPYING
|
vlicense COPYING
|
||||||
}
|
}
|
||||||
|
@ -47,11 +46,3 @@ libxml2-devel_package() {
|
||||||
vmove "usr/lib/*.so"
|
vmove "usr/lib/*.so"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
libxml2-python_package() {
|
|
||||||
lib32disabled=yes
|
|
||||||
short_desc+=" - python extension"
|
|
||||||
pkg_install() {
|
|
||||||
vmove "usr/lib/python*"
|
|
||||||
vmove usr/share/doc/${sourcepkg}-python-${version}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue