aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-xen
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2012-12-12 06:07:53 -0600
committerWilliam Pitcock <nenolod@dereferenced.org>2012-12-12 06:08:17 -0600
commit1239b4d79d72c18b8c8cee8940f9ade58a740149 (patch)
tree338ea6caf99a15939f427bc197f81c1f0c89d3e6 /testing/py-xen
parentaabb95b012bfc9e6e0c0fb44b64dc0bb22c9186d (diff)
downloadaports-1239b4d79d72c18b8c8cee8940f9ade58a740149.tar.bz2
aports-1239b4d79d72c18b8c8cee8940f9ade58a740149.tar.xz
testing/py-xen: new aport
Diffstat (limited to 'testing/py-xen')
-rw-r--r--testing/py-xen/APKBUILD38
1 files changed, 38 insertions, 0 deletions
diff --git a/testing/py-xen/APKBUILD b/testing/py-xen/APKBUILD
new file mode 100644
index 0000000000..be93e8c78a
--- /dev/null
+++ b/testing/py-xen/APKBUILD
@@ -0,0 +1,38 @@
+# Contributor: William Pitcock <nenolod@dereferenced.org>
+# Maintainer: William Pitcock <nenolod@dereferenced.org>
+pkgname=py-xen
+pkgver=0.0.2
+pkgrel=0
+pkgdesc="Python binding for Xen management"
+url="https://bitbucket.org/tortoiselabs/python-xen"
+arch="noarch"
+license="ISC"
+depends="python xen-libs"
+depends_dev=""
+makedepends="python-dev"
+install=""
+subpackages=""
+source="http://pypi.python.org/packages/source/P/Python-Xen/Python-Xen-$pkgver.tar.gz"
+
+_builddir="$srcdir"/Python-Xen-$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 || return 1
+}
+
+package() {
+ cd "$_builddir"
+ python setup.py install --prefix=/usr --root="$pkgdir" || return 1
+}
+
+md5sums="dff1e84fb256b698c1a6bd8446ab152d Python-Xen-0.0.2.tar.gz"