aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-cffi
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2013-08-24 13:37:19 -0500
committerWilliam Pitcock <nenolod@dereferenced.org>2013-08-24 13:37:19 -0500
commitb5d464adaf30dac8d6ec7439cfcd2a0979c5bbb2 (patch)
treed726f010c19c80da65e0150b823aa83193a68ab4 /testing/py-cffi
parent0d1c4dd6524a649ad678411e0269f2d805c6344a (diff)
downloadaports-b5d464adaf30dac8d6ec7439cfcd2a0979c5bbb2.tar.bz2
aports-b5d464adaf30dac8d6ec7439cfcd2a0979c5bbb2.tar.xz
testing/py-cffi: new aport
Diffstat (limited to 'testing/py-cffi')
-rw-r--r--testing/py-cffi/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/testing/py-cffi/APKBUILD b/testing/py-cffi/APKBUILD
new file mode 100644
index 0000000000..ffac274431
--- /dev/null
+++ b/testing/py-cffi/APKBUILD
@@ -0,0 +1,40 @@
+# Contributor: William Pitcock <nenolod@dereferenced.org>
+# Maintainer: William Pitcock <nenolod@dereferenced.org>
+pkgname=py-cffi
+pkgver=0.7.2
+pkgrel=0
+pkgdesc="a foreign function interface for calling C code from python"
+url="http://cffi.readthedocs.org/"
+arch="all"
+license="MIT"
+depends="python py-cparser"
+depends_dev=""
+makedepends="python-dev py-setuptools"
+install=""
+subpackages=""
+source="http://pypi.python.org/packages/source/c/cffi/cffi-$pkgver.tar.gz"
+
+_builddir="$srcdir"/cffi-$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="d329f5cb2053fd31dafc02e2c9ef0299 cffi-0.7.2.tar.gz"
+sha256sums="b723ab49b48c1604e5a3b5e838b0049eaa61e365408a71e40ba0a42d16472042 cffi-0.7.2.tar.gz"
+sha512sums="f4b6ca2c9fa0bf0698b62cf4506b86cd769648a45555d414eb9f95535333b47b4e8cc5c5be13cde7bdecb2790a8e340f4d13e52c996dbc7b69f2390243321b6a cffi-0.7.2.tar.gz"