Gentoo Archives: gentoo-commits

From: Tim Harder <radhermit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/gopass/files/, app-admin/gopass/
Date: Tue, 05 Feb 2019 06:45:14
Message-Id: 1549325855.365e33ca24998415fd62bea5db87337d8cb7c69f.radhermit@gentoo
1 commit: 365e33ca24998415fd62bea5db87337d8cb7c69f
2 Author: Tim Harder <radhermit <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 31 19:49:19 2019 +0000
4 Commit: Tim Harder <radhermit <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 5 00:17:35 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=365e33ca
7
8 app-admin/gopass: version bump to 1.8.4
9
10 Signed-off-by: Tim Harder <radhermit <AT> gentoo.org>
11
12 app-admin/gopass/Manifest | 1 +
13 app-admin/gopass/files/gopass-1.8.4-xc-tests.patch | 28 ++++++++++++++
14 app-admin/gopass/gopass-1.8.4.ebuild | 45 ++++++++++++++++++++++
15 3 files changed, 74 insertions(+)
16
17 diff --git a/app-admin/gopass/Manifest b/app-admin/gopass/Manifest
18 index f87ee99549b..38d3a0f6d20 100644
19 --- a/app-admin/gopass/Manifest
20 +++ b/app-admin/gopass/Manifest
21 @@ -1 +1,2 @@
22 DIST gopass-1.8.3.tar.gz 6374004 BLAKE2B 1f3b66e8a631d94fbbb33347009a4614f180d7bd30f3d73e98f476fc81a3f5f0aef15c80705b1b4e871f333a3366cc051eb41785082bb90420a5d34f38e35e16 SHA512 bcf8e4cdb37355ae43d0d6d21e3248d3547fb3f1892bb2e8d5d8ddc47a784f75f4f404429733ac824bd66d719fe63fef7a1d58facde65a6d1820ecf14e7bd77e
23 +DIST gopass-1.8.4.tar.gz 6437993 BLAKE2B f01ded172ce4d39208325628e6cf9d001e6f97c23b604fd82b55c00996e3cea5f2597bab624aa333f88ac79f53ed34bc72c6b998fbded4346b36bf4131390693 SHA512 9884ddc9ec570261d4de2b873228092e0e503f47ffa62e034959a58aa475f16427944c8fe66f17f48e2f9f23ca6ea900950996b4ad7ba1e5b42dde31701839a9
24
25 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
26 new file mode 100644
27 index 00000000000..5780f17bf34
28 --- /dev/null
29 +++ b/app-admin/gopass/files/gopass-1.8.4-xc-tests.patch
30 @@ -0,0 +1,28 @@
31 +Skip xc cli tests, 1.8.3 failed when run with no arguments for these commands
32 +but 1.8.4 doesn't.
33 +
34 +--- gopass-1.8.4/src/github.com/gopasspw/gopass/commands_test.go
35 ++++ gopass-1.8.4/src/github.com/gopasspw/gopass/commands_test.go
36 +@@ -55,14 +55,14 @@
37 + ".templates.remove": {},
38 + ".templates.show": {},
39 + ".unclip": {},
40 +- ".xc.decrypt": {},
41 +- ".xc.encrypt": {},
42 +- ".xc.export": {},
43 +- ".xc.export-private-key": {},
44 +- ".xc.generate": {},
45 +- ".xc.import": {},
46 +- ".xc.import-private-key": {},
47 +- ".xc.remove": {},
48 ++ // ".xc.decrypt": {},
49 ++ // ".xc.encrypt": {},
50 ++ // ".xc.export": {},
51 ++ // ".xc.export-private-key": {},
52 ++ // ".xc.generate": {},
53 ++ // ".xc.import": {},
54 ++ // ".xc.import-private-key": {},
55 ++ // ".xc.remove": {},
56 + }
57 +
58 + func TestGetCommands(t *testing.T) {
59
60 diff --git a/app-admin/gopass/gopass-1.8.4.ebuild b/app-admin/gopass/gopass-1.8.4.ebuild
61 new file mode 100644
62 index 00000000000..1733d999175
63 --- /dev/null
64 +++ b/app-admin/gopass/gopass-1.8.4.ebuild
65 @@ -0,0 +1,45 @@
66 +# Copyright 1999-2019 Gentoo Authors
67 +# Distributed under the terms of the GNU General Public License v2
68 +
69 +EAPI=6
70 +EGO_PN="github.com/gopasspw/gopass"
71 +
72 +inherit golang-vcs-snapshot golang-build bash-completion-r1
73 +
74 +DESCRIPTION="a simple but powerful password manager for the terminal"
75 +HOMEPAGE="https://www.gopass.pw/"
76 +SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
77 +
78 +LICENSE="MIT"
79 +SLOT="0"
80 +KEYWORDS="~amd64 ~x86"
81 +IUSE=""
82 +
83 +DEPEND=">=dev-lang/go-1.11"
84 +RDEPEND="
85 + dev-vcs/git
86 + >=app-crypt/gnupg-2
87 +"
88 +
89 +PATCHES=( "${FILESDIR}"/${P}-xc-tests.patch )
90 +
91 +src_install() {
92 + dobin gopass
93 +
94 + local DOCS=( src/${EGO_PN}/{CHANGELOG,CONTRIBUTING}.md src/${EGO_PN}/docs/*.md )
95 + einstalldocs
96 +
97 + # install fish completion
98 + ./gopass completion fish > "${T}"/${PN}.fish || die
99 + insinto /usr/share/fish/vendor_completions.d
100 + doins "${T}"/${PN}.fish
101 +
102 + # install bash completion
103 + ./gopass completion bash > "${T}"/${PN} || die
104 + dobashcomp "${T}"/${PN}
105 +
106 + # install zsh completion
107 + ./gopass completion zsh > "${T}"/${PN}.zsh || die
108 + insinto /usr/share/zsh/site-functions
109 + newins "${T}"/${PN}.zsh _${PN}
110 +}