void-packages/srcpkgs/python-Twisted/template

58 lines
1.8 KiB
Bash
Raw Normal View History

# Template file for 'python-Twisted'
pkgname=python-Twisted
2018-08-06 20:13:50 +02:00
version=18.7.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
2018-08-06 20:13:50 +02:00
python-constantly python-incremental python-automat python-hyperlink
python-PyHamcrest"
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"
2018-08-06 20:13:50 +02:00
checksum=95ae985716e8107816d8d0df249d558dbaabb677987cc2ace45272c166b267e4
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
2018-08-06 20:13:50 +02:00
python3-constantly python3-incremental python3-automat python3-hyperlink
python3-PyHamcrest"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/bin/*3
vmove usr/lib/python3*
vlicense LICENSE
}
}