diff options
Diffstat (limited to 'dev-util/promu')
-rw-r--r-- | dev-util/promu/Manifest | 1 | ||||
-rw-r--r-- | dev-util/promu/metadata.xml | 13 | ||||
-rw-r--r-- | dev-util/promu/promu-0.1.0_p20161031.ebuild | 30 |
3 files changed, 44 insertions, 0 deletions
diff --git a/dev-util/promu/Manifest b/dev-util/promu/Manifest new file mode 100644 index 000000000000..dff1f934aa25 --- /dev/null +++ b/dev-util/promu/Manifest @@ -0,0 +1 @@ +DIST promu-0.1.0_p20161031.tar.gz 393908 SHA256 eab458c5f03dd45405ef56b1e333bd95fdd379d6a3010af1a2a0fc9db2d49159 SHA512 75bb77f91bb4ee2817e0481e13e0ac0c4abe4ab899608a455fac99e9939f63eedd17e42271c1ac76f2d475fb5aaa066dd24d5229b3e74571eec67dd448c7a487 WHIRLPOOL 67988a4980c908650001f423a3683486520a1b1d61389bdc2c423b90d3c097fad7066e8e0096b4d85ce0d1edc83c6813a5c94414a1b9c2cc4edecfe05b61316c diff --git a/dev-util/promu/metadata.xml b/dev-util/promu/metadata.xml new file mode 100644 index 000000000000..e7c5722bde0f --- /dev/null +++ b/dev-util/promu/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <longdescription> + </longdescription> + <maintainer type="person"> + <email>mrueg@gentoo.org</email> + <name>Manuel Rüger</name> + </maintainer> + <upstream> + <remote-id type="github">prometheus/promu</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-util/promu/promu-0.1.0_p20161031.ebuild b/dev-util/promu/promu-0.1.0_p20161031.ebuild new file mode 100644 index 000000000000..39628ec3af78 --- /dev/null +++ b/dev-util/promu/promu-0.1.0_p20161031.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +inherit golang-build golang-vcs-snapshot + +EGO_PN="github.com/prometheus/promu/..." +EGIT_COMMIT="9f4d6bd7f2229244ed87917c7f1a641c777e21be" +ARCHIVE_URI="https://${EGO_PN%/*}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64" + +DESCRIPTION="Prometheus Utility Tool" +HOMEPAGE="https://github.com/prometheus/promu" +SRC_URI="${ARCHIVE_URI}" +LICENSE="Apache-2.0" +SLOT="0" +IUSE="" + +src_compile() { + LDFLAGS="-X github.com/prometheus/vendor/github.com/prometheus/common/version.Version=$(cat src/${EGO_PN%/*}/VERSION) + -X github.com/prometheus/vendor/github.com/prometheus/common/version.Revision=${EGIT_COMMIT:0:7} + -extldflags \"-static\"" + GOPATH="${S}" go build -ldflags "${LDFLAGS}" -o bin/promu src/${EGO_PN%/*}/main.go || die +} + +src_install() { + dobin bin/* + dodoc -r src/${EGO_PN%/*}/{doc,{README,CONTRIBUTING}.md} +} |