aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-colorlog
diff options
context:
space:
mode:
authorFabian Affolter <fabian@affolter-engineering.ch>2016-11-09 02:12:38 +0000
committerTimo Teräs <timo.teras@iki.fi>2016-12-27 10:31:39 +0200
commitfbcd8593919e4d119b2f68353550362cf58110d9 (patch)
tree3aee40e12217644dcb8c2386a211b80367f01cc9 /testing/py-colorlog
parenta1d5aa0a4d3119c697a2a22592965f10562b9e66 (diff)
downloadaports-fbcd8593919e4d119b2f68353550362cf58110d9.tar.bz2
aports-fbcd8593919e4d119b2f68353550362cf58110d9.tar.xz
testing/py-colorlog: new aport
A formatter for use with Python's logging module https://github.com/borntyping/python-colorlog
Diffstat (limited to 'testing/py-colorlog')
-rw-r--r--testing/py-colorlog/APKBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/testing/py-colorlog/APKBUILD b/testing/py-colorlog/APKBUILD
new file mode 100644
index 0000000000..487147bdd5
--- /dev/null
+++ b/testing/py-colorlog/APKBUILD
@@ -0,0 +1,46 @@
+# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
+# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
+pkgname=py-colorlog
+_pkgname=colorlog
+pkgver=2.9.0
+pkgrel=0
+pkgdesc="A formatter for use with Python's logging module"
+url="https://github.com/borntyping/python-colorlog"
+arch="noarch"
+license="MIT"
+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"
+ _py python2
+}
+
+_py3() {
+ _py python3
+}
+
+_py() {
+ local python="$1"
+ pkgdesc="$pkgdesc (for $python)"
+ install_if="$pkgname=$pkgver-r$pkgrel $python"
+
+ cd "$builddir"
+ $python setup.py install --prefix=/usr --root="$subpkgdir"
+}
+
+md5sums="965dc63a658d52bd16d9adc5e4d39560 colorlog-2.9.0.tar.gz"
+sha256sums="f76a0d203a2a01b1a5eb0ede5bea95a4f4f0d39c52e01f6e3b0d32878c2e159f colorlog-2.9.0.tar.gz"
+sha512sums="596c4df0bbc6fc91db1f34c8c3db9def2612fb9f4606f0c8bda543934e776e14ecef9251592bef60e6a3d8187ac9bbd32b429a2c3e5038bc97ce41df4d08b600 colorlog-2.9.0.tar.gz"