diff --git a/srcpkgs/python-psutil/template b/srcpkgs/python-psutil/template index 90c7167f940..df4ca2854ac 100644 --- a/srcpkgs/python-psutil/template +++ b/srcpkgs/python-psutil/template @@ -1,15 +1,26 @@ # Template file for 'python-psutil' pkgname=python-psutil version=2.1.1 -revision=1 +revision=2 +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-devel python-distribute" -makedepends="${hostmakedepends}" +hostmakedepends="python-setuptools python3.4-setuptools" +makedepends="python-devel python3.4-devel" maintainer="Steven R " homepage="http://code.google.com/p/psutil/" license="BSD" -short_desc="A cross-platform process and system utilities module for Python" -wrksrc="psutil-${version}" +short_desc="A cross-platform process and system utilities module for Python2" + +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 + } +} diff --git a/srcpkgs/python3.4-psutil b/srcpkgs/python3.4-psutil new file mode 120000 index 00000000000..f07be36627e --- /dev/null +++ b/srcpkgs/python3.4-psutil @@ -0,0 +1 @@ +python-psutil \ No newline at end of file