aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2016-07-18 12:01:04 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2016-07-18 12:08:59 +0000
commit59b88ac75f5ca571a5de598f7a00a74b8f59abf1 (patch)
treea067c0c5dc5d2a2c5db8808d1891eacd035b0d90 /testing
parent187bd2045a7df56b90541026694be8e0efefce10 (diff)
downloadaports-59b88ac75f5ca571a5de598f7a00a74b8f59abf1.tar.bz2
aports-59b88ac75f5ca571a5de598f7a00a74b8f59abf1.tar.xz
testing/py-raven: upgrade to 5.23.0. Added py2 and py3 subpackages
Diffstat (limited to 'testing')
-rw-r--r--testing/py-raven/APKBUILD46
1 files changed, 33 insertions, 13 deletions
diff --git a/testing/py-raven/APKBUILD b/testing/py-raven/APKBUILD
index 4f15608c63..68afdb7f97 100644
--- a/testing/py-raven/APKBUILD
+++ b/testing/py-raven/APKBUILD
@@ -2,31 +2,51 @@
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py-raven
_pkgname=raven-python
-pkgver=5.12.0
+pkgver=5.23.0
pkgrel=0
pkgdesc="Python client for Sentry"
url="http://pypi.python.org/pypi/raven"
arch="noarch"
license="BSD"
-depends="python3"
-depends_dev=""
-makedepends="$depends_dev py-setuptools pytest"
+depends=""
+makedepends="$depends_dev py-setuptools python-dev python3-dev py2-pytest py3-pytest"
install=""
-subpackages="$pkgname-doc"
+subpackages="py3-$_pkgname:_py3 py2-$_pkgname:_py2"
source="$pkgname-$pkgver.tar.gz::https://github.com/getsentry/$_pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
+
build() {
- cd "$builddir"
- python3 setup.py build || return 1
+ cd "$builddir"
+ python setup.py build || return 1
+ python3 setup.py build || return 1
}
package() {
- cd "$builddir"
- python3 setup.py install --root="$pkgdir" --optimize=1
- install -Dm664 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+ 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
}
-md5sums="f539dc5fdc9fff1a26017e7010194f3a py-raven-5.12.0.tar.gz"
-sha256sums="dfdaa2873c414793d386c7bdfcaa204e9faa5b6b0dce894961b405975ad3f0a5 py-raven-5.12.0.tar.gz"
-sha512sums="4ecfe442f89ac1376a48859d6d83f7d3672c60329af580ec7885c93d5d02bee9d2b81a27a52bf252f3319c80e95c0bdba3a9fbccf2918041f1f7ae4b8ff8dbfa py-raven-5.12.0.tar.gz"
+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"