diff options
author | Manuel Rüger <mrueg@gentoo.org> | 2017-09-24 20:53:16 +0200 |
---|---|---|
committer | Manuel Rüger <mrueg@gentoo.org> | 2017-09-24 20:54:09 +0200 |
commit | 160cd5c39703ce83d38d751d994d6abe1bef4949 (patch) | |
tree | 8d62ba81a5ca83fbd620887c239ba12956a61718 /dev-util/promu | |
parent | sys-apps/file: stable 5.32 for ppc, bug #629872 (diff) | |
download | gentoo-160cd5c39703ce83d38d751d994d6abe1bef4949.tar.gz gentoo-160cd5c39703ce83d38d751d994d6abe1bef4949.tar.bz2 gentoo-160cd5c39703ce83d38d751d994d6abe1bef4949.zip |
dev-util/promu: Version bump to 0.1.0
Package-Manager: Portage-2.3.10, Repoman-2.3.2
Diffstat (limited to 'dev-util/promu')
-rw-r--r-- | dev-util/promu/Manifest | 1 | ||||
-rw-r--r-- | dev-util/promu/promu-0.1.0.ebuild | 28 |
2 files changed, 29 insertions, 0 deletions
diff --git a/dev-util/promu/Manifest b/dev-util/promu/Manifest index 30ac5d833c68..0f76eed18bc0 100644 --- a/dev-util/promu/Manifest +++ b/dev-util/promu/Manifest @@ -1 +1,2 @@ +DIST promu-0.1.0.tar.gz 1065003 SHA256 043c4149bc85e4d51a93390cdb4fee6871d93123ced5c2d3d4f78a2265167bbc SHA512 18ad54b1ec9fe8975a0048b5c85609858cd500a2d3aa34e51e5c2c3d07a0df4337bac9648562e2007d5c8572e07c814c6bba7522b94836c258cde457df5815e2 WHIRLPOOL 3717496ee2296bfa27baf47d601f3bb5eaa4e4e27c3ebd7fd71979ae9e29d833f04065a16add9b2410fb4cff040d98a51e9d628ba316ab8cb488eda2ef4f7b15 DIST promu-0.1.0_p20170607.tar.gz 399675 SHA256 e2995015d66c25e431284e24623a3ecb5813fdaf45cd31231d1ba5a9a500e1a0 SHA512 38c5230b8a301675b55ea80c2ab461be51d560d96511c8ce4ac101434e484dca0a90ccacb06b3bb9057d151fac407adc443833032ddd226416a1fd5af788edaf WHIRLPOOL d2779d629d1b04ca9ccc78711a591a19ef1beede1ac6708e45f3a0d0fd2bcf309858d7aaeba739c6ce17cf12bd5edc6612a123dee2a41d4796685c0b188e599d diff --git a/dev-util/promu/promu-0.1.0.ebuild b/dev-util/promu/promu-0.1.0.ebuild new file mode 100644 index 000000000000..6cefcabc0a9c --- /dev/null +++ b/dev-util/promu/promu-0.1.0.ebuild @@ -0,0 +1,28 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit golang-build golang-vcs-snapshot + +EGO_PN="github.com/prometheus/promu" +EGIT_COMMIT="5e82f2f" +SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64" + +DESCRIPTION="Prometheus Utility Tool" +HOMEPAGE="https://github.com/prometheus/promu" +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} + -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} +} |