summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2020-08-21 11:26:48 -0500
committerWilliam Hubbs <williamh@gentoo.org>2020-08-21 11:48:09 -0500
commit351f9bf9d3c3d5965514a0c6255ab89bba0541bd (patch)
tree8e5e1218b72c9a9682987692dd0d13bcb789ed4e /sys-cluster
parentsci-libs/fcl: bump to 0.6.1 (diff)
downloadgentoo-351f9bf9d3c3d5965514a0c6255ab89bba0541bd.tar.gz
gentoo-351f9bf9d3c3d5965514a0c6255ab89bba0541bd.tar.bz2
gentoo-351f9bf9d3c3d5965514a0c6255ab89bba0541bd.zip
sys-cluster/nomad: add nvidia use flag
This controls whether we build with nvidia integration. Closes: https://bugs.gentoo.org/737472 Signed-off-by: William Hubbs <williamh@gentoo.org>
Diffstat (limited to 'sys-cluster')
-rw-r--r--sys-cluster/nomad/metadata.xml9
-rw-r--r--sys-cluster/nomad/nomad-0.12.3.ebuild4
2 files changed, 8 insertions, 5 deletions
diff --git a/sys-cluster/nomad/metadata.xml b/sys-cluster/nomad/metadata.xml
index 3c49bd23955c..9f6cd416f2b5 100644
--- a/sys-cluster/nomad/metadata.xml
+++ b/sys-cluster/nomad/metadata.xml
@@ -3,6 +3,9 @@
<pkgmetadata>
<maintainer type="person">
<email>williamh@gentoo.org</email>
- <name>William Hubbs</name>
- </maintainer>
- </pkgmetadata>
+ <name>William Hubbs</name>
+ </maintainer>
+ <use>
+ <flag name="nvidia">build with nvidia integration</flag>
+ </use>
+</pkgmetadata>
diff --git a/sys-cluster/nomad/nomad-0.12.3.ebuild b/sys-cluster/nomad/nomad-0.12.3.ebuild
index 52e0d90e0b58..e605fbb5f71d 100644
--- a/sys-cluster/nomad/nomad-0.12.3.ebuild
+++ b/sys-cluster/nomad/nomad-0.12.3.ebuild
@@ -12,12 +12,12 @@ SRC_URI="https://github.com/hashicorp/nomad/archive/v${PV}.tar.gz -> ${P}.tar.gz
LICENSE="MPL-2.0"
SLOT="0"
KEYWORDS="~amd64"
-IUSE=""
+IUSE="nvidia"
src_compile() {
local go_ldflags go_tags
go_ldflags="-X github.com/hashicorp/nomad/version.GitCommit=${GIT_COMMIT}"
- go_tags="codegen_generated"
+ go_tags="codegen_generated $(usex nvidia '' 'nonvidia')"
CGO_ENABLED=1 \
go build \
-trimpath \