Gentoo Archives: gentoo-commits

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