diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2017-04-11 19:41:34 +0200 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2017-04-11 19:41:40 +0200 |
commit | 4f34754ccbddfcc46ac889ad088c38a6d7b75dfb (patch) | |
tree | 287bf8db55fb89d938b4a41680d41c0d6acb65b6 /main/py3-cairo | |
parent | ff3948e1be53aa98fcf7e92a6a2b511dedf30954 (diff) | |
download | aports-4f34754ccbddfcc46ac889ad088c38a6d7b75dfb.tar.bz2 aports-4f34754ccbddfcc46ac889ad088c38a6d7b75dfb.tar.xz |
community/py3-cairo: move to main due to py-gobject3
Diffstat (limited to 'main/py3-cairo')
-rw-r--r-- | main/py3-cairo/APKBUILD | 43 | ||||
-rw-r--r-- | main/py3-cairo/pycairo-1.10.0-waf-py3_4.patch | 11 | ||||
-rw-r--r-- | main/py3-cairo/pycairo-1.10.0-waf-py3_5.patch | 10 |
3 files changed, 64 insertions, 0 deletions
diff --git a/main/py3-cairo/APKBUILD b/main/py3-cairo/APKBUILD new file mode 100644 index 0000000000..3fb4f6d6e1 --- /dev/null +++ b/main/py3-cairo/APKBUILD @@ -0,0 +1,43 @@ +# 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" diff --git a/main/py3-cairo/pycairo-1.10.0-waf-py3_4.patch b/main/py3-cairo/pycairo-1.10.0-waf-py3_4.patch new file mode 100644 index 0000000000..29a4d8b6a1 --- /dev/null +++ b/main/py3-cairo/pycairo-1.10.0-waf-py3_4.patch @@ -0,0 +1,11 @@ +--- 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: diff --git a/main/py3-cairo/pycairo-1.10.0-waf-py3_5.patch b/main/py3-cairo/pycairo-1.10.0-waf-py3_5.patch new file mode 100644 index 0000000000..48d38ee806 --- /dev/null +++ b/main/py3-cairo/pycairo-1.10.0-waf-py3_5.patch @@ -0,0 +1,10 @@ +--- 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) |