aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-psutil/APKBUILD
diff options
context:
space:
mode:
authorFrancesco Colista <francesco.colista@gmail.com>2012-12-03 10:11:28 +0000
committerFrancesco Colista <francesco.colista@gmail.com>2012-12-13 08:46:27 +0000
commite3c130be7664862a5534138fe2477b536a33dc5b (patch)
treed34a7bc87f19e12cade4711a7756cadf52f2e70b /testing/py-psutil/APKBUILD
parent70c09d9d2feaa07ce6ec7a285845878121f9a2e2 (diff)
downloadaports-e3c130be7664862a5534138fe2477b536a33dc5b.tar.bz2
aports-e3c130be7664862a5534138fe2477b536a33dc5b.tar.xz
testing/py-psutil: new aport
Diffstat (limited to 'testing/py-psutil/APKBUILD')
-rw-r--r--testing/py-psutil/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/py-psutil/APKBUILD b/testing/py-psutil/APKBUILD
new file mode 100644
index 0000000000..ffc7093778
--- /dev/null
+++ b/testing/py-psutil/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=py-psutil
+_pkgname=psutil
+pkgver=0.6.1
+pkgrel=0
+pkgdesc="A cross-platform process and system utilities module for Python"
+url="http://code.google.com/p/psutil/"
+arch="all"
+license="BSD"
+depends=""
+depends_dev="python-dev"
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-doc"
+source="https://psutil.googlecode.com/files/$_pkgname-$pkgver.tar.gz"
+_builddir="$srcdir"/$_pkgname-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ python setup.py build --build-lib=build/python \
+ install --root="$pkgdir" --optimize=1
+}
+
+package() {
+ cd "$_builddir"
+ install -D -m 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+md5sums="3cfcbfb8525f6e4c70110e44a85e907e psutil-0.6.1.tar.gz"