summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2019-11-18 15:18:52 -0700
committerTim Harder <radhermit@gentoo.org>2019-11-18 15:21:42 -0700
commit6cc01a165443191cf42c5a50698eba24129a68dd (patch)
tree12286f516106a57808b59353317ce42008a17ac0 /app-admin
parentapp-crypt/ekeyd: remove unused patch/files (diff)
downloadgentoo-6cc01a165443191cf42c5a50698eba24129a68dd.tar.gz
gentoo-6cc01a165443191cf42c5a50698eba24129a68dd.tar.bz2
gentoo-6cc01a165443191cf42c5a50698eba24129a68dd.zip
app-admin/gopass: update to EAPI 7 and update LICENSE
Closes: https://bugs.gentoo.org/694706 Signed-off-by: Tim Harder <radhermit@gentoo.org>
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/gopass/gopass-1.8.6-r1.ebuild43
1 files changed, 43 insertions, 0 deletions
diff --git a/app-admin/gopass/gopass-1.8.6-r1.ebuild b/app-admin/gopass/gopass-1.8.6-r1.ebuild
new file mode 100644
index 000000000000..46c28ea1f6fa
--- /dev/null
+++ b/app-admin/gopass/gopass-1.8.6-r1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+EGO_PN="github.com/gopasspw/gopass"
+
+inherit golang-vcs-snapshot golang-build bash-completion-r1
+
+DESCRIPTION="a simple but powerful password manager for the terminal"
+HOMEPAGE="https://www.gopass.pw/"
+SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT Apache-2.0 BSD MPL-2.0 BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=">=dev-lang/go-1.11"
+RDEPEND="
+ dev-vcs/git
+ >=app-crypt/gnupg-2
+"
+
+src_install() {
+ dobin gopass
+
+ local DOCS=( src/${EGO_PN}/{CHANGELOG,CONTRIBUTING}.md src/${EGO_PN}/docs/*.md )
+ einstalldocs
+
+ # install fish completion
+ ./gopass completion fish > "${T}"/${PN}.fish || die
+ insinto /usr/share/fish/vendor_completions.d
+ doins "${T}"/${PN}.fish
+
+ # install bash completion
+ ./gopass completion bash > "${T}"/${PN} || die
+ dobashcomp "${T}"/${PN}
+
+ # install zsh completion
+ ./gopass completion zsh > "${T}"/${PN}.zsh || die
+ insinto /usr/share/zsh/site-functions
+ newins "${T}"/${PN}.zsh _${PN}
+}