aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-colour
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2016-11-12 16:49:31 +0000
committerTimo Teräs <timo.teras@iki.fi>2016-12-27 13:08:23 +0200
commitad5cbd38d8ac5718e70e0aade9b367265a5a3ac6 (patch)
treeeb07753266b3adb790c2cb3b63449690af62741e /testing/py-colour
parent930332199f5931344b441f3789b659bb9d9ae487 (diff)
downloadaports-ad5cbd38d8ac5718e70e0aade9b367265a5a3ac6.tar.bz2
aports-ad5cbd38d8ac5718e70e0aade9b367265a5a3ac6.tar.xz
testing/py-colour: new aport
converts and manipulates various color representation (HSL, RVB, web, X11, ...) https://pypi.python.org/pypi/colour/
Diffstat (limited to 'testing/py-colour')
-rw-r--r--testing/py-colour/APKBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/testing/py-colour/APKBUILD b/testing/py-colour/APKBUILD
new file mode 100644
index 0000000000..a7361db7bb
--- /dev/null
+++ b/testing/py-colour/APKBUILD
@@ -0,0 +1,50 @@
+# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
+# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
+pkgname=py-colour
+_pkgname=colour
+pkgver=0.1.2
+pkgrel=0
+pkgdesc="Converter and manipulator various color representation (HSL, RVB, web, X11, etc.)"
+url="https://github.com/vaab/colour"
+arch="noarch"
+license="BSD"
+depends="py-infinity"
+makedepends="python2-dev python3-dev py-setuptools"
+subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_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 || return 1
+ python3 setup.py build || return 1
+}
+
+package() {
+ mkdir -p "$pkgdir"
+}
+
+_py2() {
+ replaces="$pkgname"
+ depends="${depends//py-/py2-}"
+ _py python2
+}
+
+_py3() {
+ depends="${depends//py-/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"
+}
+
+md5sums="819a068a7f1b3fd2c65f19019d64f8a2 colour-0.1.2.tar.gz"
+sha256sums="abbf846ce493dd2334f5bdb9e7ded15a483ccf97674ea17703817f73e8203270 colour-0.1.2.tar.gz"
+sha512sums="2d8c76ff1576a5f2df7d7fe658a2f3f8513d5442b3c390cf1b0de68ecfd254a93fa55a0ed5a7128567d27508447f1aa641694b6940ba29c5d4006c68dd31b99a colour-0.1.2.tar.gz"