summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gentoo.org>2019-12-01 13:27:17 -0500
committerMatt Turner <mattst88@gentoo.org>2019-12-01 14:07:25 -0500
commitfcf8d7aab3930f17f936cb8aff06379b24dd2e61 (patch)
tree3dbd39557ef3cdf371956121bd2bddd82ea58ccf /www-plugins/browserpass/browserpass-3.0.6-r1.ebuild
parentsci-visualization/gnuplot: Drop free-noncomm license. (diff)
downloadgentoo-fcf8d7aab3930f17f936cb8aff06379b24dd2e61.tar.gz
gentoo-fcf8d7aab3930f17f936cb8aff06379b24dd2e61.tar.bz2
gentoo-fcf8d7aab3930f17f936cb8aff06379b24dd2e61.zip
www-plugins/browserpass: Port to go-module
Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'www-plugins/browserpass/browserpass-3.0.6-r1.ebuild')
-rw-r--r--www-plugins/browserpass/browserpass-3.0.6-r1.ebuild47
1 files changed, 47 insertions, 0 deletions
diff --git a/www-plugins/browserpass/browserpass-3.0.6-r1.ebuild b/www-plugins/browserpass/browserpass-3.0.6-r1.ebuild
new file mode 100644
index 00000000000..e02b6f12b69
--- /dev/null
+++ b/www-plugins/browserpass/browserpass-3.0.6-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit go-module
+
+DESCRIPTION="WebExtension host binary for app-admin/pass, a UNIX password manager"
+HOMEPAGE="https://github.com/browserpass/browserpass-native"
+
+EGO_VENDOR=(
+ "github.com/mattn/go-zglob a8912a37f9e7" # MIT
+ "github.com/sirupsen/logrus v1.4.2" # MIT
+ "golang.org/x/sys 6d18c012aee9febd81bbf9806760c8c4480e870d github.com/golang/sys" # BSD
+)
+
+MY_PN=browserpass-native
+SRC_URI="https://github.com/browserpass/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz
+ $(go-module_vendor_uris)"
+
+LICENSE="BSD ISC MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+DEPEND=""
+RDEPEND="app-crypt/gnupg"
+
+S="${WORKDIR}"/${MY_PN}-${PV}
+
+src_compile() {
+ go build || die
+
+ sed -e 's|%%replace%%|'${EPREFIX}'/usr/libexec/browserpass-native|' \
+ -i browser-files/firefox-host.json browser-files/chromium-host.json || die
+}
+
+src_install() {
+ exeinto /usr/libexec
+ doexe browserpass-native
+
+ 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
+}