python-raven: drop package

This commit is contained in:
Đoàn Trần Công Danh 2020-09-20 17:21:27 +07:00
parent 1f741afa42
commit 5f8f87546c
3 changed files with 22 additions and 40 deletions

View file

@ -1,39 +0,0 @@
# Template file for 'python-raven'
pkgname=python-raven
version=6.10.0
revision=2
archs=noarch
wrksrc="raven-${version}"
build_style=python-module
pycompile_module="raven"
hostmakedepends="python-setuptools python3-setuptools"
depends="ca-certificates python-setuptools python-contextlib2"
short_desc="Python2 client for Sentry"
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://github.com/getsentry/raven-python"
distfiles="${PYPI_SITE}/r/raven/raven-${version}.tar.gz"
checksum=3fa6de6efa2493a7c827472e984ce9b020797d0da16f1db67197bcc23c8fae54
alternatives="raven:raven:/usr/bin/raven2"
post_install() {
# use system ca-certificates
for py_sitelib in $py2_sitelib $py3_sitelib; do
rm -f ${DESTDIR}/${py_sitelib}/raven/data/cacert.pem
ln -sf /etc/ssl/cert.pem ${DESTDIR}/${py_sitelib}/raven/data/cacert.pem
done
vlicense LICENSE
}
python3-raven_package() {
archs=noarch
pycompile_module="raven"
depends="ca-certificates python3-setuptools"
alternatives="raven:raven:/usr/bin/raven3"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/bin/*3
vmove usr/lib/python3*
vlicense LICENSE
}
}

View file

@ -1 +0,0 @@
python-raven

View file

@ -0,0 +1,22 @@
# Template file for 'python3-raven'
pkgname=python3-raven
version=6.10.0
revision=3
wrksrc="raven-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="ca-certificates python3-setuptools"
short_desc="Python3 client for Sentry"
maintainer="Michael Aldridge <maldridge@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://github.com/getsentry/raven-python"
distfiles="${PYPI_SITE}/r/raven/raven-${version}.tar.gz"
checksum=3fa6de6efa2493a7c827472e984ce9b020797d0da16f1db67197bcc23c8fae54
conflicts="python-raven>=0"
post_install() {
# use system ca-certificates
rm -f ${DESTDIR}/${py3_sitelib}/raven/data/cacert.pem
ln -sf /etc/ssl/cert.pem ${DESTDIR}/${py3_sitelib}/raven/data/cacert.pem
vlicense LICENSE
}