public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gnome:master commit in: app-editors/gedit/
Date: Fri, 28 Nov 2014 19:03:16 +0000 (UTC)	[thread overview]
Message-ID: <1417201391.c52e9c2f103ff1845b42f5372c22a4725672b200.mgorny@gentoo> (raw)

commit:     c52e9c2f103ff1845b42f5372c22a4725672b200
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 28 19:03:11 2014 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Nov 28 19:03:11 2014 +0000
URL:        http://sources.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=c52e9c2f

app-editors/gedit: sync the live ebuild

Package-Manager: portage-2.2.14
Manifest-Sign-Key: EFB4464E!

---
 app-editors/gedit/gedit-9999.ebuild | 47 +++++++++++++++----------------------
 1 file changed, 19 insertions(+), 28 deletions(-)

diff --git a/app-editors/gedit/gedit-9999.ebuild b/app-editors/gedit/gedit-9999.ebuild
index 9497a22..ca629cf 100644
--- a/app-editors/gedit/gedit-9999.ebuild
+++ b/app-editors/gedit/gedit-9999.ebuild
@@ -21,7 +21,9 @@ LICENSE="GPL-2+ CC-BY-SA-3.0"
 SLOT="0"
 
 IUSE="+introspection +python spell vala"
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+# python-single-r1 would request disabling PYTHON_TARGETS on libpeas
+# we need to fix that
+REQUIRED_USE="python? ( ^^ ( $(python_gen_useflags '*') ) )"
 if [[ ${PV} = 9999 ]]; then
 	IUSE="${IUSE} doc"
 	KEYWORDS=""
@@ -51,14 +53,14 @@ COMMON_DEPEND="
 		>=x11-libs/gtk+-3:3[introspection]
 		>=x11-libs/gtksourceview-3.6:3.0[introspection]
 		dev-python/pycairo[${PYTHON_USEDEP}]
-		>=dev-python/pygobject-3:3[cairo,${PYTHON_USEDEP}] )
+		>=dev-python/pygobject-3:3[cairo,${PYTHON_USEDEP}]
+		dev-libs/libpeas[${PYTHON_USEDEP}] )
 	spell? (
 		>=app-text/enchant-1.2:=
 		>=app-text/iso-codes-0.35 )
 "
 RDEPEND="${COMMON_DEPEND}
 	x11-themes/gnome-icon-theme-symbolic
-	python? ( dev-libs/libpeas[${PYTHON_USEDEP}] )
 "
 DEPEND="${COMMON_DEPEND}
 	${vala_depend}
@@ -78,35 +80,27 @@ if [[ ${PV} = 9999 ]]; then
 		app-text/yelp-tools"
 fi
 
+pkg_setup() {
+	use python && [[ ${MERGE_TYPE} != binary ]] && python_setup
+}
+
 src_prepare() {
 	vala_src_prepare
 	gnome2_src_prepare
-
-	python_copy_sources
 }
 
 src_configure() {
-	local myconf=""
-	[[ ${PV} != 9999 ]] && myconf="ITSTOOL=$(type -P true)"
 	DOCS="AUTHORS BUGS ChangeLog MAINTAINERS NEWS README"
 
-	local myconf
-	myconf="
-		--disable-deprecations
-		--enable-updater
-		--enable-gvfs-metadata
-		$(use_enable introspection)
-		$(use_enable spell)
-		$(use_enable vala)
-		$(use_enable python)
+	gnome2_src_configure \
+		--disable-deprecations \
+		--enable-updater \
+		--enable-gvfs-metadata \
+		$(use_enable introspection) \
+		$(use_enable spell) \
+		$(use_enable vala) \
+		$(use_enable python) \
 		ITSTOOL=$(type -P true)
-	"
-
-	if use python ; then
-		python_parallel_foreach_impl gnome2_src_configure ${myconf}
-	else
-		gnome2_src_configure ${myconf}
-	fi
 }
 
 src_test() {
@@ -118,9 +112,6 @@ src_test() {
 }
 
 src_install() {
-	if use python ; then
-		python_foreach_impl gnome2_src_install
-	else
-		gnome2_src_install
-	fi
+	# manually set pyoverridesdir due to bug #524018 and AM_PATH_PYTHON limitations
+	gnome2_src_install pyoverridesdir="$(python_get_sitedir)/gi/overrides"
 }


             reply	other threads:[~2014-11-28 19:03 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-28 19:03 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-01-30 20:02 [gentoo-commits] proj/gnome:master commit in: app-editors/gedit/ Mart Raudsepp
2018-12-29 13:59 Sobhan Mohammadpour
2018-08-05 10:11 Mart Raudsepp
2017-09-02  9:31 Gilles Dartiguelongue
2016-03-26 22:54 Ole Reifschneider
2015-06-09 13:48 Gilles Dartiguelongue
2015-05-25 14:05 Gilles Dartiguelongue
2015-05-17 15:39 Gilles Dartiguelongue
2015-01-02 22:20 Michał Górny
2014-12-15 23:28 Gilles Dartiguelongue
2014-12-04 23:03 Remi Cardona
2014-11-28 18:58 Michał Górny
2014-11-28  8:13 Remi Cardona
2014-11-23 19:37 Gilles Dartiguelongue
2014-10-06 23:06 Gilles Dartiguelongue
2014-04-23 22:14 Gilles Dartiguelongue
2014-04-20 22:57 Gilles Dartiguelongue
2013-12-22 22:27 Gilles Dartiguelongue
2013-12-01 18:42 Gilles Dartiguelongue
2013-11-14 22:52 Gilles Dartiguelongue
2012-12-17  8:04 Gilles Dartiguelongue
2012-11-21 22:27 Gilles Dartiguelongue
2012-10-27 22:15 Gilles Dartiguelongue
2012-09-22 18:45 Nirbheek Chauhan
2012-09-08  8:59 Nirbheek Chauhan
2012-04-06 21:50 Stephen Klimaszewski
2012-03-07  0:32 Alexandre Restovtsev
2012-03-03  5:01 Alexandre Restovtsev
2012-02-26 21:53 Alexandre Restovtsev
2012-01-20 19:49 Nirbheek Chauhan
2011-11-03  4:42 Alexandre Restovtsev
2011-10-18  7:37 Alexandre Restovtsev
2011-10-09 21:38 Alexandre Restovtsev
2011-07-01 19:41 Alexandre Restovtsev
2011-06-24 17:35 Alexandre Restovtsev
2011-06-02 14:43 Nirbheek Chauhan
2011-04-29 17:46 Nirbheek Chauhan
2011-04-12 23:50 Nirbheek Chauhan
2011-04-10 18:04 Gilles Dartiguelongue
2011-04-05  0:57 Nirbheek Chauhan
2011-03-26  2:54 Nirbheek Chauhan
2011-03-26  1:58 Nirbheek Chauhan
2011-03-23  5:20 Nirbheek Chauhan
2011-03-14 17:21 Nirbheek Chauhan
2011-03-09 11:34 Nirbheek Chauhan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1417201391.c52e9c2f103ff1845b42f5372c22a4725672b200.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox