commit: fe716cddcd815da99b9c992913459cace3de673e
Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 24 22:04:11 2016 +0000
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Sun Jan 24 22:04:11 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe716cdd
app-admin/consul-template: add gopkg.in/yaml.v2 mapping to
get_archive_go_package
Package-Manager: portage-2.2.27
app-admin/consul-template/consul-template-0.12.2.ebuild | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/app-admin/consul-template/consul-template-0.12.2.ebuild
b/app-admin/consul-template/consul-template-0.12.2.ebuild
index 745c547..ab46d48 100644
--- a/app-admin/consul-template/consul-template-0.12.2.ebuild
+++ b/app-admin/consul-template/consul-template-0.12.2.ebuild
@@ -63,6 +63,7 @@ get_archive_go_package() {
local archive=${1} uri x
case ${archive} in
go-sys-*) echo "sys-* golang.org/x/sys"; return;;
+ go-yaml-v2-*) echo "yaml-* gopkg.in/yaml.v2"; return;;
esac
for x in ${SRC_URI}; do
if [[ ${x} == http* ]]; then
@@ -100,9 +101,6 @@ src_prepare() {
-e 's:-ldflags.*:\\:' \
-i scripts/build.sh || die
- sed -e 's:gopkg.in/yaml.v2:github.com/go-yaml/yaml:' \
- -i template_functions.go || die
-
# Create a writable GOROOT in order to avoid sandbox violations.
export GOROOT="${WORKDIR}/goroot"
cp -sR "${EPREFIX}"/usr/lib/go "${GOROOT}" || die