summaryrefslogtreecommitdiff
path: root/www-plugins/passff
diff options
context:
space:
mode:
Diffstat (limited to 'www-plugins/passff')
-rw-r--r--www-plugins/passff/Manifest7
-rw-r--r--www-plugins/passff/metadata.xml7
-rw-r--r--www-plugins/passff/passff-1.1.ebuild40
-rw-r--r--www-plugins/passff/passff-1.3.ebuild37
4 files changed, 47 insertions, 44 deletions
diff --git a/www-plugins/passff/Manifest b/www-plugins/passff/Manifest
index cdc9ac78e6b8..968618a85eff 100644
--- a/www-plugins/passff/Manifest
+++ b/www-plugins/passff/Manifest
@@ -1,4 +1,3 @@
-DIST passff-1.1.json 176 BLAKE2B 8eddc19cd0c072d25afff5cfa86a95d960ae7b986727099a04a1d983b887922f9ad77e940a2c80e0838a169afe81fa3f6529a901998bb98a6750ac888a09c264 SHA512 e4a4b90fb5323c6dbec339b9e67a7d546c6d7a95754fe03b3a4d96396c28de1caba3068b4e936ee0ce0997f865c8b5e53a3da1fb34f0123a04c5889302c28911
-DIST passff-1.1.py 2256 BLAKE2B fcde1a8d1fe4e8793df46c182a8d717931e7b5ee98ae39a6a03bf32c51528dd7036beefc47dd5839bede47a78bcb7904a745fa38522183057dd7b29e20eae726 SHA512 b5d4aa3d3a9455adece3d291a6e1e05178296e72828ec708cd33541f30e4fbef2385978f24ba27eaefc739e4792f4cbac1830e8dcd15380c7243e11ddbcafe9d
-EBUILD passff-1.1.ebuild 914 BLAKE2B 6ed1b603a4a39926e81e0efc2243c5fdd6feacd35b3a5ae874bd6cc74787791c959e015837a9e2baccd438bfc89970926ab27851a8f5127825d758ccf4cc7b17 SHA512 9d926c76b7232322ead013112b78cab6bac3179c5036c61deaf2bcf6d65fa226b9841fe935b63c69e9ce5bc9fd351c0ded12c78117ad4a03a1d207b129c420ae
-MISC metadata.xml 330 BLAKE2B 87fadecd45f680ccf29dbc736eac6c8d5c5da5dc6f15749b42abf6d4d6a5b1d466818b32d996198a0a7534365bf31a5773b8ae358330ee36e365a26e90789ba1 SHA512 c33841e96737f16de6ee6a4f7e2dba04df4dddb26d502d55df8be637ed668a5c8593fef76a2b24a00da335a59cac5f534f89e8cf917d8b1d4ffa9d3d9c0c6d57
+DIST passff-1.3-an+fx-linux.xpi 59512 BLAKE2B 48eb41e8be2e090aa32137fe93eb6cb7a22218f865f1ade4e6f4516ea3fedc34333f43438fd7c96817ec695ca1d0ced9cff0dd53157e06442e000c12a4bff33c SHA512 d5e5c29fda852c08908ce27e55bb2cd3daaacedf4f1375eb626cf4228d9b8c5113d2210578d80420c1df3846cbb948c184702274ece851c9e8279000e38989a6
+EBUILD passff-1.3.ebuild 831 BLAKE2B cf8093b9af8109f91a27b92f9bd200db63829caa7f45c2e4d056add9b2717e1b00dfa63291899f1eda0e65d36a404b73feb95c4e4e2ced40d71226ef1d642999 SHA512 d98c4bc17703894cecc9f6a09df8de055d4bd2524b6b0fa5fff187f665732b8f0fa57d09f405428c9d23c2cbff491c48276952ca0fe85f2e0b05737d8605566e
+MISC metadata.xml 582 BLAKE2B 44a227f047995fcfb3ffba141ed22c632c5be62d9c3526874cfc6bfb66a3dc001f2a0820b877c7f6a582c05f4f03a548e2cee98b7160e433a4c722217414dbe0 SHA512 3ae829aacd4a82e81b25f4b58f7a142d4d43e26bec35143f642f3a069591eb6546389b7e7758641ecf3a360ddbf0129611b669b20a290ea5b72c2462d3b517ca
diff --git a/www-plugins/passff/metadata.xml b/www-plugins/passff/metadata.xml
index 764e78624bc3..234e183d237e 100644
--- a/www-plugins/passff/metadata.xml
+++ b/www-plugins/passff/metadata.xml
@@ -8,4 +8,11 @@
<email>proxy-maint@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>
</pkgmetadata>
diff --git a/www-plugins/passff/passff-1.1.ebuild b/www-plugins/passff/passff-1.1.ebuild
deleted file mode 100644
index 3c07171aa77c..000000000000
--- a/www-plugins/passff/passff-1.1.ebuild
+++ /dev/null
@@ -1,40 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-PYTHON_COMPAT=( python3_4 )
-
-inherit python-single-r1
-
-DESCRIPTION="zx2c4 pass manager extension for Firefox (Host Binary)"
-HOMEPAGE="https://github.com/passff/passff"
-SRC_URI="
- https://github.com/passff/passff/releases/download/${PV}/passff.json -> ${P}.json
- https://github.com/passff/passff/releases/download/${PV}/passff.py -> ${P}.py
-"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-
-TARGET_DIR="/usr/lib/mozilla/native-messaging-hosts"
-
-S="${WORKDIR}"
-
-src_unpack() {
- cp "${DISTDIR}/${P}.json" passff.json || die
- cp "${DISTDIR}/${P}.py" passff.py || die
-}
-
-src_compile() {
- sed -i "s|PLACEHOLDER|${EPREFIX}${TARGET_DIR}/${PN}.py|" passff.json || die
- python_fix_shebang passff.py
-}
-
-src_install() {
- insinto "${TARGET_DIR}"
- doins passff.json
- exeinto "${TARGET_DIR}"
- doexe passff.py
-}
diff --git a/www-plugins/passff/passff-1.3.ebuild b/www-plugins/passff/passff-1.3.ebuild
new file mode 100644
index 000000000000..2cc136021db6
--- /dev/null
+++ b/www-plugins/passff/passff-1.3.ebuild
@@ -0,0 +1,37 @@
+# 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
+}