dev-db/etcd: Verbose build, add Git SHA
authorManuel Rüger <mrueg@gentoo.org>
Mon, 26 Nov 2018 20:18:09 +0000 (21:18 +0100)
committerManuel Rüger <mrueg@gentoo.org>
Mon, 26 Nov 2018 20:18:09 +0000 (21:18 +0100)
Signed-off-by: Manuel Rüger <mrueg@gentoo.org>
Package-Manager: Portage-2.3.52, Repoman-2.3.11

dev-db/etcd/etcd-3.3.10.ebuild

index 19f780d0674772c2971133948f3ec54e64a2cbe5..431d7d6ff869bdf742ec037263a20d2e127a62ee 100644 (file)
@@ -7,6 +7,7 @@ inherit user systemd golang-vcs-snapshot
 
 KEYWORDS="~amd64"
 EGO_PN="github.com/coreos/etcd"
+GIT_COMMIT="27fc7e2"
 MY_PV="${PV/_rc/-rc.}"
 DESCRIPTION="Highly-available key value store for shared configuration and service discovery"
 HOMEPAGE="https://github.com/coreos/etcd"
@@ -19,7 +20,7 @@ RDEPEND="!dev-db/etcdctl"
 
 src_prepare() {
        default
-       sed -e 's|GIT_SHA=.*|GIT_SHA=v${PV}|'\
+       sed -e "s|GIT_SHA=.*|GIT_SHA=${GIT_COMMIT}|"\
                -i "${S}"/src/${EGO_PN}/build || die
        sed -e 's:\(for p in \)shellcheck :\1 :' \
                -e 's:^                 gofmt \\$:\\:' \
@@ -40,7 +41,7 @@ pkg_setup() {
 src_compile() {
        export GOPATH=${S}
        pushd src/${EGO_PN} || die
-       ./build || die
+       GO_BUILD_FLAGS=-v ./build || die
        popd || die
 }