1 |
commit: 2115146cc1d3ec5536d4fd4130ab50c995a54405 |
2 |
Author: Aric Belsito <lluixhi <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Mar 19 18:53:17 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Mar 30 18:08:11 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2115146c |
7 |
|
8 |
www-plugins/browserpass: version bump to 2.0.13 |
9 |
|
10 |
Move binary to libexec |
11 |
|
12 |
Closes: https://bugs.gentoo.org/650954 |
13 |
Closes: https://github.com/gentoo/gentoo/pull/7513 |
14 |
|
15 |
www-plugins/browserpass/Manifest | 1 + |
16 |
www-plugins/browserpass/browserpass-2.0.13.ebuild | 50 +++++++++++++++++++++++ |
17 |
2 files changed, 51 insertions(+) |
18 |
|
19 |
diff --git a/www-plugins/browserpass/Manifest b/www-plugins/browserpass/Manifest |
20 |
index 7bb299c0901..ddb9a53f288 100644 |
21 |
--- a/www-plugins/browserpass/Manifest |
22 |
+++ b/www-plugins/browserpass/Manifest |
23 |
@@ -1 +1,2 @@ |
24 |
DIST browserpass-2.0.11.tar.gz 176787 BLAKE2B 271c3cf340ecc78c3358f21bc0e6bbcaf857b4ca39c7b0dcf58b1fcef62ea5df4f48adb4ac0bf7c884853f359fdb9ca00300e2f99efa48a1fdc0ba99ce7bd172 SHA512 baa362b63c1743273f56cb7576f96c29ca365fb217d3016824cdb1ce215e36b7f98fc7c3340a5a34853bde7c25283c84ceda570d149a8119bc54be2f0194034b |
25 |
+DIST browserpass-2.0.13.tar.gz 180424 BLAKE2B e2a1796edf3b037553cb9bd33f072cd25953d8262fa584c371c3df638c77fc352953c698963325a5cee9b29c81cc010ded72bb31abac9460603796f4a95267ed SHA512 8d28144aef061770f11d7ba288dfa82f8873a263b8ccff235e26e83c55700e5ed0210dec2c2fb45751f3ad15d1894503407ec901d272783b98c466d74d9156f0 |
26 |
|
27 |
diff --git a/www-plugins/browserpass/browserpass-2.0.13.ebuild b/www-plugins/browserpass/browserpass-2.0.13.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..773137f9668 |
30 |
--- /dev/null |
31 |
+++ b/www-plugins/browserpass/browserpass-2.0.13.ebuild |
32 |
@@ -0,0 +1,50 @@ |
33 |
+# Copyright 1999-2018 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=6 |
37 |
+EGO_PN=github.com/dannyvankooten/browserpass |
38 |
+ |
39 |
+if [[ ${PV} == 9999 ]]; then |
40 |
+ inherit golang-vcs |
41 |
+else |
42 |
+ KEYWORDS="~amd64" |
43 |
+ SRC_URI="https://${EGO_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
44 |
+ inherit golang-vcs-snapshot |
45 |
+fi |
46 |
+inherit golang-build |
47 |
+ |
48 |
+DESCRIPTION="WebExtension host binary for pass, a UNIX password manager" |
49 |
+HOMEPAGE="https://github.com/dannyvankooten/browserpass" |
50 |
+LICENSE="MIT" |
51 |
+SLOT="0" |
52 |
+RDEPEND="app-crypt/gnupg" |
53 |
+DEPEND="${RDEPEND} |
54 |
+ dev-go/fuzzy:= |
55 |
+ dev-go/twofactor:= |
56 |
+ dev-go/zglob:=" |
57 |
+ |
58 |
+DOCS=( CONTRIBUTING.md README.md ) |
59 |
+ |
60 |
+src_compile() { |
61 |
+ EGO_PN="${EGO_PN}/cmd/browserpass" golang-build_src_compile |
62 |
+ |
63 |
+ pushd "src/${EGO_PN}" >/dev/null || die |
64 |
+ sed -e 's|%%replace%%|'${EPREFIX}'/usr/libexec/browserpass|' \ |
65 |
+ -i firefox/host.json chrome/host.json || die |
66 |
+ popd >/dev/null || die |
67 |
+} |
68 |
+ |
69 |
+src_install() { |
70 |
+ exeinto /usr/libexec |
71 |
+ doexe browserpass |
72 |
+ |
73 |
+ pushd "src/${EGO_PN}" >/dev/null || die |
74 |
+ insinto /usr/$(get_libdir)/mozilla/native-messaging-hosts |
75 |
+ newins firefox/host.json com.dannyvankooten.browserpass.json |
76 |
+ |
77 |
+ insinto /etc/chromium/native-messaging-hosts |
78 |
+ newins chrome/host.json com.dannyvankooten.browserpass.json |
79 |
+ |
80 |
+ einstalldocs |
81 |
+ popd >/dev/null || die |
82 |
+} |