python-Pyro4: update to 4.38; several fixes
This commit is contained in:
parent
a029be8175
commit
3c27fdca67
1 changed files with 33 additions and 10 deletions
|
@ -1,31 +1,54 @@
|
|||
# Template file for 'python-Pyro4'
|
||||
pkgname=python-Pyro4
|
||||
version=4.37
|
||||
version=4.38
|
||||
revision=1
|
||||
wrksrc="${pkgname#*-}-${version}"
|
||||
noarch="yes"
|
||||
noarch=yes
|
||||
build_style=python-module
|
||||
python_versions="2.7 3.4"
|
||||
pycompile_module="Pyro4"
|
||||
hostmakedepends="python-setuptools python3.4-setuptools"
|
||||
makedepends="python"
|
||||
depends="python python-serpent"
|
||||
short_desc="Pyro means PYthon Remote Qbjects"
|
||||
depends="python-serpent"
|
||||
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=2c4c9e7c3dbace3c75524324b6a686381be37bebab89b5001c0670418cec89c7
|
||||
checksum=837fb552f54e46e54a13fa03c321073ba8373715346c4bc7e522b2c82a2c75c9
|
||||
|
||||
pre_build() {
|
||||
cp -a ${wrksrc} /tmp/${pkgname#*-}-2.7
|
||||
cp -a ${wrksrc} /tmp/${pkgname#*-}-3.4
|
||||
mv /tmp/${pkgname#*-}-{2.7,3.4} ${wrksrc}
|
||||
|
||||
cd ${pkgname#*-}-3.4
|
||||
for f in check-config flameserver httpgateway ns{,c} test-echoserver; do
|
||||
sed -i "s,\(pyro4-${f}\) =,\13 =," setup.py
|
||||
done
|
||||
}
|
||||
do_build() {
|
||||
for pyver in $python_versions; do
|
||||
cd ${wrksrc}/${pkgname#*-}-${pyver}
|
||||
python${pyver} setup.py build
|
||||
done
|
||||
}
|
||||
do_install() {
|
||||
for pyver in $python_versions; do
|
||||
cd ${wrksrc}/${pkgname#*-}-${pyver}
|
||||
python${pyver} setup.py install --root=${DESTDIR}
|
||||
done
|
||||
vlicense LICENSE
|
||||
}
|
||||
|
||||
python3.4-Pyro4_package() {
|
||||
noarch="yes"
|
||||
makedepends="python3.4"
|
||||
depends="python3.4 python3.4-serpent"
|
||||
noarch=yes
|
||||
depends="python3.4-serpent"
|
||||
pycompile_version="3.4"
|
||||
pycompile_module="Pyro4"
|
||||
short_desc="${short_desc/Python2/Python3.4}"
|
||||
pkg_install() {
|
||||
vmove usr/bin/*3
|
||||
vmove usr/lib/python3.4
|
||||
vmove usr/bin
|
||||
vlicense LICENSE
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue