Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-electronics/gresistor/
Date: Sun, 09 Feb 2020 16:47:12
Message-Id: 1581266808.0ea7a5c45836d683b379300a81260b32fee76a98.mgorny@gentoo
1 commit: 0ea7a5c45836d683b379300a81260b32fee76a98
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sat Feb 8 06:57:57 2020 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 9 16:46:48 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ea7a5c4
7
8 sci-electronics/gresistor: Switch to PYTHON_MULTI_USEDEP API
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 .../{gresistor-0.0.2.ebuild => gresistor-0.0.2-r1.ebuild} | 10 ++++++----
13 1 file changed, 6 insertions(+), 4 deletions(-)
14
15 diff --git a/sci-electronics/gresistor/gresistor-0.0.2.ebuild b/sci-electronics/gresistor/gresistor-0.0.2-r1.ebuild
16 similarity index 78%
17 rename from sci-electronics/gresistor/gresistor-0.0.2.ebuild
18 rename to sci-electronics/gresistor/gresistor-0.0.2-r1.ebuild
19 index fa0b5112d49..1a626f02b10 100644
20 --- a/sci-electronics/gresistor/gresistor-0.0.2.ebuild
21 +++ b/sci-electronics/gresistor/gresistor-0.0.2-r1.ebuild
22 @@ -1,4 +1,4 @@
23 -# Copyright 1999-2017 Gentoo Foundation
24 +# Copyright 1999-2020 Gentoo Authors
25 # Distributed under the terms of the GNU General Public License v2
26
27 EAPI=6
28 @@ -18,9 +18,11 @@ KEYWORDS="amd64 x86"
29 IUSE=""
30
31 DEPEND="
32 - dev-python/pygtk:2[${PYTHON_USEDEP}]
33 - x11-libs/gtk+:2
34 - gnome-base/libglade:2.0[${PYTHON_USEDEP}]"
35 + $(python_gen_cond_dep '
36 + dev-python/pygtk:2[${PYTHON_MULTI_USEDEP}]
37 + ')
38 + gnome-base/libglade:2.0[${PYTHON_SINGLE_USEDEP}]
39 + x11-libs/gtk+:2"
40 RDEPEND="${DEPEND}"
41
42 src_prepare() {