diff options
author | Michael Weber <xmw@gentoo.org> | 2017-03-02 14:23:34 +0100 |
---|---|---|
committer | Michael Weber <xmw@gentoo.org> | 2017-03-02 18:35:32 +0100 |
commit | ec99fc6cb918a1e853bd21cad4b28fa003dfd4d7 (patch) | |
tree | 3d9b74bf150332aef74faeab36143f8df052f19b /dev-util | |
parent | media-libs/libasdcp-cth: Initial import (needed for dcpomatic). (diff) | |
download | gentoo-ec99fc6cb918a1e853bd21cad4b28fa003dfd4d7.tar.gz gentoo-ec99fc6cb918a1e853bd21cad4b28fa003dfd4d7.tar.bz2 gentoo-ec99fc6cb918a1e853bd21cad4b28fa003dfd4d7.zip |
dev-util/waf: Initial import
Package-Manager: Portage-2.3.4, Repoman-2.3.2
Diffstat (limited to 'dev-util')
-rw-r--r-- | dev-util/waf/Manifest | 1 | ||||
-rw-r--r-- | dev-util/waf/metadata.xml | 8 | ||||
-rw-r--r-- | dev-util/waf/waf-1.9.8.ebuild | 52 |
3 files changed, 61 insertions, 0 deletions
diff --git a/dev-util/waf/Manifest b/dev-util/waf/Manifest new file mode 100644 index 000000000000..6c2be8035af3 --- /dev/null +++ b/dev-util/waf/Manifest @@ -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 index 000000000000..a535b8852829 --- /dev/null +++ b/dev-util/waf/metadata.xml @@ -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 index 000000000000..3b79a786bae8 --- /dev/null +++ b/dev-util/waf/waf-1.9.8.ebuild @@ -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 +} |