summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2019-01-31 13:49:19 -0600
committerTim Harder <radhermit@gentoo.org>2019-02-04 18:17:35 -0600
commit365e33ca24998415fd62bea5db87337d8cb7c69f (patch)
treef99f593c69938b420bf84714792283a6a705cc19
parentsci-electronics/quartus-prime-lite: don't reference ${DISTDIR} (diff)
downloadgentoo-365e33ca24998415fd62bea5db87337d8cb7c69f.tar.gz
gentoo-365e33ca24998415fd62bea5db87337d8cb7c69f.tar.bz2
gentoo-365e33ca24998415fd62bea5db87337d8cb7c69f.zip
app-admin/gopass: version bump to 1.8.4
Signed-off-by: Tim Harder <radhermit@gentoo.org>
-rw-r--r--app-admin/gopass/Manifest1
-rw-r--r--app-admin/gopass/files/gopass-1.8.4-xc-tests.patch28
-rw-r--r--app-admin/gopass/gopass-1.8.4.ebuild45
3 files changed, 74 insertions, 0 deletions
diff --git a/app-admin/gopass/Manifest b/app-admin/gopass/Manifest
index f87ee99549b5..38d3a0f6d20d 100644
--- a/app-admin/gopass/Manifest
+++ b/app-admin/gopass/Manifest
@@ -1 +1,2 @@
DIST gopass-1.8.3.tar.gz 6374004 BLAKE2B 1f3b66e8a631d94fbbb33347009a4614f180d7bd30f3d73e98f476fc81a3f5f0aef15c80705b1b4e871f333a3366cc051eb41785082bb90420a5d34f38e35e16 SHA512 bcf8e4cdb37355ae43d0d6d21e3248d3547fb3f1892bb2e8d5d8ddc47a784f75f4f404429733ac824bd66d719fe63fef7a1d58facde65a6d1820ecf14e7bd77e
+DIST gopass-1.8.4.tar.gz 6437993 BLAKE2B f01ded172ce4d39208325628e6cf9d001e6f97c23b604fd82b55c00996e3cea5f2597bab624aa333f88ac79f53ed34bc72c6b998fbded4346b36bf4131390693 SHA512 9884ddc9ec570261d4de2b873228092e0e503f47ffa62e034959a58aa475f16427944c8fe66f17f48e2f9f23ca6ea900950996b4ad7ba1e5b42dde31701839a9
diff --git a/app-admin/gopass/files/gopass-1.8.4-xc-tests.patch b/app-admin/gopass/files/gopass-1.8.4-xc-tests.patch
new file mode 100644
index 000000000000..5780f17bf347
--- /dev/null
+++ b/app-admin/gopass/files/gopass-1.8.4-xc-tests.patch
@@ -0,0 +1,28 @@
+Skip xc cli tests, 1.8.3 failed when run with no arguments for these commands
+but 1.8.4 doesn't.
+
+--- gopass-1.8.4/src/github.com/gopasspw/gopass/commands_test.go
++++ gopass-1.8.4/src/github.com/gopasspw/gopass/commands_test.go
+@@ -55,14 +55,14 @@
+ ".templates.remove": {},
+ ".templates.show": {},
+ ".unclip": {},
+- ".xc.decrypt": {},
+- ".xc.encrypt": {},
+- ".xc.export": {},
+- ".xc.export-private-key": {},
+- ".xc.generate": {},
+- ".xc.import": {},
+- ".xc.import-private-key": {},
+- ".xc.remove": {},
++ // ".xc.decrypt": {},
++ // ".xc.encrypt": {},
++ // ".xc.export": {},
++ // ".xc.export-private-key": {},
++ // ".xc.generate": {},
++ // ".xc.import": {},
++ // ".xc.import-private-key": {},
++ // ".xc.remove": {},
+ }
+
+ func TestGetCommands(t *testing.T) {
diff --git a/app-admin/gopass/gopass-1.8.4.ebuild b/app-admin/gopass/gopass-1.8.4.ebuild
new file mode 100644
index 000000000000..1733d9991751
--- /dev/null
+++ b/app-admin/gopass/gopass-1.8.4.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+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"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=">=dev-lang/go-1.11"
+RDEPEND="
+ dev-vcs/git
+ >=app-crypt/gnupg-2
+"
+
+PATCHES=( "${FILESDIR}"/${P}-xc-tests.patch )
+
+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}
+}