39 lines
1.1 KiB
Bash
39 lines
1.1 KiB
Bash
# Template file for 'python-lxml'
|
|
pkgname=python-lxml
|
|
version=4.3.2
|
|
revision=1
|
|
wrksrc="lxml-lxml-${version}"
|
|
build_style=python-module
|
|
pycompile_module="lxml"
|
|
hostmakedepends="libxslt-devel python-Cython python-setuptools python3-Cython python3-setuptools"
|
|
makedepends="libxslt-devel python-devel python3-devel"
|
|
checkdepends="python3-cssselect python3-BeautifulSoup4 python3-html5lib"
|
|
short_desc="Python2 binding for the libxml2 and libxslt libraries"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
license="BSD-3-Clause, ElementTree"
|
|
homepage="https://lxml.de/"
|
|
distfiles="https://github.com/lxml/lxml/archive/lxml-${version}.tar.gz"
|
|
checksum=c354fe87b82f6f0f54298d41861cf91c9ae390a3224523080c8931cfe8aaa9f4
|
|
|
|
do_check() {
|
|
cp -f build-3.*/lib.linux-*/lxml/*.so src/lxml
|
|
python3 test.py -vv --all-levels -p
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSES.txt
|
|
vlicense doc/licenses/BSD.txt
|
|
vlicense doc/licenses/elementtree.txt
|
|
}
|
|
|
|
python3-lxml_package() {
|
|
pycompile_module="lxml"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSES.txt
|
|
vlicense doc/licenses/BSD.txt
|
|
vlicense doc/licenses/elementtree.txt
|
|
}
|
|
}
|