dev-util/waf: Initial import
authorMichael Weber <xmw@gentoo.org>
Thu, 2 Mar 2017 13:23:34 +0000 (14:23 +0100)
committerMichael Weber <xmw@gentoo.org>
Thu, 2 Mar 2017 17:35:32 +0000 (18:35 +0100)
Package-Manager: Portage-2.3.4, Repoman-2.3.2

dev-util/waf/Manifest [new file with mode: 0644]
dev-util/waf/metadata.xml [new file with mode: 0644]
dev-util/waf/waf-1.9.8.ebuild [new file with mode: 0644]

diff --git a/dev-util/waf/Manifest b/dev-util/waf/Manifest
new file mode 100644 (file)
index 0000000..6c2be80
--- /dev/null
@@ -0,0 +1 @@
+DIST waf-1.9.8.tar.bz2 620795 SHA256 d8ec47b85e832e97f32d4f83df3cacfa08dbf142c52ad525ee8e1a70ab658472 SHA512 a86d29d32257ee5b82db28f20ef3056a995c4a47404ee47f216899c76332c6586bde83397db907b51c8d3d38efaa3e2f4befbf8f27d17d1f58e6b0808f070fdc WHIRLPOOL 55bce3d9cb071a564689b6c85036251989849f56295052c35dea514b01f26c5fb442853f7436c2b3b5442481a96b30173eb8372f7c6402e6d400f74bcfbddfa5
diff --git a/dev-util/waf/metadata.xml b/dev-util/waf/metadata.xml
new file mode 100644 (file)
index 0000000..a535b88
--- /dev/null
@@ -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>
diff --git a/dev-util/waf/waf-1.9.8.ebuild b/dev-util/waf/waf-1.9.8.ebuild
new file mode 100644 (file)
index 0000000..3b79a78
--- /dev/null
@@ -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
+}