Twisted: update to 18.4.0, add python3 flavor

This commit is contained in:
Alessio Sergi 2018-06-07 19:08:40 +02:00
parent 1e5bf8ac7f
commit 243e3c6915
7 changed files with 71 additions and 15 deletions

View File

@ -1,20 +1,10 @@
# Template file for 'Twisted'
pkgname=Twisted
version=17.9.0
revision=1
build_style=python2-module
hostmakedepends="python-setuptools python-zope.interface python-service_identity
python-constantly python-incremental python-automat python-hyperlink"
makedepends="${hostmakedepends} python-devel"
depends="${makedepends/python-devel/}"
pycompile_module="twisted"
short_desc="Event-driven networking engine written in Python"
revision=2
build_style=meta
depends="python-Twisted>=${version}_${revision}"
short_desc="Event-driven networking engine written in Python (transitional dummy package)"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://twistedmatrix.com/"
homepage="https://twistedmatrix.com/"
license="MIT"
distfiles="${PYPI_SITE}/T/Twisted/Twisted-${version}.tar.bz2"
checksum=0da1a7e35d5fcae37bc9c7978970b5feb3bc82822155b8654ec63925c05af75c
post_install() {
vlicense LICENSE
}

View File

@ -0,0 +1,5 @@
case ${ACTION} in
post)
python3 -c 'from twisted.plugin import IPlugin, getPlugins; list(getPlugins(IPlugin))' >/dev/null 2>&1
;;
esac

View File

@ -0,0 +1,5 @@
case ${ACTION} in
purge)
find /usr/lib/python3.*/site-packages/twisted/plugins -name dropin.cache | xargs -r rm -f
;;
esac

View File

@ -0,0 +1,55 @@
# Template file for 'python-Twisted'
pkgname=python-Twisted
version=18.4.0
revision=1
wrksrc="Twisted-${version}"
build_style=python-module
pycompile_module="twisted"
hostmakedepends="python-setuptools python3-setuptools
python-incremental python3-incremental"
makedepends="python-devel python3-devel"
depends="python-setuptools python-zope.interface python-service_identity
python-constantly python-incremental python-automat python-hyperlink"
short_desc="Asynchronous networking framework written in Python (Python2)"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="https://twistedmatrix.com/"
license="MIT"
distfiles="${PYPI_SITE}/T/Twisted/Twisted-${version}.tar.bz2"
checksum=a4cc164a781859c74de47f17f0e85f4bce8a3321a9d0892c015c8f80c4158ad9
alternatives="
twisted:cftp:/usr/bin/cftp2
twisted:ckeygen:/usr/bin/ckeygen2
twisted:conch:/usr/bin/conch2
twisted:mailmail:/usr/bin/mailmail2
twisted:pyhtmlizer:/usr/bin/pyhtmlizer2
twisted:tkconch:/usr/bin/tkconch2
twisted:trial:/usr/bin/trial2
twisted:twist:/usr/bin/twist2
twisted:twistd:/usr/bin/twistd2"
post_install() {
vlicense LICENSE
}
python3-Twisted_package() {
alternatives="
twisted:cftp:/usr/bin/cftp3
twisted:ckeygen:/usr/bin/ckeygen3
twisted:conch:/usr/bin/conch3
twisted:mailmail:/usr/bin/mailmail3
twisted:pyhtmlizer:/usr/bin/pyhtmlizer3
twisted:tkconch:/usr/bin/tkconch3
twisted:trial:/usr/bin/trial3
twisted:twist:/usr/bin/twist3
twisted:twistd:/usr/bin/twistd3"
pycompile_module="twisted"
depends="python3-setuptools python3-zope.interface python3-service_identity
python3-constantly python3-incremental python3-automat python3-hyperlink"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/bin/*3
vmove usr/lib/python3*
vlicense LICENSE
}
}

1
srcpkgs/python3-Twisted Symbolic link
View File

@ -0,0 +1 @@
python-Twisted