50 lines
1.5 KiB
Bash
50 lines
1.5 KiB
Bash
# Template file for 'python-Pyro4'
|
|
pkgname=python-Pyro4
|
|
version=4.47
|
|
revision=1
|
|
wrksrc="${pkgname#*-}-${version}"
|
|
noarch=yes
|
|
build_style=python-module
|
|
python_versions="2.7 3.4"
|
|
pycompile_module="Pyro4"
|
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
|
depends="python-setuptools python-serpent python-selectors34"
|
|
short_desc="Distributed Object Middleware (IPC/RPC) for Python2"
|
|
maintainer="pulux <pulux@pf4sh.de>"
|
|
license="MIT"
|
|
homepage="http://pythonhosted.org/Pyro4/"
|
|
distfiles="${PYPI_SITE}/P/Pyro4/Pyro4-${version}.tar.gz"
|
|
checksum=9354b722f9f5965ade5839241c8d7ff06ec2fac678a2c9e197a63966da241c89
|
|
|
|
alternatives="
|
|
pyro4:pyro4-check-config:/usr/bin/pyro4-check-config2.7
|
|
pyro4:pyro4-flameserver:/usr/bin/pyro4-flameserver2.7
|
|
pyro4:pyro4-httpgateway:/usr/bin/pyro4-httpgateway2.7
|
|
pyro4:pyro4-ns:/usr/bin/pyro4-ns2.7
|
|
pyro4:pyro4-nsc:/usr/bin/pyro4-nsc2.7
|
|
pyro4:pyro4-test-echoserver:/usr/bin/pyro4-test-echoserver2.7"
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3.4-Pyro4_package() {
|
|
alternatives="
|
|
pyro4:pyro4-check-config:/usr/bin/pyro4-check-config3.4
|
|
pyro4:pyro4-flameserver:/usr/bin/pyro4-flameserver3.4
|
|
pyro4:pyro4-httpgateway:/usr/bin/pyro4-httpgateway3.4
|
|
pyro4:pyro4-ns:/usr/bin/pyro4-ns3.4
|
|
pyro4:pyro4-nsc:/usr/bin/pyro4-nsc3.4
|
|
pyro4:pyro4-test-echoserver:/usr/bin/pyro4-test-echoserver3.4"
|
|
noarch=yes
|
|
depends="python-setuptools python3.4-serpent"
|
|
pycompile_version="3.4"
|
|
pycompile_module="Pyro4"
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
pkg_install() {
|
|
vmove usr/bin/*3.4
|
|
vmove usr/lib/python3.4
|
|
vlicense LICENSE
|
|
}
|
|
}
|