From 99adcdb6b5b008e936eeebdb22b4cdad63ff3e35 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sat, 24 Nov 2018 11:35:58 -0500 Subject: [PATCH] Drop python 2 from weasyprint Since this depends on cairosvg, and cairosvg dropped Python 2 support, it's meaningless here. --- sr.ht/py-weasyprint/APKBUILD | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/sr.ht/py-weasyprint/APKBUILD b/sr.ht/py-weasyprint/APKBUILD index e58f965..655b485 100644 --- a/sr.ht/py-weasyprint/APKBUILD +++ b/sr.ht/py-weasyprint/APKBUILD @@ -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 -- 2.45.2