app-admin/gopass: version bump to 1.8.4
authorTim Harder <radhermit@gentoo.org>
Thu, 31 Jan 2019 19:49:19 +0000 (13:49 -0600)
committerTim Harder <radhermit@gentoo.org>
Tue, 5 Feb 2019 00:17:35 +0000 (18:17 -0600)
Signed-off-by: Tim Harder <radhermit@gentoo.org>
app-admin/gopass/Manifest
app-admin/gopass/files/gopass-1.8.4-xc-tests.patch [new file with mode: 0644]
app-admin/gopass/gopass-1.8.4.ebuild [new file with mode: 0644]

index f87ee99549b56c816c5c7b665d6770c410c13806..38d3a0f6d20dd6c05c4cb64684f45aea94c286fa 100644 (file)
@@ -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 (file)
index 0000000..5780f17
--- /dev/null
@@ -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 (file)
index 0000000..1733d99
--- /dev/null
@@ -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}
+}