dev-util/waf: Initial import

Package-Manager: Portage-2.3.4, Repoman-2.3.2
This commit is contained in:
Michael Weber
2017-03-02 14:23:34 +01:00
parent 28faa4f2c2
commit ec99fc6cb9
3 changed files with 61 additions and 0 deletions

1
dev-util/waf/Manifest Normal file
View File

@@ -0,0 +1 @@
DIST waf-1.9.8.tar.bz2 620795 SHA256 d8ec47b85e832e97f32d4f83df3cacfa08dbf142c52ad525ee8e1a70ab658472 SHA512 a86d29d32257ee5b82db28f20ef3056a995c4a47404ee47f216899c76332c6586bde83397db907b51c8d3d38efaa3e2f4befbf8f27d17d1f58e6b0808f070fdc WHIRLPOOL 55bce3d9cb071a564689b6c85036251989849f56295052c35dea514b01f26c5fb442853f7436c2b3b5442481a96b30173eb8372f7c6402e6d400f74bcfbddfa5

View File

@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>xmw@gentoo.org</email>
<name>Michael Weber</name>
</maintainer>
</pkgmetadata>

View File

@@ -0,0 +1,52 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PYTHON_COMPAT=( python2_7 python3_4 python3_5 python3_6 )
PYTHON_REQ_USE="threads(+)"
inherit python-any-r1 toolchain-funcs
DESCRIPTION="piece of software used to help building software projects"
HOMEPAGE="https://waf.io/"
SRC_URI="https://waf.io/${P}.tar.bz2"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
IUSE="examples"
DOCS="ChangeLog README.md DEVEL"
src_prepare() {
rm -v waf || die
default
}
src_configure() {
${EPYTHON} ./waf-light configure
}
src_compile() {
${EPYTHON} ./waf-light build
}
src_install() {
default
#point waf binary to waflib dir and strip payload
sed -e "/INSTALL=/s:=.*:='${EROOT}usr':" \
-e "/REVISION=/s:=.*:='${PR}':" \
-e "s:/lib/:/$(get_libdir)/:" \
-e "/^#\(==>\|BZ\|<==\)/d" \
-i waf || die
dobin waf
insinto /usr/$(get_libdir)/${PN}3-${PV}-${PR}
doins -r waflib
if use examples ; then
dodoc -r demos
fi
}