libxml2-python: remove package

* add python3 to dependencies of libxml2-python3
This commit is contained in:
Michal Vasilek 2022-01-09 14:13:10 +01:00 committed by paper
parent 0b852b64e4
commit 03df8f0754
6 changed files with 27 additions and 36 deletions

View File

@ -1,34 +0,0 @@
# Template file for 'libxml2-python'
pkgname=libxml2-python
version=2.9.10
revision=4
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="Enno Boland <gottox@voidlinux.org>"
license="MIT"
homepage="http://www.xmlsoft.org/"
distfiles="http://xmlsoft.org/sources/libxml2-${version}.tar.gz"
checksum=aafee193ffb8fe0c82d4afef6ef91972cbaf5feea100edc2f262750611b4be1f
post_patch() {
if [ "${CROSS_BUILD}" ]; then
vsed -i setup.py -e "s:/usr/include:${XBPS_CROSS_BASE}/usr/include:"
fi
}
post_install() {
vlicense ../COPYING
}
libxml2-python3_package() {
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove "usr/lib/python3*"
vlicense ../COPYING
}
}

View File

@ -1 +0,0 @@
libxml2-python

View File

@ -0,0 +1,26 @@
# Template file for 'libxml2-python3'
pkgname=libxml2-python3
version=2.9.10
revision=5
wrksrc="libxml2-${version}"
build_wrksrc=python
build_style=python3-module
hostmakedepends="python3-devel"
makedepends="libxml2-devel python3-devel"
depends="python3"
short_desc="Library providing XML and HTML support - Python3 bindings"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="MIT"
homepage="http://www.xmlsoft.org/"
distfiles="http://xmlsoft.org/sources/libxml2-${version}.tar.gz"
checksum=aafee193ffb8fe0c82d4afef6ef91972cbaf5feea100edc2f262750611b4be1f
post_patch() {
if [ "${CROSS_BUILD}" ]; then
vsed -i setup.py -e "s:/usr/include:${XBPS_CROSS_BASE}/usr/include:"
fi
}
post_install() {
vlicense ../COPYING
}

View File

@ -1,6 +1,6 @@
# Template file for 'libxml2'
#
# Please keep this in sync with "srcpkgs/libxml2-python"
# Please keep this in sync with "srcpkgs/libxml2-python3"
#
pkgname=libxml2
version=2.9.10