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: Sat, 13 Apr 2019 18:06:30
Message-Id: 1555178775.d7404f0ff7468a4f4b9b6bb03970988aa32e3794.mattst88@gentoo
1 commit: d7404f0ff7468a4f4b9b6bb03970988aa32e3794
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 13 17:05:33 2019 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 13 18:06:15 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7404f0f
7
8 www-plugins/browserpass: Version bump to 3.0.6
9
10 Closes: https://bugs.gentoo.org/683238
11 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
12
13 www-plugins/browserpass/Manifest | 1 +
14 www-plugins/browserpass/browserpass-3.0.6.ebuild | 53 ++++++++++++++++++++++++
15 2 files changed, 54 insertions(+)
16
17 diff --git a/www-plugins/browserpass/Manifest b/www-plugins/browserpass/Manifest
18 index 2e078eb8541..738dbbc0fdc 100644
19 --- a/www-plugins/browserpass/Manifest
20 +++ b/www-plugins/browserpass/Manifest
21 @@ -1,2 +1,3 @@
22 DIST browserpass-2.0.13.tar.gz 180424 BLAKE2B e2a1796edf3b037553cb9bd33f072cd25953d8262fa584c371c3df638c77fc352953c698963325a5cee9b29c81cc010ded72bb31abac9460603796f4a95267ed SHA512 8d28144aef061770f11d7ba288dfa82f8873a263b8ccff235e26e83c55700e5ed0210dec2c2fb45751f3ad15d1894503407ec901d272783b98c466d74d9156f0
23 DIST browserpass-2.0.22.tar.gz 49730 BLAKE2B a37d55a7b2a162a54931a3dde53b16e6c4d067f92dad129e92664dac726c3171938d5da94fe45c64227f4e4a860a12d0cdbb1aa147942f0199c2f4b9bed5fd7a SHA512 f3c19df72afd1387d7142b5e818dfe95a730c906277be0f16522986f387f659eb4a9decaf54eef5b6649ddc618d93b055c99b594fc4b949ce09a38cf2e6d9525
24 +DIST browserpass-3.0.6.tar.gz 17055 BLAKE2B aa2881631db8cc7f54f690cd56101c3e470528d990eed51b15aab6b834f63d4b9f576ee4e101dd61a6013ce25644058bfcc3673aaa037ce182c331754b27bddb SHA512 48cc93843afed5dc0df4f72956df44b325d6c772ad232d8faa2315c4d8b716eda9b030601e011b280445e0b01528f413e5b19818ad89cd7bcb06f4a1f4f9d3f4
25
26 diff --git a/www-plugins/browserpass/browserpass-3.0.6.ebuild b/www-plugins/browserpass/browserpass-3.0.6.ebuild
27 new file mode 100644
28 index 00000000000..9792a5fd8f3
29 --- /dev/null
30 +++ b/www-plugins/browserpass/browserpass-3.0.6.ebuild
31 @@ -0,0 +1,53 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +MY_PN=browserpass-native
38 +EGO_PN=github.com/browserpass/${MY_PN}
39 +
40 +if [[ ${PV} == 9999 ]]; then
41 + inherit golang-vcs
42 +else
43 + KEYWORDS="~amd64"
44 +# MY_P="${MY_PN}-${PV}"
45 +# S="${WORKDIR}/${MY_P}"
46 + SRC_URI="https://github.com/browserpass/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
47 + inherit golang-vcs-snapshot
48 +fi
49 +inherit golang-build
50 +
51 +DESCRIPTION="WebExtension host binary for pass, a UNIX password manager"
52 +HOMEPAGE="https://github.com/browserpass/browserpass-native"
53 +LICENSE="ISC"
54 +SLOT="0"
55 +RDEPEND="app-crypt/gnupg"
56 +DEPEND="${RDEPEND}
57 + dev-go/logrus:=
58 + dev-go/zglob:="
59 +
60 +src_compile() {
61 + golang-build_src_compile
62 +
63 + pushd "src/${EGO_PN}" >/dev/null || die
64 + sed -e 's|%%replace%%|'${EPREFIX}'/usr/libexec/browserpass-native|' \
65 + -i browser-files/firefox-host.json browser-files/chromium-host.json || die
66 + popd >/dev/null || die
67 +}
68 +
69 +src_install() {
70 + exeinto /usr/libexec
71 + doexe browserpass-native
72 +
73 + pushd "src/${EGO_PN}" >/dev/null || die
74 + insinto /usr/$(get_libdir)/mozilla/native-messaging-hosts
75 + newins browser-files/firefox-host.json com.github.browserpass.native.json
76 +
77 + insinto /etc/chromium/native-messaging-hosts
78 + newins browser-files/chromium-host.json com.github.browserpass.native.json
79 +
80 + insinto /etc/opt/chrome/native-messaging-hosts
81 + newins browser-files/chromium-host.json com.github.browserpass.native.json
82 +
83 + popd >/dev/null || die
84 +}