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 /testing | |
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 'testing')
-rw-r--r-- | testing/py-raven/APKBUILD | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/testing/py-raven/APKBUILD b/testing/py-raven/APKBUILD deleted file mode 100644 index f981113d07..0000000000 --- a/testing/py-raven/APKBUILD +++ /dev/null @@ -1,54 +0,0 @@ -# Contributor: Francesco Colista <fcolista@alpinelinux.org> -# Maintainer: Francesco Colista <fcolista@alpinelinux.org> -pkgname=py-raven -_pkgname=raven-python -pkgver=5.23.0 -pkgrel=1 -pkgdesc="Python client for Sentry" -url="http://pypi.python.org/pypi/raven" -arch="noarch" -license="BSD" -depends="" -makedepends="py-setuptools python-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" - python setup.py build || return 1 - python3 setup.py build || return 1 -} - -package() { - cd "$builddir" - python setup.py install --root=$pkgdir/ --optimize=1 || return 1 - python3 setup.py install --root=$pkgdir/ --optimize=1 || return 1 -} - -_py() { - local python=$1 - pkgdesc="$pkgdesc - $python" - install_if="$pkgname=$pkgver-r$pkgrel $python" - local dir=$($python -c 'import sysconfig; print(sysconfig.get_path("stdlib"))') - - mkdir -p "$subpkgdir"${dir} - mv "$pkgdir"${dir}/* "$subpkgdir"${dir} -} - -_py2() { - _py python2 - replaces="$pkgname" -} - -_py3() { - _py python3 - mkdir -p "$subpkgdir"/usr/bin - mv "$pkgdir"/usr/bin/raven "$subpkgdir"/usr/bin -} - -md5sums="7c99202d726c4380c5032cefb6af442c py-raven-5.23.0.tar.gz" -sha256sums="31329cfb1e24252641f6fc671c123fe70488b20d783a2c6119b0e231b563e21c py-raven-5.23.0.tar.gz" -sha512sums="798277ec7828d73745fb7e73e927fc9644a9864fe1016e4ae8b949749e9ef1629407ca648533c53ea2ed0ef24f4b80f8a7d10cabd98190dea946c72e1d232855 py-raven-5.23.0.tar.gz" |