diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-19 12:06:52 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2016-08-19 13:00:04 +0000 |
commit | fd68f1d9fc2722f7e460241f15f40f9570254d89 (patch) | |
tree | 76b5fb9d491e47d24ec6f96db1ccab13a238e35b /community | |
parent | ea7457dd98aa0799b009a1104dfad4a26324f2a2 (diff) | |
download | aports-fd68f1d9fc2722f7e460241f15f40f9570254d89.tar.bz2 aports-fd68f1d9fc2722f7e460241f15f40f9570254d89.tar.xz |
community/py-raven: moved from testing, improved APKBUILD, upgraded to 5.24.3
Diffstat (limited to 'community')
-rw-r--r-- | community/py-raven/APKBUILD | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/community/py-raven/APKBUILD b/community/py-raven/APKBUILD new file mode 100644 index 0000000000..897cf33c83 --- /dev/null +++ b/community/py-raven/APKBUILD @@ -0,0 +1,48 @@ +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=py-raven +_pkgname=raven-python +pkgver=5.24.3 +pkgrel=0 +pkgdesc="Python client for Sentry" +url="http://pypi.python.org/pypi/raven" +arch="noarch" +license="BSD" +depends="" +makedepends="py-setuptools python2-dev python3-dev py2-pytest py3-pytest" +install="" +subpackages="py3-${pkgname/py-/}:_py3 py2-${pkgname/py-/}:_py2" +source="$pkgname-$pkgver.tar.gz::https://github.com/getsentry/$_pkgname/archive/$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" +} + +_py() { + local python=$1 + pkgdesc="$pkgdesc - $python" + install_if="$pkgname=$pkgver-r$pkgrel $python" + cd "$builddir" + $python setup.py install --prefix=/usr --root="$subpkgdir" +} + +_py2() { + _py python2 + replaces="$pkgname" +} + +_py3() { + _py python3 +} + +md5sums="b5611aff586a75066904f581775c33ab py-raven-5.24.3.tar.gz" +sha256sums="bf3bfc9df6b8772676140b0e0bfc0862abb63c5bb95239ff396fbd25cc7ec194 py-raven-5.24.3.tar.gz" +sha512sums="7759cf45e133995fde0e9fd13bf7dfe1a7deb8e30c3e88b72f593fa277afd361d22a2eac55956a2bfc45ec9a0e672c15ff881558ab63fc3a4a6951a318ef0f57 py-raven-5.24.3.tar.gz" |