aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-cairocffi/APKBUILD
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-06-18 14:46:07 -0300
committerLeo <thinkabit.ukim@gmail.com>2019-06-18 14:46:07 -0300
commit5043c405efafec566d187e567cc5bacbe1946c5a (patch)
tree53a887ea96a7b23e17c8148daf2270cf34d05994 /testing/py3-cairocffi/APKBUILD
parentd24c3ffd82ebaafbcbb8f62cbabccd47f49d3aa0 (diff)
downloadaports-5043c405efafec566d187e567cc5bacbe1946c5a.tar.bz2
aports-5043c405efafec566d187e567cc5bacbe1946c5a.tar.xz
testing/py3-cairocffi: rename from py-cairocffi
Diffstat (limited to 'testing/py3-cairocffi/APKBUILD')
-rw-r--r--testing/py3-cairocffi/APKBUILD55
1 files changed, 55 insertions, 0 deletions
diff --git a/testing/py3-cairocffi/APKBUILD b/testing/py3-cairocffi/APKBUILD
new file mode 100644
index 0000000000..f5dddcb39a
--- /dev/null
+++ b/testing/py3-cairocffi/APKBUILD
@@ -0,0 +1,55 @@
+# Contributor:
+# Contributor: Stefan Wagner <stw@bit-strickerei.de>
+# Maintainer: Stefan Wagner <stw@bit-strickerei.de>
+pkgname=py-cairocffi
+_pkgname=cairocffi
+pkgver=0.9.0
+pkgrel=1
+pkgdesc="Python CFFI-based binding to Cairo and GDK-PixBuf"
+url="https://pythonhosted.org/cairocffi/"
+arch="noarch"
+license="BSD"
+depends="py-cffi cairo gdk-pixbuf"
+checkdepends="pytest pytest-cov ttf-dejavu"
+makedepends="python2-dev python3-dev py-setuptools"
+subpackages="py2-$_pkgname:_py2 py3-$_pkgname:_py3"
+source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
+builddir="$srcdir"/$_pkgname-$pkgver
+
+build() {
+ cd "$builddir"
+ python2 setup.py build
+ python3 setup.py build
+}
+
+check() {
+ cd "$builddir"
+ python2 setup.py test
+ python3 setup.py test
+}
+
+package() {
+ mkdir -p "$pkgdir"
+}
+
+_py2() {
+ replaces="$pkgname"
+ _py python2
+}
+
+_py3() {
+ _py python3
+}
+
+_py() {
+ local python="$1"
+ pkgdesc="$pkgdesc (for $python)"
+ depends="$depends $python"
+ install_if="$pkgname=$pkgver-r$pkgrel $python"
+
+ cd "$builddir"
+ $python setup.py install --prefix=/usr --root="$subpkgdir"
+}
+
+
+sha512sums="0d3d54e0d54b3696c8336d8b3a6d745628da51d9d9f8c50f36006c007e1432a95dd9bafd8d865923059d040cc4e9f7989b3670a5318383b357ffc979eeb920d5 cairocffi-0.9.0.tar.gz"