From a8b3d4789724bf448bbf063991b21e86c83f5976 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Mon, 22 Sep 2014 17:27:44 +0200 Subject: [PATCH] python-psutil: update to 2.1.2 --- srcpkgs/python-psutil/template | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/srcpkgs/python-psutil/template b/srcpkgs/python-psutil/template index df4ca2854ac..d4087adf823 100644 --- a/srcpkgs/python-psutil/template +++ b/srcpkgs/python-psutil/template @@ -1,26 +1,32 @@ # Template file for 'python-psutil' pkgname=python-psutil -version=2.1.1 -revision=2 +version=2.1.2 +revision=1 wrksrc="psutil-${version}" -distfiles="https://pypi.python.org/packages/source/p/psutil/psutil-${version}.tar.gz" -checksum=bf812a4aa6a41147d0e96e63d826eb7582fda6b54ad8f22534354b7f8ac45593 build_style="python-module" python_versions="2.7 3.4" -pycompile_module="psutil" hostmakedepends="python-setuptools python3.4-setuptools" makedepends="python-devel python3.4-devel" +pycompile_module="psutil" maintainer="Steven R " -homepage="http://code.google.com/p/psutil/" +homepage="https://github.com/giampaolo/psutil" license="BSD" -short_desc="A cross-platform process and system utilities module for Python2" +short_desc="Cross-platform process and system utilities module for Python2" +distfiles="${PYPI_SITE}/p/psutil/psutil-${version}.tar.gz" +checksum=897e5163e0669001bf8bcb0557362f14703356336519082a93c38d54e5b392e4 + +CC=$CC + +pre_build() { + # remove shebangs + sed -i '1d' psutil/*.py +} python3.4-psutil_package() { - depends="python3.4" pycompile_version="3.4" pycompile_module="psutil" short_desc="${short_desc/Python2/Python3.4}" pkg_install() { - vmove /usr/lib/python3.4 + vmove usr/lib/python3.4 } }