1 |
commit: 519537eb30b59af69a14872aef359f95f1a88be3 |
2 |
Author: Haelwenn (lanodan) Monnier <contact <AT> hacktivis <DOT> me> |
3 |
AuthorDate: Sun Sep 9 18:48:17 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 17 17:06:42 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=519537eb |
7 |
|
8 |
www-plugins/passff-host: Bump to 1.0.2 |
9 |
|
10 |
www-plugins/passff-host/Manifest | 2 + |
11 |
www-plugins/passff-host/passff-host-1.0.2.ebuild | 52 ++++++++++++++++++++++++ |
12 |
2 files changed, 54 insertions(+) |
13 |
|
14 |
diff --git a/www-plugins/passff-host/Manifest b/www-plugins/passff-host/Manifest |
15 |
index 5f1b3eb2ed4..60432e91804 100644 |
16 |
--- a/www-plugins/passff-host/Manifest |
17 |
+++ b/www-plugins/passff-host/Manifest |
18 |
@@ -1,2 +1,4 @@ |
19 |
DIST passff-host-1.0.1.json 176 BLAKE2B 8eddc19cd0c072d25afff5cfa86a95d960ae7b986727099a04a1d983b887922f9ad77e940a2c80e0838a169afe81fa3f6529a901998bb98a6750ac888a09c264 SHA512 e4a4b90fb5323c6dbec339b9e67a7d546c6d7a95754fe03b3a4d96396c28de1caba3068b4e936ee0ce0997f865c8b5e53a3da1fb34f0123a04c5889302c28911 |
20 |
DIST passff-host-1.0.1.py 3432 BLAKE2B f45054bf9323608b515de559c36ad28705fb9c75de00824b0ed8e05d21545b861ba61194cf25a4db84b55d64f7d08abec27d56bb8d098961e94fbbcb9d7f3707 SHA512 168b4d3cdc9f463a7969adc851c878b5b7ddad7d05415770273510c99d8fa7c80015611df1554f24c8b8cd0f256d3a8f687a325e34105e029487eb4fc5ea7290 |
21 |
+DIST passff-host-1.0.2.json 176 BLAKE2B 8eddc19cd0c072d25afff5cfa86a95d960ae7b986727099a04a1d983b887922f9ad77e940a2c80e0838a169afe81fa3f6529a901998bb98a6750ac888a09c264 SHA512 e4a4b90fb5323c6dbec339b9e67a7d546c6d7a95754fe03b3a4d96396c28de1caba3068b4e936ee0ce0997f865c8b5e53a3da1fb34f0123a04c5889302c28911 |
22 |
+DIST passff-host-1.0.2.py 3153 BLAKE2B 54cc951628f18a0e8c88dc7404a6c035473c1a8d5974a26e0d6c48692cf29a8d507bf89d11a1247eb0705418719601d2bbcdfca77018d3480fb97f13d660b58d SHA512 d7818055e5cee6b3fc270d7a84f342ba68b8c1f5e5e01e120cff173b1cc50f2e6189121f4d258d470885de9ba0c06b687ccdbe6b3de653d2274954a4777b2a6b |
23 |
|
24 |
diff --git a/www-plugins/passff-host/passff-host-1.0.2.ebuild b/www-plugins/passff-host/passff-host-1.0.2.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..a2509be3e2c |
27 |
--- /dev/null |
28 |
+++ b/www-plugins/passff-host/passff-host-1.0.2.ebuild |
29 |
@@ -0,0 +1,52 @@ |
30 |
+# Copyright 1999-2018 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python3_5 python3_6 python3_7 ) |
36 |
+ |
37 |
+inherit python-single-r1 |
38 |
+ |
39 |
+DESCRIPTION="Host app for the PassFF WebExtension" |
40 |
+HOMEPAGE="https://github.com/passff/passff-host" |
41 |
+ |
42 |
+SRC_URI=" |
43 |
+ https://github.com/passff/passff-host/releases/download/${PV}/passff.py -> ${P}.py |
44 |
+ https://github.com/passff/passff-host/releases/download/${PV}/passff.json -> ${P}.json |
45 |
+" |
46 |
+ |
47 |
+LICENSE="GPL-2" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~x86" |
50 |
+IUSE="chrome chromium firefox vivaldi" |
51 |
+REQUIRED_USE="|| ( chrome chromium firefox vivaldi )" |
52 |
+ |
53 |
+S="${WORKDIR}" |
54 |
+ |
55 |
+src_unpack() { |
56 |
+ cp "${DISTDIR}/${P}.json" . || die |
57 |
+ cp "${DISTDIR}/${P}.py" . || die |
58 |
+} |
59 |
+ |
60 |
+src_prepare() { |
61 |
+ default |
62 |
+ python_fix_shebang "${P}.py" |
63 |
+} |
64 |
+ |
65 |
+src_install() { |
66 |
+ local target_dirs=() |
67 |
+ |
68 |
+ use chrome && target_dirs+=( "/etc/opt/chrome/native-messaging-hosts" ) |
69 |
+ use chromium && target_dirs+=( "/etc/chromium/native-messaging-hosts" ) |
70 |
+ use firefox && target_dirs+=( "/usr/lib/mozilla/native-messaging-hosts" ) |
71 |
+ use vivaldi && target_dirs+=( "/etc/vivaldi/native-messaging-hosts" ) |
72 |
+ |
73 |
+ for target_dir in "${target_dirs[@]}"; do |
74 |
+ sed "s;PLACEHOLDER;${target_dir}/passff.py;g" "${P}.json" > "passff.json" || die |
75 |
+ |
76 |
+ insinto "${target_dir}" |
77 |
+ doins passff.json |
78 |
+ exeinto "${target_dir}" |
79 |
+ newexe "${P}.py" passff.py |
80 |
+ done |
81 |
+} |