2015-06-16 04:14:55 +00:00
|
|
|
# Template file for 'python-Pyro4'
|
|
|
|
pkgname=python-Pyro4
|
2015-07-02 10:38:00 +00:00
|
|
|
version=4.38
|
2015-07-02 10:44:16 +00:00
|
|
|
revision=2
|
2015-06-16 04:14:55 +00:00
|
|
|
wrksrc="${pkgname#*-}-${version}"
|
2015-07-02 10:38:00 +00:00
|
|
|
noarch=yes
|
2015-06-16 04:14:55 +00:00
|
|
|
build_style=python-module
|
|
|
|
python_versions="2.7 3.4"
|
|
|
|
pycompile_module="Pyro4"
|
|
|
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
2015-07-02 10:44:16 +00:00
|
|
|
depends="python-setuptools python-serpent"
|
2015-07-02 10:38:00 +00:00
|
|
|
short_desc="Distributed Object Middleware (IPC/RPC) for Python2"
|
2015-06-16 04:14:55 +00:00
|
|
|
maintainer="pulux <pulux@pf4sh.de>"
|
|
|
|
license="MIT"
|
|
|
|
homepage="http://pythonhosted.org/Pyro4/"
|
|
|
|
distfiles="${PYPI_SITE}/P/Pyro4/Pyro4-${version}.tar.gz"
|
2015-07-02 10:38:00 +00:00
|
|
|
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
|
|
|
|
}
|
2015-06-16 04:14:55 +00:00
|
|
|
|
|
|
|
python3.4-Pyro4_package() {
|
2015-07-02 10:38:00 +00:00
|
|
|
noarch=yes
|
2015-07-02 10:44:16 +00:00
|
|
|
depends="python-setuptools python3.4-serpent"
|
2015-06-16 04:14:55 +00:00
|
|
|
pycompile_version="3.4"
|
|
|
|
pycompile_module="Pyro4"
|
|
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
|
|
pkg_install() {
|
2015-07-02 10:38:00 +00:00
|
|
|
vmove usr/bin/*3
|
2015-06-16 04:14:55 +00:00
|
|
|
vmove usr/lib/python3.4
|
2015-07-02 10:38:00 +00:00
|
|
|
vlicense LICENSE
|
2015-06-16 04:14:55 +00:00
|
|
|
}
|
|
|
|
}
|