dev-vcs/gitlab-workhorse:

added ebuild for gitlab-workhorse-0.7.11

Package-Manager: portage-2.2.28
This commit is contained in:
Manuel Friedli 2016-08-29 08:43:21 +02:00
parent 30ad3b4b86
commit 266e472da1
4 changed files with 61 additions and 1 deletions

View file

@ -0,0 +1,12 @@
diff --git a/Makefile b/Makefile
index 5ac82e5..63a967b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
-PREFIX=/usr/local
-VERSION=$(shell git describe)-$(shell date -u +%Y%m%d.%H%M%S)
+PREFIX=${DESTDIR}/usr
+VERSION=v0.7.11-$(shell date -u +%Y%m%d.%H%M%S)
BUILD_DIR = $(shell pwd)
export GOPATH=${BUILD_DIR}/_build
GOBUILD=go build -ldflags "-X main.Version=${VERSION}"