commit:     254eee998e0d6bb6e7891482ab8006414335de0c
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 25 16:51:11 2016 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Tue Oct 25 16:52:07 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=254eee99

app-admin/consul-template: skip useless files /usr/lib/go-gentoo

Anything that needs to build against consul-template should simply
download a consul-template tarball, since that includes the vendored
dependencies.

Package-Manager: portage-2.3.2

 .../consul-template/consul-template-0.16.0.ebuild    | 20 --------------------
 1 file changed, 20 deletions(-)

diff --git a/app-admin/consul-template/consul-template-0.16.0.ebuild 
b/app-admin/consul-template/consul-template-0.16.0.ebuild
index ff553ac..6018d6e 100644
--- a/app-admin/consul-template/consul-template-0.16.0.ebuild
+++ b/app-admin/consul-template/consul-template-0.16.0.ebuild
@@ -23,8 +23,6 @@ SRC_URI="https://${EGO_PN%/*}/archive/v${PV}.tar.gz -> 
${P}.tar.gz
        
https://github.com/mitchellh/iochan/archive/87b45ffd0e9581375c491fef3d32130bb15c5bd7.tar.gz
 -> iochan-87b45ffd0e9581375c491fef3d32130bb15c5bd7.tar.gz
 "
 
-STRIP_MASK="*.a"
-
 pkg_setup() {
        enewgroup ${PN}
        enewuser ${PN} -1 -1 -1 ${PN}
@@ -70,9 +68,6 @@ src_prepare() {
 src_compile() {
        export GOPATH=${S}
        go install -v -work -x ${EGO_BUILD_FLAGS} 
"github.com/mitchellh/gox/..." || die
-       go install -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}" || die
-       # the previous command returns 2 on success...
-       #[[ -d ${S}/pkg/$(go env GOOS)_$(go env GOARCH)/${EGO_PN%/*} ]] || die
        cd "${S}"/src/${EGO_PN%/*} || die
        PATH=${PATH}:${S}/bin \
        XC_ARCH=$(go env GOARCH) \
@@ -101,19 +96,4 @@ src_install() {
        keepdir /etc/${PN}.d
        insinto /etc/${PN}.d
        doins "${FILESDIR}/"*.json.example
-
-       rm -rf "${S}"/{src,pkg/$(go env GOOS)_$(go env 
GOARCH)}/${EGO_PN%/*}/vendor
-       find "${S}"/src/${EGO_PN%/*} -mindepth 1 -maxdepth 1 -type f -delete || 
die
-
-       while read -r -d '' x; do
-               x=${x#${S}/src}
-               [[ -d ${S}/pkg/$(go env GOOS)_$(go env GOARCH)/${x} ||
-                       -f ${S}/pkg/$(go env GOOS)_$(go env GOARCH)/${x}.a ]] 
&& continue
-               rm -rf "${S}"/src/${x}
-       done < <(find "${S}"/src/${EGO_PN%/*} -mindepth 1 -maxdepth 1 -type d 
-print0)
-       insopts -m0644 -p # preserve timestamps for bug 551486
-       insinto $(dirname "$(get_golibdir)/pkg/$(go env GOOS)_$(go env 
GOARCH)/${EGO_PN%/*}")
-       doins -r "${S}"/pkg/$(go env GOOS)_$(go env GOARCH)/${EGO_PN%/*}
-       insinto $(dirname "$(get_golibdir)/src/${EGO_PN%/*}")
-       doins -r "${S}"/src/${EGO_PN%/*}
 }

Reply via email to