diff options
Diffstat (limited to 'sys-cluster')
-rw-r--r-- | sys-cluster/nomad/metadata.xml | 9 | ||||
-rw-r--r-- | sys-cluster/nomad/nomad-0.12.3.ebuild | 4 |
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 \ |