diff options
author | Matt Turner <mattst88@gentoo.org> | 2019-12-01 13:27:17 -0500 |
---|---|---|
committer | Matt Turner <mattst88@gentoo.org> | 2019-12-01 14:07:25 -0500 |
commit | fcf8d7aab3930f17f936cb8aff06379b24dd2e61 (patch) | |
tree | 3dbd39557ef3cdf371956121bd2bddd82ea58ccf /www-plugins/browserpass | |
parent | sci-visualization/gnuplot: Drop free-noncomm license. (diff) | |
download | gentoo-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')
-rw-r--r-- | www-plugins/browserpass/Manifest | 3 | ||||
-rw-r--r-- | www-plugins/browserpass/browserpass-3.0.6-r1.ebuild | 47 |
2 files changed, 50 insertions, 0 deletions
diff --git a/www-plugins/browserpass/Manifest b/www-plugins/browserpass/Manifest index 0ecc5f7ed2eb..fac189e8da72 100644 --- a/www-plugins/browserpass/Manifest +++ b/www-plugins/browserpass/Manifest @@ -1 +1,4 @@ DIST browserpass-3.0.6.tar.gz 17055 BLAKE2B aa2881631db8cc7f54f690cd56101c3e470528d990eed51b15aab6b834f63d4b9f576ee4e101dd61a6013ce25644058bfcc3673aaa037ce182c331754b27bddb SHA512 48cc93843afed5dc0df4f72956df44b325d6c772ad232d8faa2315c4d8b716eda9b030601e011b280445e0b01528f413e5b19818ad89cd7bcb06f4a1f4f9d3f4 +DIST github.com-golang-sys-6d18c012aee9febd81bbf9806760c8c4480e870d.tar.gz 1532865 BLAKE2B 35294c250562b5338ab9367cdd1f1b536e83914b915981cf503997456be45efcc1567ac0309d4b41a5918f0fb3735e256a5496056db618b67745ffc8423383fe SHA512 18a6556545687f54b637c4631189419272c3664f48c283c8cb011aed36fad8ab297b5301b0ee268e5841781b0e6d01f2296e9746a7627196633a69b15f96b7ea +DIST github.com-mattn-go-zglob-a8912a37f9e7.tar.gz 8030 BLAKE2B 2c7719a15f598b06d479bf35b1154b0685ee94d7c94bae9a3e3ae63b0706b63c885cd226e2749402a92d5937a5d8b03aa94ccf14fad6c8adbaf438ed131f04f4 SHA512 ebcd8096a15082f454be3d6349e1ae092696db52b843ca2cad84fb4ba8f5f9411db7b9bf40e387238e30c33495062ee711de4249e56889fa059c9c6ccd1600f0 +DIST github.com-sirupsen-logrus-v1.4.2.tar.gz 41373 BLAKE2B 3675dd82fd9c174fddf93eea87f3ca2c2671d9719ba148b03136c35ce6a3ce95866c57cb706a641a14522a522606dc9ea9ec9f0a6c7da6f8cf18f46b9f4bd3ee SHA512 c29689e5ea0ff919afc6fe1c492898d8b898e6831c442d3fc45c29508bdfda08604b1ea09d3b17db401bddca69fd5f8f744610075ee3c0577df6a537e0980a13 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 000000000000..e02b6f12b69b --- /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 +} |