Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-plugins/passff/
Date: Sat, 16 Feb 2019 22:30:21
Message-Id: 1550356158.fc1d3e9fde0dee6a6bc37196621b4b1ebe0e4116.monsieurp@gentoo
1 commit: fc1d3e9fde0dee6a6bc37196621b4b1ebe0e4116
2 Author: Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me>
3 AuthorDate: Fri Feb 15 16:15:36 2019 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Sat Feb 16 22:29:18 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fc1d3e9f
7
8 www-plugins/passff: fix installation method.
9
10 Closes: https://bugs.gentoo.org/677984
11 Signed-off-by: Haelwenn (lanodan) Monnier <contact <AT> hacktivis.me>
12 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
13
14 www-plugins/passff/metadata.xml | 4 ----
15 www-plugins/passff/passff-1.6.3.ebuild | 21 ++++++---------------
16 2 files changed, 6 insertions(+), 19 deletions(-)
17
18 diff --git a/www-plugins/passff/metadata.xml b/www-plugins/passff/metadata.xml
19 index 234e183d237..af94d61a342 100644
20 --- a/www-plugins/passff/metadata.xml
21 +++ b/www-plugins/passff/metadata.xml
22 @@ -8,10 +8,6 @@
23 <email>proxy-maint@g.o</email>
24 <name>Proxy Maintainers</name>
25 </maintainer>
26 -<use>
27 - <flag name="firefox">Install plugin for <pkg>www-client/firefox</pkg></flag>
28 - <flag name="firefox-bin">Install plugin for <pkg>www-client/firefox-bin</pkg></flag>
29 -</use>
30 <upstream>
31 <remote-id type="github">passff/passff</remote-id>
32 </upstream>
33
34 diff --git a/www-plugins/passff/passff-1.6.3.ebuild b/www-plugins/passff/passff-1.6.3.ebuild
35 index 884acd904a9..80c02c29368 100644
36 --- a/www-plugins/passff/passff-1.6.3.ebuild
37 +++ b/www-plugins/passff/passff-1.6.3.ebuild
38 @@ -3,8 +3,6 @@
39
40 EAPI=7
41
42 -inherit mozextension
43 -
44 MY_XPINAME="${P}-fx"
45
46 DESCRIPTION="zx2c4 pass manager extension for Firefox"
47 @@ -14,26 +12,19 @@ SRC_URI="https://addons.mozilla.org/firefox/downloads/file/1681210/${MY_XPINAME}
48 LICENSE="GPL-2"
49 SLOT="0"
50 KEYWORDS="~amd64 ~x86"
51 -IUSE="firefox firefox-bin"
52 +IUSE=""
53
54 RDEPEND="www-plugins/passff-host[firefox]"
55 -REQUIRED_USE="|| ( firefox firefox-bin )"
56
57 S="${WORKDIR}"
58
59 src_unpack() {
60 - xpi_unpack "${MY_XPINAME}.xpi"
61 + cp "${DISTDIR}/${MY_XPINAME}.xpi" . || die
62 }
63
64 src_install() {
65 - local MOZILLA_FIVE_HOME
66 - if use firefox; then
67 - MOZILLA_FIVE_HOME="/usr/$(get_libdir)/firefox"
68 - xpi_install "${MY_XPINAME}"
69 - fi
70 -
71 - if use firefox-bin; then
72 - MOZILLA_FIVE_HOME="/opt/firefox"
73 - xpi_install "${MY_XPINAME}"
74 - fi
75 + # See https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Distribution_options/Sideloading_add-ons#Installation_using_the_standard_extension_folders
76 + insinto "/usr/share/mozilla/extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/"
77 + # passff@×××××××.pro is the extension id found in the manifest.json
78 + newins "${MY_XPINAME}.xpi" "passff@×××××××××××.xpi"
79 }