1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 python3_5 python3_6 )
7 PYTHON_REQ_USE="threads(+)"
8 inherit python-any-r1 toolchain-funcs
10 DESCRIPTION="piece of software used to help building software projects"
11 HOMEPAGE="https://waf.io/"
12 SRC_URI="https://waf.io/${P}.tar.bz2"
19 DEPEND="${PYTHON_DEPS}"
21 DOCS="ChangeLog README.md DEVEL"
30 ${EPYTHON} ./waf-light configure
34 ${EPYTHON} ./waf-light build
40 #point waf binary to waflib dir and strip payload
41 sed -e "/INSTALL=/s:=.*:='${EROOT}usr':" \
42 -e "/REVISION=/s:=.*:='${PR}':" \
43 -e "s:/lib/:/$(get_libdir)/:" \
44 -e "/^#\(==>\|BZ\|<==\)/d" \
48 insinto /usr/$(get_libdir)/${PN}3-${PV}-${PR}
51 if use examples ; then