Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gnome:master commit in: app-editors/gedit/
Date: Fri, 28 Nov 2014 18:58:55
Message-Id: 1417201091.7bd51e90949f1491d9d3e4e4011e3830128d037e.mgorny@gentoo
1 commit: 7bd51e90949f1491d9d3e4e4011e3830128d037e
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Nov 28 18:58:11 2014 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 28 18:58:11 2014 +0000
6 URL: http://sources.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=7bd51e90
7
8 app-editors/gedit: add proper REQUIRED_USE and MERGE_TYPE check
9
10 Since libpeas supports at most one version of Python 3, add
11 an appropriate exactly-one-of REQUIRED_USE. Additionally, add
12 a MERGE_TYPE check to pkg_setup to avoid initializing Python
13 in binary package installs.
14
15 Package-Manager: portage-2.2.14
16 Manifest-Sign-Key: EFB4464E!
17
18 ---
19 app-editors/gedit/gedit-3.14.1.ebuild | 6 ++++--
20 1 file changed, 4 insertions(+), 2 deletions(-)
21
22 diff --git a/app-editors/gedit/gedit-3.14.1.ebuild b/app-editors/gedit/gedit-3.14.1.ebuild
23 index d41d63e..d2baa72 100644
24 --- a/app-editors/gedit/gedit-3.14.1.ebuild
25 +++ b/app-editors/gedit/gedit-3.14.1.ebuild
26 @@ -18,7 +18,9 @@ LICENSE="GPL-2+ CC-BY-SA-3.0"
27 SLOT="0"
28
29 IUSE="+introspection +python spell vala"
30 -REQUIRED_USE="python? ( || ( $(python_gen_useflags 'python3*') ) )"
31 +# python-single-r1 would request disabling PYTHON_TARGETS on libpeas
32 +# we need to fix that
33 +REQUIRED_USE="python? ( ^^ ( $(python_gen_useflags '*') ) )"
34
35 KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~ia64-linux ~x86-linux"
36
37 @@ -66,7 +68,7 @@ DEPEND="${COMMON_DEPEND}
38 # yelp-tools, gnome-common needed to eautoreconf
39
40 pkg_setup() {
41 - use python && python_setup
42 + use python && [[ ${MERGE_TYPE} != binary ]] && python_setup
43 }
44
45 src_prepare() {