summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2016-01-24 14:04:11 -0800
committerZac Medico <zmedico@gentoo.org>2016-01-24 14:04:11 -0800
commitfe716cddcd815da99b9c992913459cace3de673e (patch)
tree89d9334e7a3ac0301c355a0580e2d25d73688806
parentapp-editors/mg: Version bump. (diff)
downloadgentoo-fe716cddcd815da99b9c992913459cace3de673e.tar.gz
gentoo-fe716cddcd815da99b9c992913459cace3de673e.tar.bz2
gentoo-fe716cddcd815da99b9c992913459cace3de673e.zip
app-admin/consul-template: add gopkg.in/yaml.v2 mapping to get_archive_go_package
Package-Manager: portage-2.2.27
-rw-r--r--app-admin/consul-template/consul-template-0.12.2.ebuild4
1 files changed, 1 insertions, 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 745c5479a114..ab46d48dd0dd 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