aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-cairosvg/APKBUILD
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2013-08-31 20:41:18 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2013-08-31 20:41:18 +0000
commitd2ae62d002b66d45bec5e12d89b9eec3758d7bfb (patch)
tree82189e8908fe2b6fd0e87c0957e3a491245b63ad /testing/py-cairosvg/APKBUILD
parent9d49d2bef8d6598ab75d6f1100129c2658063a00 (diff)
downloadaports-d2ae62d002b66d45bec5e12d89b9eec3758d7bfb.tar.bz2
aports-d2ae62d002b66d45bec5e12d89b9eec3758d7bfb.tar.xz
testing/py-cairosvg: new aport
Diffstat (limited to 'testing/py-cairosvg/APKBUILD')
-rw-r--r--testing/py-cairosvg/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/testing/py-cairosvg/APKBUILD b/testing/py-cairosvg/APKBUILD
new file mode 100644
index 0000000000..7e6f180636
--- /dev/null
+++ b/testing/py-cairosvg/APKBUILD
@@ -0,0 +1,40 @@
+# Contributor: William Pitcock <nenolod@dereferenced.org>
+# Maintainer: William Pitcock <nenolod@dereferenced.org>
+pkgname=py-cairosvg
+pkgver=0.5
+pkgrel=0
+pkgdesc="cairo-based SVG renderer for python"
+url="http://cairosvg.org"
+arch="noarch"
+license="LGPL"
+depends="python py-cairocffi"
+depends_dev=""
+makedepends="python-dev py-setuptools"
+install=""
+subpackages=""
+source="http://pypi.python.org/packages/source/C/CairoSVG/CairoSVG-$pkgver.tar.gz"
+
+_builddir="$srcdir"/CairoSVG-$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="6c092cce2b2ade47054aea6657173cbf CairoSVG-0.5.tar.gz"
+sha256sums="9aa311fb832c37bf376a4bbcf0b97beddc4527e4fbd918cdd35d42bc3200e170 CairoSVG-0.5.tar.gz"
+sha512sums="039db314effeeeb2bfae1ad47f8505742fcc160804e8f029a4f3568fbc3e9b802e785ae2cf4ec63d6dee6d4730676fa48c1d8915423ec60e5855540eaac17572 CairoSVG-0.5.tar.gz"