python-Pyro4: use alternatives
This commit is contained in:
parent
f594fb4f08
commit
d030f5ae64
1 changed files with 16 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'python-Pyro4'
|
||||
pkgname=python-Pyro4
|
||||
version=4.43
|
||||
revision=1
|
||||
revision=2
|
||||
wrksrc="${pkgname#*-}-${version}"
|
||||
noarch=yes
|
||||
build_style=python-module
|
||||
|
@ -16,15 +16,26 @@ homepage="http://pythonhosted.org/Pyro4/"
|
|||
distfiles="${PYPI_SITE}/P/Pyro4/Pyro4-${version}.tar.gz"
|
||||
checksum=b6f924fa74f21d14c851450e157711914a402bfc2f3a880c1b2c275fd4cda6d6
|
||||
|
||||
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() {
|
||||
for f in ${DESTDIR}/usr/bin/*; do
|
||||
cp -f ${f}{,3.4}
|
||||
replace_interpreter python ${f}
|
||||
done
|
||||
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"
|
||||
|
|
Loading…
Add table
Reference in a new issue