commit:     fc1d3e9fde0dee6a6bc37196621b4b1ebe0e4116
Author:     Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me>
AuthorDate: Fri Feb 15 16:15:36 2019 +0000
Commit:     Patrice Clement <monsieurp <AT> gentoo <DOT> org>
CommitDate: Sat Feb 16 22:29:18 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc1d3e9f

www-plugins/passff: fix installation method.

Closes: https://bugs.gentoo.org/677984
Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me>
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>

 www-plugins/passff/metadata.xml        |  4 ----
 www-plugins/passff/passff-1.6.3.ebuild | 21 ++++++---------------
 2 files changed, 6 insertions(+), 19 deletions(-)

diff --git a/www-plugins/passff/metadata.xml b/www-plugins/passff/metadata.xml
index 234e183d237..af94d61a342 100644
--- a/www-plugins/passff/metadata.xml
+++ b/www-plugins/passff/metadata.xml
@@ -8,10 +8,6 @@
        <email>proxy-ma...@gentoo.org</email>
        <name>Proxy Maintainers</name>
 </maintainer>
-<use>
-       <flag name="firefox">Install plugin for 
<pkg>www-client/firefox</pkg></flag>
-       <flag name="firefox-bin">Install plugin for 
<pkg>www-client/firefox-bin</pkg></flag>
-</use>
 <upstream>
        <remote-id type="github">passff/passff</remote-id>
 </upstream>

diff --git a/www-plugins/passff/passff-1.6.3.ebuild 
b/www-plugins/passff/passff-1.6.3.ebuild
index 884acd904a9..80c02c29368 100644
--- a/www-plugins/passff/passff-1.6.3.ebuild
+++ b/www-plugins/passff/passff-1.6.3.ebuild
@@ -3,8 +3,6 @@
 
 EAPI=7
 
-inherit mozextension
-
 MY_XPINAME="${P}-fx"
 
 DESCRIPTION="zx2c4 pass manager extension for Firefox"
@@ -14,26 +12,19 @@ 
SRC_URI="https://addons.mozilla.org/firefox/downloads/file/1681210/${MY_XPINAME}
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
-IUSE="firefox firefox-bin"
+IUSE=""
 
 RDEPEND="www-plugins/passff-host[firefox]"
-REQUIRED_USE="|| ( firefox firefox-bin )"
 
 S="${WORKDIR}"
 
 src_unpack() {
-       xpi_unpack "${MY_XPINAME}.xpi"
+       cp "${DISTDIR}/${MY_XPINAME}.xpi" . || die
 }
 
 src_install() {
-       local MOZILLA_FIVE_HOME
-       if use firefox; then
-               MOZILLA_FIVE_HOME="/usr/$(get_libdir)/firefox"
-               xpi_install "${MY_XPINAME}"
-       fi
-
-       if use firefox-bin; then
-               MOZILLA_FIVE_HOME="/opt/firefox"
-               xpi_install "${MY_XPINAME}"
-       fi
+       # See 
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Distribution_options/Sideloading_add-ons#Installation_using_the_standard_extension_folders
+       insinto 
"/usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/"
+       # pas...@invicem.pro is the extension id found in the manifest.json
+       newins "${MY_XPINAME}.xpi" "pas...@invicem.pro.xpi"
 }

Reply via email to