From 1e8cd67d81b86b26a64b49c5c8837860b8e7361b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20W=C3=B3jcik?= Date: Sat, 20 Jun 2020 22:17:08 +0200 Subject: [PATCH] termbox: build with waf3 --- srcpkgs/termbox/template | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/srcpkgs/termbox/template b/srcpkgs/termbox/template index e69191084d6..f1c4f8b2727 100644 --- a/srcpkgs/termbox/template +++ b/srcpkgs/termbox/template @@ -2,8 +2,7 @@ pkgname=termbox version=1.1.2 revision=2 -build_style=waf -hostmakedepends="python" +build_style=waf3 short_desc="Library for writing text-based user interfaces" maintainer="Diogo Leal " license="MIT" @@ -11,6 +10,17 @@ homepage="https://github.com/nsf/termbox/" distfiles="https://github.com/nsf/termbox/archive/v${version}.tar.gz" checksum=61c9940b42b3ac44bf0cba67eacba75e3c02088b8c695149528c77def04d69b1 +pre_configure() { + # waf file is self extracting archive written in python + # it self extracts in top level, then runs extracted module in __main__ + # importing allows to patch contents of archive + mv waf waf.py + python3 -c 'import waf; print(waf.wafdir + "/waflib/Node.py")' > node + vsed -i "$(cat node)" -e '/raise StopIteration/d' + rm node + mv waf.py waf +} + post_install() { vlicense COPYING }