2013-08-04 01:59:23 +02:00
|
|
|
# Template file for 'python-psutil'
|
|
|
|
pkgname=python-psutil
|
2014-10-05 13:01:31 +02:00
|
|
|
version=2.1.3
|
2014-09-22 17:27:44 +02:00
|
|
|
revision=1
|
2014-06-18 17:09:48 +02:00
|
|
|
wrksrc="psutil-${version}"
|
2014-02-22 23:53:09 +01:00
|
|
|
build_style="python-module"
|
2014-06-18 17:09:48 +02:00
|
|
|
python_versions="2.7 3.4"
|
|
|
|
hostmakedepends="python-setuptools python3.4-setuptools"
|
|
|
|
makedepends="python-devel python3.4-devel"
|
2014-09-22 17:27:44 +02:00
|
|
|
pycompile_module="psutil"
|
2014-02-22 23:53:09 +01:00
|
|
|
maintainer="Steven R <dev@styez.com>"
|
2014-09-22 17:27:44 +02:00
|
|
|
homepage="https://github.com/giampaolo/psutil"
|
2013-08-04 01:59:23 +02:00
|
|
|
license="BSD"
|
2014-09-22 17:27:44 +02:00
|
|
|
short_desc="Cross-platform process and system utilities module for Python2"
|
|
|
|
distfiles="${PYPI_SITE}/p/psutil/psutil-${version}.tar.gz"
|
2014-10-05 13:01:31 +02:00
|
|
|
checksum=b434c75f01715777391f10f456002e33d0ca14633f96fdbd9ff9139b42d9452c
|
2014-09-22 17:27:44 +02:00
|
|
|
|
|
|
|
pre_build() {
|
|
|
|
# remove shebangs
|
|
|
|
sed -i '1d' psutil/*.py
|
|
|
|
}
|
2014-06-18 17:09:48 +02:00
|
|
|
|
|
|
|
python3.4-psutil_package() {
|
|
|
|
pycompile_version="3.4"
|
|
|
|
pycompile_module="psutil"
|
|
|
|
short_desc="${short_desc/Python2/Python3.4}"
|
|
|
|
pkg_install() {
|
2014-09-22 17:27:44 +02:00
|
|
|
vmove usr/lib/python3.4
|
2014-06-18 17:09:48 +02:00
|
|
|
}
|
|
|
|
}
|