54 lines
1.7 KiB
Bash
54 lines
1.7 KiB
Bash
# Template file for 'python-Pyro4'
|
|
pkgname=python-Pyro4
|
|
version=4.63
|
|
revision=1
|
|
wrksrc="${pkgname#*-}-${version}"
|
|
noarch=yes
|
|
build_style=python-module
|
|
pycompile_module="Pyro4"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-setuptools python-serpent>=1.23 python-selectors2"
|
|
short_desc="Distributed Object Middleware (IPC/RPC) for Python2"
|
|
maintainer="pulux <pulux@pf4sh.de>"
|
|
license="MIT"
|
|
homepage="https://pythonhosted.org/Pyro4/"
|
|
distfiles="${PYPI_SITE}/P/Pyro4/Pyro4-${version}.tar.gz"
|
|
checksum=67d2b34156619ba37e92100af95aade8129dd2b7327eb05821d43887451f7d7b
|
|
|
|
alternatives="
|
|
pyro4:pyro4-check-config:/usr/bin/pyro4-check-config2
|
|
pyro4:pyro4-flameserver:/usr/bin/pyro4-flameserver2
|
|
pyro4:pyro4-httpgateway:/usr/bin/pyro4-httpgateway2
|
|
pyro4:pyro4-ns:/usr/bin/pyro4-ns2
|
|
pyro4:pyro4-nsc:/usr/bin/pyro4-nsc2
|
|
pyro4:pyro4-test-echoserver:/usr/bin/pyro4-test-echoserver2"
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-Pyro4_package() {
|
|
alternatives="
|
|
pyro4:pyro4-check-config:/usr/bin/pyro4-check-config3
|
|
pyro4:pyro4-flameserver:/usr/bin/pyro4-flameserver3
|
|
pyro4:pyro4-httpgateway:/usr/bin/pyro4-httpgateway3
|
|
pyro4:pyro4-ns:/usr/bin/pyro4-ns3
|
|
pyro4:pyro4-nsc:/usr/bin/pyro4-nsc3
|
|
pyro4:pyro4-test-echoserver:/usr/bin/pyro4-test-echoserver3"
|
|
noarch=yes
|
|
depends="python3-setuptools python3-serpent"
|
|
replaces="python3.4-Pyro4>=0"
|
|
pycompile_module="Pyro4"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/bin/*3
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|
|
python3.4-Pyro4_package() {
|
|
noarch=yes
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-Pyro4>=${version}_${revision}"
|
|
}
|