diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-02-11 16:09:52 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-02-11 16:09:52 +0000 |
commit | f78108598211053d41752a83e0345441bb9014ae (patch) | |
tree | dd2fc7ae0a1aea7bda4942ab0c453d1e55284b37 /www-plugins/browserpass/browserpass-2.0.11.ebuild | |
parent | dc45b83b28fb83e9659492066e347b8dc60bc9e3 (diff) |
gentoo resync : 11.02.2018
Diffstat (limited to 'www-plugins/browserpass/browserpass-2.0.11.ebuild')
-rw-r--r-- | www-plugins/browserpass/browserpass-2.0.11.ebuild | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/www-plugins/browserpass/browserpass-2.0.11.ebuild b/www-plugins/browserpass/browserpass-2.0.11.ebuild new file mode 100644 index 000000000000..6abafb5c2130 --- /dev/null +++ b/www-plugins/browserpass/browserpass-2.0.11.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +EGO_PN=github.com/dannyvankooten/browserpass + +if [[ ${PV} == 9999 ]]; then + inherit golang-vcs +else + KEYWORDS="~amd64" + SRC_URI="https://${EGO_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/dannyvankooten/browserpass" +LICENSE="MIT" +SLOT="0" +RDEPEND="app-crypt/gnupg" +DEPEND="${RDEPEND} + dev-go/twofactor:= + dev-go/zglob:=" + +DOCS=( CONTRIBUTING.md README.md ) + +src_compile() { + EGO_PN="${EGO_PN}/cmd/browserpass" golang-build_src_compile + + pushd "src/${EGO_PN}" >/dev/null || die + sed -e 's|%%replace%%|'${EPREFIX}'/usr/bin/browserpass|' \ + -i firefox/host.json chrome/host.json || die + popd >/dev/null || die +} + +src_install() { + dobin browserpass + + pushd "src/${EGO_PN}" >/dev/null || die + insinto /usr/$(get_libdir)/mozilla/native-messaging-hosts + newins firefox/host.json com.dannyvankooten.browserpass.json + + insinto /etc/chromium/native-messaging-hosts + newins chrome/host.json com.dannyvankooten.browserpass.json + + einstalldocs + popd >/dev/null || die +} |