From d2ae62d002b66d45bec5e12d89b9eec3758d7bfb Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sat, 31 Aug 2013 20:41:18 +0000 Subject: testing/py-cairosvg: new aport --- testing/py-cairosvg/APKBUILD | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 testing/py-cairosvg/APKBUILD (limited to 'testing/py-cairosvg') 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 +# Maintainer: William Pitcock +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" -- cgit v1.2.3