aboutsummaryrefslogtreecommitdiffstats
path: root/testing/pycairo
diff options
context:
space:
mode:
authorAlan Lacerda <alancordeiro@gmail.com>2015-05-27 15:00:01 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2015-05-28 13:22:56 +0000
commitec17e568100164d36960c289cab4fd6237cd4807 (patch)
tree955c11d988d6eef8982cc594facf0f4565926f69 /testing/pycairo
parent3098fea239fdf359dd980fc7b3e4dc7ed587badb (diff)
downloadaports-ec17e568100164d36960c289cab4fd6237cd4807.tar.bz2
aports-ec17e568100164d36960c289cab4fd6237cd4807.tar.xz
testing/pycairo: new aport
Diffstat (limited to 'testing/pycairo')
-rw-r--r--testing/pycairo/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/pycairo/APKBUILD b/testing/pycairo/APKBUILD
new file mode 100644
index 0000000000..5b16b8d2c8
--- /dev/null
+++ b/testing/pycairo/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor: Alan Lacerda <alacerda@alpinelinux.org>
+# Maintainer:
+pkgname=pycairo
+pkgver=1.10.0
+pkgrel=0
+pkgdesc="A set of Python bindings for the cairo graphics library"
+url="http://cairographics.org/pycairo/"
+arch="all"
+license="MPL"
+depends=""
+depends_dev=""
+makedepends="$depends_dev python-dev cairo-dev"
+install=""
+subpackages="$pkgname-dev"
+source="http://cairographics.org/releases/py2cairo-$pkgver.tar.bz2"
+
+_builddir="$srcdir/py2cairo-$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"
+ ./waf configure --prefix=/usr || return 1
+ ./waf build || return 1
+}
+
+package() {
+ cd "$_builddir"
+ DESTDIR="${pkgdir}" ./waf install || return 1
+}
+
+md5sums="20337132c4ab06c1146ad384d55372c5 py2cairo-1.10.0.tar.bz2"
+sha256sums="d30439f06c2ec1a39e27464c6c828b6eface3b22ee17b2de05dc409e429a7431 py2cairo-1.10.0.tar.bz2"
+sha512sums="cb3d54de9af4134460ce731da8166a3127a642c8a2e6184109437ddec115cd55b8dd2413a5c81700277bfe2f22fcfe268db4f3ba0f7649751e85bb34295f79fc py2cairo-1.10.0.tar.bz2"