Mail archive
alpine-aports

[alpine-aports] [PATCH 6/6] py3-weasyprint: adopt; upgrade to v46

From: Drew DeVault <sir_at_cmpwn.com>
Date: Wed, 3 Apr 2019 15:11:10 -0400

---
 testing/py-weasyprint/APKBUILD  | 57 ---------------------------------
 testing/py3-weasyprint/APKBUILD | 36 +++++++++++++++++++++
 2 files changed, 36 insertions(+), 57 deletions(-)
 delete mode 100644 testing/py-weasyprint/APKBUILD
 create mode 100644 testing/py3-weasyprint/APKBUILD
diff --git a/testing/py-weasyprint/APKBUILD b/testing/py-weasyprint/APKBUILD
deleted file mode 100644
index 364466c78e..0000000000
--- a/testing/py-weasyprint/APKBUILD
+++ /dev/null
_at_@ -1,57 +0,0 @@
-# Contributor: 
-# Maintainer: 
-pkgname=py-weasyprint
-_pkgname=WeasyPrint
-pkgver=0.42.3
-pkgrel=0
-pkgdesc="cairo-based HTML renderer for python"
-url="http://weasyprint.org"
-arch="noarch"
-license="LGPL"
-depends="pango cairo py-cairocffi py-cairosvg py-cssselect py-tinycss py-pyphen py-lxml"
-subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
-makedepends="python2-dev 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
-}
-
-package() {
-	mkdir -p "$pkgdir"
-}
-
-_py2() {
-	cd "$builddir"
-	_py python2
-}
-
-_py3() {
-	cd "$builddir"-py3
-	_py python3
-}
-
-_py() {
-	local python="$1"
-	pkgdesc="$pkgdesc (for $python)"
-	depends="$python"
-	install_if="$pkgname=$pkgver-r$pkgrel $python"
-	$python setup.py install --prefix=/usr --root="$subpkgdir"
-}
-
-sha512sums="d6007934c301904308bd4821626d6a7bb504268c5c71a31f7486faebb3dd649fad18774737cab39eb13a0916635bb58eba2c8432c72cc5a461cea2a5d874b1ee  WeasyPrint-0.42.3.tar.gz"
diff --git a/testing/py3-weasyprint/APKBUILD b/testing/py3-weasyprint/APKBUILD
new file mode 100644
index 0000000000..663c4ec62b
--- /dev/null
+++ b/testing/py3-weasyprint/APKBUILD
_at_@ -0,0 +1,36 @@
+# Maintainer: Drew DeVault <sir_at_cmpwn.com>
+pkgname=py3-weasyprint
+_pyname=WeasyPrint
+pkgver=46
+pkgrel=0
+pkgdesc="cairo-based HTML renderer for python"
+url="http://weasyprint.org"
+arch="noarch"
+license="LGPL"
+depends="
+	pango cairo py3-cairocffi py3-cairosvg py3-cssselect2 py3-tinycss2 py3-pyphen
+	py3-lxml py3-pdfrw
+"
+makedepends="python3-dev py-setuptools"
+_pypiprefix="${_pyname%${_pyname#?}}"
+source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz"
+builddir="$srcdir"/$_pyname-$pkgver
+replaces="py-weasyprint py2-weasyprint"
+
+build() {
+	cd "$builddir"
+	python3 setup.py build
+}
+
+check() {
+	cd "$builddir"
+	python3 setup.py check
+}
+
+package() {
+	cd "$builddir"
+	mkdir -p "$pkgdir"
+	python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="ad7c231458ca3dc08d7816bd5710469fac094b08c5202b99f54da660ecea8367509bc938be752088a2e1639d9d87137b0afb82bdf74f272adb7d88c7b8790d8b  WeasyPrint-46.tar.gz"
-- 
2.21.0
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Wed Apr 03 2019 - 15:11:10 UTC