You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/www-plugins/passff/passff-1.3.ebuild

38 lines
831 B

# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit mozextension
DESCRIPTION="zx2c4 pass manager extension for Firefox"
HOMEPAGE="https://github.com/passff/passff"
SRC_URI="https://addons.mozilla.org/firefox/downloads/file/914592/passff-1.3-an+fx-linux.xpi"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="firefox firefox-bin"
RDEPEND="www-plugins/passff-host[firefox]"
REQUIRED_USE="|| ( firefox firefox-bin )"
S="${WORKDIR}"
src_unpack() {
xpi_unpack "passff-1.3-an+fx-linux.xpi"
}
src_install() {
local MOZILLA_FIVE_HOME
if use firefox; then
MOZILLA_FIVE_HOME="/usr/$(get_libdir)/firefox"
xpi_install "passff-1.3-an+fx-linux"
fi
if use firefox-bin; then
MOZILLA_FIVE_HOME="/opt/firefox"
xpi_install "passff-1.3-an+fx-linux"
fi
}