summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gentoo.org>2019-04-13 10:05:33 -0700
committerMatt Turner <mattst88@gentoo.org>2019-04-13 11:06:15 -0700
commitd7404f0ff7468a4f4b9b6bb03970988aa32e3794 (patch)
treef31276dd6fa8cf105544881ffa4d99b3f32e01f4 /www-plugins
parentdev-go/logrus: New package (diff)
downloadgentoo-d7404f0ff7468a4f4b9b6bb03970988aa32e3794.tar.gz
gentoo-d7404f0ff7468a4f4b9b6bb03970988aa32e3794.tar.bz2
gentoo-d7404f0ff7468a4f4b9b6bb03970988aa32e3794.zip
www-plugins/browserpass: Version bump to 3.0.6
Closes: https://bugs.gentoo.org/683238 Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'www-plugins')
-rw-r--r--www-plugins/browserpass/Manifest1
-rw-r--r--www-plugins/browserpass/browserpass-3.0.6.ebuild53
2 files changed, 54 insertions, 0 deletions
diff --git a/www-plugins/browserpass/Manifest b/www-plugins/browserpass/Manifest
index 2e078eb8541..738dbbc0fdc 100644
--- a/www-plugins/browserpass/Manifest
+++ b/www-plugins/browserpass/Manifest
@@ -1,2 +1,3 @@
DIST browserpass-2.0.13.tar.gz 180424 BLAKE2B e2a1796edf3b037553cb9bd33f072cd25953d8262fa584c371c3df638c77fc352953c698963325a5cee9b29c81cc010ded72bb31abac9460603796f4a95267ed SHA512 8d28144aef061770f11d7ba288dfa82f8873a263b8ccff235e26e83c55700e5ed0210dec2c2fb45751f3ad15d1894503407ec901d272783b98c466d74d9156f0
DIST browserpass-2.0.22.tar.gz 49730 BLAKE2B a37d55a7b2a162a54931a3dde53b16e6c4d067f92dad129e92664dac726c3171938d5da94fe45c64227f4e4a860a12d0cdbb1aa147942f0199c2f4b9bed5fd7a SHA512 f3c19df72afd1387d7142b5e818dfe95a730c906277be0f16522986f387f659eb4a9decaf54eef5b6649ddc618d93b055c99b594fc4b949ce09a38cf2e6d9525
+DIST browserpass-3.0.6.tar.gz 17055 BLAKE2B aa2881631db8cc7f54f690cd56101c3e470528d990eed51b15aab6b834f63d4b9f576ee4e101dd61a6013ce25644058bfcc3673aaa037ce182c331754b27bddb SHA512 48cc93843afed5dc0df4f72956df44b325d6c772ad232d8faa2315c4d8b716eda9b030601e011b280445e0b01528f413e5b19818ad89cd7bcb06f4a1f4f9d3f4
diff --git a/www-plugins/browserpass/browserpass-3.0.6.ebuild b/www-plugins/browserpass/browserpass-3.0.6.ebuild
new file mode 100644
index 00000000000..9792a5fd8f3
--- /dev/null
+++ b/www-plugins/browserpass/browserpass-3.0.6.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+MY_PN=browserpass-native
+EGO_PN=github.com/browserpass/${MY_PN}
+
+if [[ ${PV} == 9999 ]]; then
+ inherit golang-vcs
+else
+ KEYWORDS="~amd64"
+# MY_P="${MY_PN}-${PV}"
+# S="${WORKDIR}/${MY_P}"
+ SRC_URI="https://github.com/browserpass/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ inherit golang-vcs-snapshot
+fi
+inherit golang-build
+
+DESCRIPTION="WebExtension host binary for pass, a UNIX password manager"
+HOMEPAGE="https://github.com/browserpass/browserpass-native"
+LICENSE="ISC"
+SLOT="0"
+RDEPEND="app-crypt/gnupg"
+DEPEND="${RDEPEND}
+ dev-go/logrus:=
+ dev-go/zglob:="
+
+src_compile() {
+ golang-build_src_compile
+
+ pushd "src/${EGO_PN}" >/dev/null || die
+ sed -e 's|%%replace%%|'${EPREFIX}'/usr/libexec/browserpass-native|' \
+ -i browser-files/firefox-host.json browser-files/chromium-host.json || die
+ popd >/dev/null || die
+}
+
+src_install() {
+ exeinto /usr/libexec
+ doexe browserpass-native
+
+ pushd "src/${EGO_PN}" >/dev/null || die
+ insinto /usr/$(get_libdir)/mozilla/native-messaging-hosts
+ newins browser-files/firefox-host.json com.github.browserpass.native.json
+
+ insinto /etc/chromium/native-messaging-hosts
+ newins browser-files/chromium-host.json com.github.browserpass.native.json
+
+ insinto /etc/opt/chrome/native-messaging-hosts
+ newins browser-files/chromium-host.json com.github.browserpass.native.json
+
+ popd >/dev/null || die
+}