Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-plugins/browserpass/
Date: Mon, 24 Feb 2020 16:30:29
Message-Id: 1582561809.d72f0a3b9556667c1369a29003c1231993fe9192.mattst88@gentoo
1 commit: d72f0a3b9556667c1369a29003c1231993fe9192
2 Author: Lucian Poston <lucianposton <AT> pm <DOT> me>
3 AuthorDate: Wed Feb 12 17:45:45 2020 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 24 16:30:09 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d72f0a3b
7
8 www-plugins/browserpass: Install to both firefox dirs
9
10 Firefox's directory for native messaging hosts is a compile-time
11 variable. www-client/firefox-bin is set to a directory under /usr/lib/,
12 while www-client/firefox varies. This -r2 bump will install to both
13 locations so that both firefox and firefox-bin are able to locate the
14 plugin.
15
16 Bug: https://bugs.gentoo.org/687746
17 Closes: https://github.com/gentoo/gentoo/pull/14643
18 Signed-off-by: Lucian Poston <lucianposton <AT> pm.me>
19 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
20
21 .../browserpass/browserpass-3.0.6-r2.ebuild | 50 ++++++++++++++++++++++
22 1 file changed, 50 insertions(+)
23
24 diff --git a/www-plugins/browserpass/browserpass-3.0.6-r2.ebuild b/www-plugins/browserpass/browserpass-3.0.6-r2.ebuild
25 new file mode 100644
26 index 00000000000..a931577f7ad
27 --- /dev/null
28 +++ b/www-plugins/browserpass/browserpass-3.0.6-r2.ebuild
29 @@ -0,0 +1,50 @@
30 +# Copyright 1999-2020 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +inherit go-module
35 +
36 +DESCRIPTION="WebExtension host binary for app-admin/pass, a UNIX password manager"
37 +HOMEPAGE="https://github.com/browserpass/browserpass-native"
38 +
39 +EGO_VENDOR=(
40 + "github.com/mattn/go-zglob a8912a37f9e7" # MIT
41 + "github.com/sirupsen/logrus v1.4.2" # MIT
42 + "golang.org/x/sys 6d18c012aee9febd81bbf9806760c8c4480e870d github.com/golang/sys" # BSD
43 +)
44 +
45 +MY_PN=browserpass-native
46 +SRC_URI="https://github.com/browserpass/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
47 + $(go-module_vendor_uris)"
48 +
49 +LICENSE="BSD ISC MIT"
50 +SLOT="0"
51 +KEYWORDS="~amd64"
52 +DEPEND=""
53 +RDEPEND="app-crypt/gnupg"
54 +
55 +S="${WORKDIR}"/${MY_PN}-${PV}
56 +
57 +src_compile() {
58 + go build || die
59 +
60 + sed -e 's|%%replace%%|'${EPREFIX}'/usr/libexec/browserpass-native|' \
61 + -i browser-files/firefox-host.json browser-files/chromium-host.json || die
62 +}
63 +
64 +src_install() {
65 + exeinto /usr/libexec
66 + doexe browserpass-native
67 +
68 + insinto /usr/lib/mozilla/native-messaging-hosts
69 + newins browser-files/firefox-host.json com.github.browserpass.native.json
70 +
71 + insinto /usr/lib64/mozilla/native-messaging-hosts
72 + newins browser-files/firefox-host.json com.github.browserpass.native.json
73 +
74 + insinto /etc/chromium/native-messaging-hosts
75 + newins browser-files/chromium-host.json com.github.browserpass.native.json
76 +
77 + insinto /etc/opt/chrome/native-messaging-hosts
78 + newins browser-files/chromium-host.json com.github.browserpass.native.json
79 +}