1 |
commit: 2c24bf3a88dd5a2988c2b3093b0568a6c503e4cf |
2 |
Author: Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me> |
3 |
AuthorDate: Fri Mar 2 23:46:42 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Mar 23 21:38:27 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c24bf3a |
7 |
|
8 |
www-plugins/passff: New Package |
9 |
|
10 |
Closes: https://bugs.gentoo.org/645978 |
11 |
Closes: https://github.com/gentoo/gentoo/pull/7341 |
12 |
|
13 |
www-plugins/passff/Manifest | 2 ++ |
14 |
www-plugins/passff/metadata.xml | 11 ++++++++++ |
15 |
www-plugins/passff/passff-1.1.ebuild | 40 ++++++++++++++++++++++++++++++++++++ |
16 |
3 files changed, 53 insertions(+) |
17 |
|
18 |
diff --git a/www-plugins/passff/Manifest b/www-plugins/passff/Manifest |
19 |
new file mode 100644 |
20 |
index 00000000000..40c9f56bb39 |
21 |
--- /dev/null |
22 |
+++ b/www-plugins/passff/Manifest |
23 |
@@ -0,0 +1,2 @@ |
24 |
+DIST passff-1.1.json 176 BLAKE2B 8eddc19cd0c072d25afff5cfa86a95d960ae7b986727099a04a1d983b887922f9ad77e940a2c80e0838a169afe81fa3f6529a901998bb98a6750ac888a09c264 SHA512 e4a4b90fb5323c6dbec339b9e67a7d546c6d7a95754fe03b3a4d96396c28de1caba3068b4e936ee0ce0997f865c8b5e53a3da1fb34f0123a04c5889302c28911 |
25 |
+DIST passff-1.1.py 2256 BLAKE2B fcde1a8d1fe4e8793df46c182a8d717931e7b5ee98ae39a6a03bf32c51528dd7036beefc47dd5839bede47a78bcb7904a745fa38522183057dd7b29e20eae726 SHA512 b5d4aa3d3a9455adece3d291a6e1e05178296e72828ec708cd33541f30e4fbef2385978f24ba27eaefc739e4792f4cbac1830e8dcd15380c7243e11ddbcafe9d |
26 |
|
27 |
diff --git a/www-plugins/passff/metadata.xml b/www-plugins/passff/metadata.xml |
28 |
new file mode 100644 |
29 |
index 00000000000..764e78624bc |
30 |
--- /dev/null |
31 |
+++ b/www-plugins/passff/metadata.xml |
32 |
@@ -0,0 +1,11 @@ |
33 |
+<?xml version="1.0" encoding="UTF-8"?> |
34 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
35 |
+<pkgmetadata> |
36 |
+<maintainer type="person"> |
37 |
+ <email>contact@×××××××××.me</email> |
38 |
+</maintainer> |
39 |
+<maintainer type="project"> |
40 |
+ <email>proxy-maint@g.o</email> |
41 |
+ <name>Proxy Maintainers</name> |
42 |
+</maintainer> |
43 |
+</pkgmetadata> |
44 |
|
45 |
diff --git a/www-plugins/passff/passff-1.1.ebuild b/www-plugins/passff/passff-1.1.ebuild |
46 |
new file mode 100644 |
47 |
index 00000000000..3c07171aa77 |
48 |
--- /dev/null |
49 |
+++ b/www-plugins/passff/passff-1.1.ebuild |
50 |
@@ -0,0 +1,40 @@ |
51 |
+# Copyright 1999-2018 Gentoo Foundation |
52 |
+# Distributed under the terms of the GNU General Public License v2 |
53 |
+ |
54 |
+EAPI=6 |
55 |
+ |
56 |
+PYTHON_COMPAT=( python3_4 ) |
57 |
+ |
58 |
+inherit python-single-r1 |
59 |
+ |
60 |
+DESCRIPTION="zx2c4 pass manager extension for Firefox (Host Binary)" |
61 |
+HOMEPAGE="https://github.com/passff/passff" |
62 |
+SRC_URI=" |
63 |
+ https://github.com/passff/passff/releases/download/${PV}/passff.json -> ${P}.json |
64 |
+ https://github.com/passff/passff/releases/download/${PV}/passff.py -> ${P}.py |
65 |
+" |
66 |
+ |
67 |
+LICENSE="GPL-2" |
68 |
+SLOT="0" |
69 |
+KEYWORDS="~amd64 ~x86" |
70 |
+ |
71 |
+TARGET_DIR="/usr/lib/mozilla/native-messaging-hosts" |
72 |
+ |
73 |
+S="${WORKDIR}" |
74 |
+ |
75 |
+src_unpack() { |
76 |
+ cp "${DISTDIR}/${P}.json" passff.json || die |
77 |
+ cp "${DISTDIR}/${P}.py" passff.py || die |
78 |
+} |
79 |
+ |
80 |
+src_compile() { |
81 |
+ sed -i "s|PLACEHOLDER|${EPREFIX}${TARGET_DIR}/${PN}.py|" passff.json || die |
82 |
+ python_fix_shebang passff.py |
83 |
+} |
84 |
+ |
85 |
+src_install() { |
86 |
+ insinto "${TARGET_DIR}" |
87 |
+ doins passff.json |
88 |
+ exeinto "${TARGET_DIR}" |
89 |
+ doexe passff.py |
90 |
+} |