diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2013-09-28 15:34:09 +0000 |
---|---|---|
committer | Fabian Affolter <fabian@affolter-engineering.ch> | 2013-09-29 14:07:41 +0000 |
commit | fcda338663aedd205671721597860bdddbb6b26e (patch) | |
tree | f84d6beadc699140eb37aca97a7f1b0e4576a635 /testing/py-ansicolors | |
parent | 543af1de79a84bb940684c7e9adb90fa17820a3b (diff) | |
download | aports-fcda338663aedd205671721597860bdddbb6b26e.tar.bz2 aports-fcda338663aedd205671721597860bdddbb6b26e.tar.xz |
testing/py-ansicolors: new aport
ANSI colors for Python
http://github.com/verigak/colors/
Diffstat (limited to 'testing/py-ansicolors')
-rw-r--r-- | testing/py-ansicolors/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/py-ansicolors/APKBUILD b/testing/py-ansicolors/APKBUILD new file mode 100644 index 0000000000..0ce90d7b32 --- /dev/null +++ b/testing/py-ansicolors/APKBUILD @@ -0,0 +1,41 @@ +# Contributor: Fabian Affolter <fabian@affolter-engineering.ch> +# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> +pkgname=py-ansicolors +_pkgname=ansicolors +pkgver=1.0.2 +pkgrel=0 +pkgdesc="ANSI colors for Python" +url="http://github.com/verigak/colors/" +arch="noarch" +license="ISC" +depends="python" +depends_dev="" +makedepends="python-dev py-setuptools" +install="" +subpackages="" +source="http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" + +_builddir="$srcdir"/$_pkgname-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + python setup.py build || return 1 +} + +package() { + cd "$_builddir" + python setup.py install --prefix=/usr --root="$pkgdir" || return 1 +} + +md5sums="d3a19fcd75c89772360e0d2b693fc50f ansicolors-1.0.2.tar.gz" +sha256sums="7664530bb992e3847b61e3aab1580b4df9ed00c5898e80194a9933bc9c80950a ansicolors-1.0.2.tar.gz" +sha512sums="311417b544a81737ff05ad0dda3731e0e0d26528ac829cbc29020f79d62fb67f68de99b5d64e1404309fc7ea02a5884428431eb859c2f6f6e4d89ce899e3bfe4 ansicolors-1.0.2.tar.gz" |