From ba3d7f4b8276d647fdefeb153460924f421bab72 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Sun, 24 Apr 2016 19:24:44 +0200 Subject: [PATCH] python-Pyro4: update to 4.43 --- srcpkgs/python-Pyro4/template | 32 ++++++++------------------------ 1 file changed, 8 insertions(+), 24 deletions(-) diff --git a/srcpkgs/python-Pyro4/template b/srcpkgs/python-Pyro4/template index d1fe7e410a..b04ffe4ec5 100644 --- a/srcpkgs/python-Pyro4/template +++ b/srcpkgs/python-Pyro4/template @@ -1,6 +1,6 @@ # Template file for 'python-Pyro4' pkgname=python-Pyro4 -version=4.42 +version=4.43 revision=1 wrksrc="${pkgname#*-}-${version}" noarch=yes @@ -13,29 +13,13 @@ short_desc="Distributed Object Middleware (IPC/RPC) for Python2" maintainer="pulux " license="MIT" homepage="http://pythonhosted.org/Pyro4/" -distfiles="${PYPI_SITE}/P/Pyro4/Pyro4-${version}.tar.gz" -checksum=03951643015a1537ad82fbf99fba6e208007447404aab1a020dce7216120d32a +distfiles="https://pypi.python.org/packages/05/70/1604ed0419a45383bf69b0cb76ac71c3a958c77c9ec41af9d7b7c826e089/Pyro4-${version}.tar.gz" +checksum=b6f924fa74f21d14c851450e157711914a402bfc2f3a880c1b2c275fd4cda6d6 -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} +post_install() { + for f in ${DESTDIR}/usr/bin/*; do + cp -f ${f}{,3.4} + replace_interpreter python ${f} done vlicense LICENSE } @@ -47,7 +31,7 @@ python3.4-Pyro4_package() { pycompile_module="Pyro4" short_desc="${short_desc/Python2/Python3.4}" pkg_install() { - vmove usr/bin/*3 + vmove usr/bin/*3.4 vmove usr/lib/python3.4 vlicense LICENSE }