Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-plugins/passff-host/
Date: Fri, 31 Jul 2020 22:34:31
Message-Id: 1596234854.95a4a139cf9357f3fffc76708206095505525bb5.mattst88@gentoo
1 commit: 95a4a139cf9357f3fffc76708206095505525bb5
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 31 22:33:38 2020 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 31 22:34:14 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95a4a139
7
8 www-plugins/passff-host: Drop old versions
9
10 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
11
12 www-plugins/passff-host/passff-host-1.2.1.ebuild | 57 ------------------------
13 1 file changed, 57 deletions(-)
14
15 diff --git a/www-plugins/passff-host/passff-host-1.2.1.ebuild b/www-plugins/passff-host/passff-host-1.2.1.ebuild
16 deleted file mode 100644
17 index 3dd1e204515..00000000000
18 --- a/www-plugins/passff-host/passff-host-1.2.1.ebuild
19 +++ /dev/null
20 @@ -1,57 +0,0 @@
21 -# Copyright 2018-2020 Gentoo Authors
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=7
25 -
26 -PYTHON_COMPAT=( python3_6 python3_7 )
27 -
28 -inherit python-single-r1
29 -
30 -DESCRIPTION="Host app for the PassFF WebExtension"
31 -HOMEPAGE="https://github.com/passff/passff-host"
32 -
33 -SRC_URI="
34 - https://github.com/passff/passff-host/releases/download/${PV}/passff.py -> ${P}.py
35 - https://github.com/passff/passff-host/releases/download/${PV}/passff.json -> ${P}.json
36 -"
37 -
38 -LICENSE="GPL-2"
39 -SLOT="0"
40 -KEYWORDS="~amd64 ~ppc64 ~x86"
41 -IUSE="chrome chromium firefox vivaldi"
42 -REQUIRED_USE="
43 - ${PYTHON_REQUIRED_USE}
44 - || ( chrome chromium firefox vivaldi )
45 -"
46 -
47 -RDEPEND="${PYTHON_DEPS}"
48 -
49 -S="${WORKDIR}"
50 -
51 -src_unpack() {
52 - cp "${DISTDIR}/${P}.json" . || die
53 - cp "${DISTDIR}/${P}.py" . || die
54 -}
55 -
56 -src_prepare() {
57 - default
58 - python_fix_shebang "${P}.py"
59 -}
60 -
61 -src_install() {
62 - local target_dirs=()
63 -
64 - use chrome && target_dirs+=( "/etc/opt/chrome/native-messaging-hosts" )
65 - use chromium && target_dirs+=( "/etc/chromium/native-messaging-hosts" )
66 - use firefox && target_dirs+=( "/usr/$(get_libdir)/mozilla/native-messaging-hosts" )
67 - use vivaldi && target_dirs+=( "/etc/vivaldi/native-messaging-hosts" )
68 -
69 - for target_dir in "${target_dirs[@]}"; do
70 - sed "s;PLACEHOLDER;${target_dir}/passff.py;g" "${P}.json" > "passff.json" || die
71 -
72 - insinto "${target_dir}"
73 - doins passff.json
74 - exeinto "${target_dir}"
75 - newexe "${P}.py" passff.py
76 - done
77 -}