commit: b35c73404ef80bb5647f0e27cd0e6edc94ab2ab6 Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org> AuthorDate: Sun Apr 17 17:49:34 2016 +0000 Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org> CommitDate: Sun Apr 17 17:49:34 2016 +0000 URL: https://gitweb.gentoo.org/dev/mrueg.git/commit/?id=b35c7340
dev-go/gitlab-workhorse: Use golang eclasses Package-Manager: portage-2.2.28 dev-go/gitlab-workhorse/gitlab-workhorse-0.7.1.ebuild | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/dev-go/gitlab-workhorse/gitlab-workhorse-0.7.1.ebuild b/dev-go/gitlab-workhorse/gitlab-workhorse-0.7.1.ebuild index ccbf9cb..9e839ff 100644 --- a/dev-go/gitlab-workhorse/gitlab-workhorse-0.7.1.ebuild +++ b/dev-go/gitlab-workhorse/gitlab-workhorse-0.7.1.ebuild @@ -3,7 +3,10 @@ # $Id$ EAPI=5 -inherit golang-base vcs-snapshot + +EGO_PN="gitlab.com/gitlab-org/gitlab-workhorse/..." + +inherit golang-build golang-vcs-snapshot DESCRIPTION="A smart reverse proxy for GitLab written in Go" HOMEPAGE="https://gitlab.com/gitlab-org/gitlab-workhorse" @@ -17,10 +20,14 @@ IUSE="" RESTRICT="test" src_prepare() { - sed -i -e 's/VERSION=.*/VERSION=${PV}/' Makefile || die + sed -i -e 's/VERSION=.*/VERSION=${PV}/' -e "1iexport GOPATH?=" -e "s/PREFIX=/PREFIX?=/" src/${EGO_PN%/*}/Makefile || die +} + +src_compile() { + emake GOPATH="${WORKDIR}/${P}/_build:$(get_golibdir_gopath)" -C src/${EGO_PN%/*} } src_install() { - dodoc CHANGELOG README.md - emake install PREFIX="${D}"/usr + emake GOPATH="${WORKDIR}/${P}/_build:$(get_golibdir_gopath)" -C src/${EGO_PN%/*} DESTDIR="${D}" PREFIX=/usr install + dodoc src/${EGO_PN%/*}/CHANGELOG src/${EGO_PN%/*}/README.md }
