aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Ammerlaan <andrewammerlaan@riseup.net>2021-01-13 20:47:05 +0100
committerAndrew Ammerlaan <andrewammerlaan@riseup.net>2021-01-13 20:47:05 +0100
commit3cceefe1fc1dc6b91a550a4cbf079f99095f780c (patch)
treecc7643507544809b2efe4ea73d901b0a299d0256 /dev-util
parentsys-cluster/lmod: version bump to 8.4.20 (diff)
downloadsci-3cceefe1fc1dc6b91a550a4cbf079f99095f780c.tar.gz
sci-3cceefe1fc1dc6b91a550a4cbf079f99095f780c.tar.bz2
sci-3cceefe1fc1dc6b91a550a4cbf079f99095f780c.zip
dev-util/waf: new builder for dev-libs/tut
Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/waf/Manifest1
-rw-r--r--dev-util/waf/metadata.xml8
-rw-r--r--dev-util/waf/waf-2.0.21.ebuild64
3 files changed, 73 insertions, 0 deletions
diff --git a/dev-util/waf/Manifest b/dev-util/waf/Manifest
new file mode 100644
index 000000000..f3196a0cf
--- /dev/null
+++ b/dev-util/waf/Manifest
@@ -0,0 +1 @@
+DIST waf-2.0.21.tar.bz2 684459 BLAKE2B ba7d85c50d4ba1ad566620f7da2779ac1a4e0a5fcc5bcc639c64a59750bf9df40318070f771098d21335cc8d494b4043ecbdae1baa67c4bce3ce791ce2e538d5 SHA512 b76c32d5992757af1f483dc59dc439e414d06d0325eaf1c8ac20bc20ee62bee25d8a97099d80e6d8e3a2ca9c9aeadf0543c2ba5005479e9617c1fbcfd60ba6b8
diff --git a/dev-util/waf/metadata.xml b/dev-util/waf/metadata.xml
new file mode 100644
index 000000000..026cdb22b
--- /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="project">
+ <email>sci@gentoo.org</email>
+ <name>Gentoo Science Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-util/waf/waf-2.0.21.ebuild b/dev-util/waf/waf-2.0.21.ebuild
new file mode 100644
index 000000000..91e9f7fb1
--- /dev/null
+++ b/dev-util/waf/waf-2.0.21.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{7,8,9} )
+PYTHON_REQ_USE="threads(+)"
+
+inherit python-single-r1
+
+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 ~x86"
+
+IUSE="doc examples"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+BDEPEND="doc? ( $(python_gen_cond_dep \
+ 'dev-python/sphinx[${PYTHON_USEDEP}]' )
+)"
+DEPEND="${PYTHON_DEPS}"
+
+src_prepare() {
+ rm waf || die
+
+ default
+}
+
+src_configure() {
+ ${EPYTHON} ./waf-light configure || die "waf configure failed"
+}
+
+src_compile() {
+ ${EPYTHON} ./waf-light build || die "waf build failed"
+ use doc && build_sphinx docs/sphinx
+}
+
+src_install() {
+ default
+
+ # Set INSTALL to EPREFIX
+ # Set REVISION to PR
+ # set dirname to empty because python_get_sitedir
+ # installs directly to a dir with the correct name
+ # Set location of waflib to location of Gentoo
+ # Python sitedir
+ sed -e "/INSTALL=/s:=.*:='${EPREFIX}':" \
+ -e "/REVISION=/s:=.*:='${PR}':" \
+ -e "/dirname =/s:=.*:= '':" \
+ -e "s:/lib/:$(python_get_sitedir)/:" \
+ -e "/^#\(==>\|BZ\|<==\)/d" \
+ -i waf || die
+ python_doscript waf
+
+ python_domodule waflib
+
+ if use examples ; then
+ dodoc -r demos
+ fi
+}