From cc0dfe861df9743ecdbaeaaed88c2ff181d06ba1 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Thu, 22 May 2014 19:02:11 +0000 Subject: testing/py-greenlet: more forceful compiler flag fixing --- testing/py-greenlet/APKBUILD | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'testing/py-greenlet') diff --git a/testing/py-greenlet/APKBUILD b/testing/py-greenlet/APKBUILD index de24c1bb99..e9ffa3e294 100644 --- a/testing/py-greenlet/APKBUILD +++ b/testing/py-greenlet/APKBUILD @@ -3,7 +3,7 @@ pkgname=py-greenlet _pkgname=greenlet pkgver=0.4.0 -pkgrel=1 +pkgrel=2 pkgdesc="Lightweight in-process concurrent programming" url="http://pypi.python.org/pypi/greenlet" arch="all" @@ -14,10 +14,20 @@ source="http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgna gcc-4.8-bugfix.patch" _builddir="$srcdir"/$_pkgname-$pkgver -build () -{ +prepare() { + local i cd "$_builddir" - python setup.py build || return 1 + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + env + CFLAGS="-O0" CPPFLAGS="-O0" CXXFLAGS="-O0" python setup.py build || return 1 } package() { -- cgit v1.2.3