aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-06-18 14:48:09 -0300
committerLeo <thinkabit.ukim@gmail.com>2019-06-18 14:48:09 -0300
commitce4a8258f6157ee78d81bdb9f7d22dc17dfaea7a (patch)
tree92842bb47aeb5af7e2050da83fbf476fcf334cc3
parent5043c405efafec566d187e567cc5bacbe1946c5a (diff)
downloadaports-ce4a8258f6157ee78d81bdb9f7d22dc17dfaea7a.tar.gz
aports-ce4a8258f6157ee78d81bdb9f7d22dc17dfaea7a.tar.bz2
aports-ce4a8258f6157ee78d81bdb9f7d22dc17dfaea7a.tar.xz
testing/py3-cairocffi: remove py2- subpackage
-rw-r--r--testing/py3-cairocffi/APKBUILD43
1 files changed, 11 insertions, 32 deletions
diff --git a/testing/py3-cairocffi/APKBUILD b/testing/py3-cairocffi/APKBUILD
index f5dddcb39a..2c817b85db 100644
--- a/testing/py3-cairocffi/APKBUILD
+++ b/testing/py3-cairocffi/APKBUILD
@@ -1,54 +1,33 @@
-# Contributor:
+# Contributor: Leo <thinkabit.ukim@gmail.com>
# Contributor: Stefan Wagner <stw@bit-strickerei.de>
# Maintainer: Stefan Wagner <stw@bit-strickerei.de>
-pkgname=py-cairocffi
+pkgname=py3-cairocffi
_pkgname=cairocffi
pkgver=0.9.0
-pkgrel=1
+pkgrel=2
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"
+license="BSD-3-Clause"
+depends="python3 py3-cffi cairo gdk-pixbuf"
+checkdepends="py3-pytest py3-pytest-cov ttf-dejavu"
+makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
+replaces="py-cairocffi" # For backwards compatibiltiy
+provides="py-cairocffi=$pkgver-r$pkgrel" # For backwards compatibility
+
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"
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
}