From fe716cddcd815da99b9c992913459cace3de673e Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 24 Jan 2016 14:04:11 -0800 Subject: 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 745c5479a11..ab46d48dd0d 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 -- cgit v1.2.1