From 804faa8eaa9edd64948be59aaaf661ebee07aef4 Mon Sep 17 00:00:00 2001 From: ace Date: Thu, 20 Dec 2018 21:17:29 +0300 Subject: [PATCH] update gopass to version 1.8.3 --- app-admin/gopass/gopass-1.8.3.ebuild | 69 ++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 app-admin/gopass/gopass-1.8.3.ebuild diff --git a/app-admin/gopass/gopass-1.8.3.ebuild b/app-admin/gopass/gopass-1.8.3.ebuild new file mode 100644 index 0000000..e211b7f --- /dev/null +++ b/app-admin/gopass/gopass-1.8.3.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +GOLANG_PKG_IMPORTPATH="github.com/${PN}pw" +GOLANG_PKG_ARCHIVEPREFIX="v" +GOLANG_PKG_LDFLAGS="-extldflags '-static' -X main.version=${PV}" +GOLANG_PKG_HAVE_TEST=1 + +# Fix for https://github.com/gopasspw/gopass/issues/956 +GOLANG_PKG_DEPENDENCIES=( + "github.com/golang/crypto:3d3f9f4 -> golang.org/x" + "github.com/golang/sys:66b7b13 -> golang.org/x" +) + +inherit golang-single bash-completion-r1 + +DESCRIPTION="The slightly more awesome standard unix password manager for teams" +HOMEPAGE="https://www.justwatch.com/gopass" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="bash-completion zsh-completion fish-completion dmenu" + +DEPEND="app-crypt/gpgme:1 + dev-vcs/git[threads,gpg,curl] + dmenu? ( x11-misc/dmenu x11-misc/xdotool )" +RDEPEND="${DEPEND} + zsh-completion? ( app-shells/zsh ) + fish-completion? ( app-shells/fish )" + +DOCS+=" docs/*" + +src_prepare() { + golang-single_src_prepare + rm -r vendor/golang.org/x/crypto || die + rm -r vendor/golang.org/x/sys || die +} + +src_install() { + golang-single_src_install + + # Install fish completion files + if use fish-completion; then + ${GOBIN}/gopass completion fish > "${T}"/${PN}.fish || die + insinto /usr/share/fish/functions + doins "${T}"/${PN}.fish + fi + + # Install bash completion files + if use bash-completion; then + ${GOBIN}/gopass completion bash > "${T}"/${PN} || die + dobashcomp "${T}"/${PN} + fi + + # Install zsh completion files + if use zsh-completion; then + ${GOBIN}/gopass completion zsh > "${T}"/${PN}.zsh || die + insinto /usr/share/zsh/site-functions + newins "${T}"/${PN}.zsh _${PN} + fi +} + +src_test() { + GOLANG_PKG_IS_MULTIPLE=1 + golang-single_src_test +}