diff options
author | Zac Medico <zmedico@gentoo.org> | 2018-11-03 16:29:03 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2018-11-03 19:52:28 -0700 |
commit | 29fb9709d5c0bdb9faca681660ff3d6ecaa6cf65 (patch) | |
tree | 1fd26a379974d0cdeb90a43afc8eb81449c5dac9 /dev-go/go-tools/go-tools-9999.ebuild | |
parent | app-arch/cabextract: add live ebuild (diff) | |
download | gentoo-29fb9709d5c0bdb9faca681660ff3d6ecaa6cf65.tar.gz gentoo-29fb9709d5c0bdb9faca681660ff3d6ecaa6cf65.tar.bz2 gentoo-29fb9709d5c0bdb9faca681660ff3d6ecaa6cf65.zip |
dev-go/go-tools: use static favicon SRC_URI (bug 670178)
Suggested-by: Anton Bolshakov <blshkv@pentoo.ch>
Closes: https://bugs.gentoo.org/670178
Signed-off-by: Zac Medico <zmedico@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'dev-go/go-tools/go-tools-9999.ebuild')
-rw-r--r-- | dev-go/go-tools/go-tools-9999.ebuild | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/dev-go/go-tools/go-tools-9999.ebuild b/dev-go/go-tools/go-tools-9999.ebuild index 10b4b86e3238..fb8bd018f99d 100644 --- a/dev-go/go-tools/go-tools-9999.ebuild +++ b/dev-go/go-tools/go-tools-9999.ebuild @@ -22,9 +22,11 @@ inherit golang-build DESCRIPTION="Go Tools" HOMEPAGE="https://godoc.org/golang.org/x/tools" +GO_FAVICON="go-favicon-20181103162401.ico" SRC_URI="${ARCHIVE_URI} https://github.com/golang/net/archive/${GO_NET_COMMIT}.tar.gz -> github.com-golang-net-${GO_NET_COMMIT}.tar.gz - http://golang.org/favicon.ico -> go-favicon.ico" + mirror://gentoo/${GO_FAVICON} + https://dev.gentoo.org/~zmedico/distfiles/${GO_FAVICON}" LICENSE="BSD" SLOT="0/${PVR}" @@ -38,7 +40,7 @@ src_unpack() { src_prepare() { default # Add favicon to the godoc web interface (bug 551030) - cp "${DISTDIR}"/go-favicon.ico "src/${EGO_SRC}/godoc/static/favicon.ico" || + cp "${DISTDIR}"/${GO_FAVICON} "src/${EGO_SRC}/godoc/static/favicon.ico" || die sed -e 's:"example.html",:\0\n\t"favicon.ico",:' \ -i src/${EGO_SRC}/godoc/static/gen.go || die |