~dricottone/huttese-apk

99adcdb6b5b008e936eeebdb22b4cdad63ff3e35 — Drew DeVault 6 years ago 805e71a
Drop python 2 from weasyprint

Since this depends on cairosvg, and cairosvg dropped Python 2 support,
it's meaningless here.
1 files changed, 6 insertions(+), 16 deletions(-)

M sr.ht/py-weasyprint/APKBUILD
M sr.ht/py-weasyprint/APKBUILD => sr.ht/py-weasyprint/APKBUILD +6 -16
@@ 8,27 8,22 @@ pkgdesc="cairo-based HTML renderer for python"
url="http://weasyprint.org"
arch="noarch"
license="LGPL"
depends="pango cairo py-cairocffi py-cairosvg py-cssselect2 py-tinycss2 py-pyphen py-lxml"
subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
makedepends="python2-dev python3-dev py-setuptools"
depends="
	pango cairo py-cairocffi py-cairosvg py-cssselect2 py-tinycss2 py-pyphen
	py-lxml py-pdfrw
"
subpackages="py3-${pkgname#py-}:_py3"
makedepends="python3-dev py-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

prepare() {
	cp -r "$builddir" "$builddir"-py3
}

build() {
	cd "$builddir"
	python2 setup.py build
	cd "$builddir"-py3
	python3 setup.py build
}

check() {
	cd "$builddir"
	python2 setup.py check
	cd "$builddir"-py3
	python3 setup.py check
}



@@ 36,11 31,6 @@ package() {
	mkdir -p "$pkgdir"
}

_py2() {
	cd "$builddir"
	_py python2
}

_py3() {
	cd "$builddir"
	_py python3