Commit 81bc97b7 authored by Carlo Landmeter's avatar Carlo Landmeter

community/py3-cairo: new aport

parent f405aa18
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=py3-cairo
pkgver=1.10.0
pkgrel=0
pkgdesc="Python bindings for the cairo graphics library"
url="http://cairographics.org/pycairo/"
arch="all"
license="LGPL2+"
depends=""
makedepends="python3-dev cairo-dev"
install=""
subpackages="$pkgname-dev"
source="http://cairographics.org/releases/pycairo-$pkgver.tar.bz2
pycairo-1.10.0-waf-py3_4.patch
pycairo-1.10.0-waf-py3_5.patch
"
builddir="$srcdir"/pycairo-$pkgver
prepare() {
cd "$builddir"
# this waf stuff is insane.
python3 waf --version 1>&2 > /dev/null
cd .waf3-*
patch -p1 -i "$srcdir"/pycairo-1.10.0-waf-py3_4.patch
patch -p1 -i "$srcdir"/pycairo-1.10.0-waf-py3_5.patch
}
build() {
cd "$builddir"
export PYTHON=python3
python3 waf configure --prefix=/usr || return 1
python3 waf build || return 1
}
package() {
cd "$builddir"
export PYTHON=python3
python3 waf install --destdir="${pkgdir}" || return 1
}
sha512sums="a03db6f04cea504985f390b0734042390f491f32ae2bee1299dabbafd369fde36bb506ebb941d22bbc11b0d008c4f758baeacf309a7336880529455092db829f pycairo-1.10.0.tar.bz2
bd27bbb649565ed7aa21bbf6fa01907793fcfbd228640c76a38b632f77004d9770a6a2b0807c7492e6b53aa5254f55771b4e7247d8e656758e3ed84bf28bf625 pycairo-1.10.0-waf-py3_4.patch
a8257a8725e7d2a0ca443661a9802f8a028d2960be3012e761adb7642508924ff02a307e71c06c8b302cee3c12d256186959580817dc1a080a6d58393be0121a pycairo-1.10.0-waf-py3_5.patch"
--- a/waflib/Tools/python.py.orig
+++ b/waflib/Tools/python.py
@@ -169,7 +169,7 @@
conf.find_program('python-config-%s'%num,var='PYTHON_CONFIG',mandatory=False)
includes=[]
if conf.env.PYTHON_CONFIG:
- for incstr in conf.cmd_and_log(conf.env.PYTHON+[conf.env.PYTHON_CONFIG,'--includes']).strip().split():
+ for incstr in conf.cmd_and_log([conf.env.PYTHON_CONFIG,'--includes']).strip().split():
if(incstr.startswith('-I')or incstr.startswith('/I')):
incstr=incstr[2:]
if incstr not in includes:
--- a/waflib/Build.py.orig
+++ b/waflib/Build.py
@@ -151,6 +151,7 @@ class BuildContext(Context.Context):
f.close()
self.init_dirs()
def store(self):
+ return
data={}
for x in SAVED_ATTRS:
data[x]=getattr(self,x)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment