public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Gilles Dartiguelongue" <eva@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gnome:master commit in: app-editors/gedit/
Date: Sun, 10 Apr 2011 18:04:48 +0000 (UTC)	[thread overview]
Message-ID: <889308d22c0ff1a6bc88d3d555bc3acde6bccf2f.eva@gentoo> (raw)

commit:     889308d22c0ff1a6bc88d3d555bc3acde6bccf2f
Author:     Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
AuthorDate: Fri Apr  8 15:35:15 2011 +0000
Commit:     Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
CommitDate: Sun Apr 10 18:03:03 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=889308d2

app-editors/gedit: QAed

	* Fix tests failing on first install
	* Handle python optimization properly
	* Enable plugin updater and gvfs-metadata always

(Portage version: 2.2.0_alpha29/git/Linux x86_64, RepoMan options: --force, signed Manifest commit with key C6085806)

---
 app-editors/gedit/gedit-3.0.0.ebuild |   50 ++++++++++++++++++++++++++-------
 app-editors/gedit/gedit-9999.ebuild  |   50 ++++++++++++++++++++++++++-------
 2 files changed, 78 insertions(+), 22 deletions(-)

diff --git a/app-editors/gedit/gedit-3.0.0.ebuild b/app-editors/gedit/gedit-3.0.0.ebuild
index 4297e43..58a3a34 100644
--- a/app-editors/gedit/gedit-3.0.0.ebuild
+++ b/app-editors/gedit/gedit-3.0.0.ebuild
@@ -17,7 +17,7 @@ HOMEPAGE="http://www.gnome.org/"
 
 LICENSE="GPL-2"
 SLOT="0"
-IUSE="doc +gvfs +introspection python spell"
+IUSE="doc +introspection python spell"
 if [[ ${PV} = 9999 ]]; then
 	KEYWORDS=""
 else
@@ -25,19 +25,23 @@ else
 fi
 
 # X libs are not needed for OSX (aqua)
-RDEPEND=">=x11-libs/libSM-1.0
-	>=dev-libs/libxml2-2.5.0
-	>=dev-libs/glib-2.28
+RDEPEND="
+	>=x11-libs/libSM-1.0
+	>=dev-libs/libxml2-2.5.0:2
+	>=dev-libs/glib-2.28:2
 	>=x11-libs/gtk+-3.0:3[introspection?]
 	>=x11-libs/gtksourceview-3.0.0:3.0[introspection?]
 	>=dev-libs/libpeas-0.7.3[gtk]
 
 	gnome-base/gsettings-desktop-schemas
+	gnome-base/gvfs
+
 	x11-libs/libX11
 	x11-libs/libICE
 	x11-libs/libSM
 
-	gvfs? ( gnome-base/gvfs )
+	net-libs/libsoup:2.4
+
 	introspection? ( >=dev-libs/gobject-introspection-0.9.3 )
 	python? (
 		>=dev-libs/gobject-introspection-0.9.3
@@ -60,9 +64,8 @@ DEPEND="${RDEPEND}
 	doc? ( >=dev-util/gtk-doc-1 )"
 # gnome-common and gtk-doc-am needed to eautoreconf
 
-DOCS="AUTHORS BUGS ChangeLog MAINTAINERS NEWS README"
-
 pkg_setup() {
+	DOCS="AUTHORS BUGS ChangeLog MAINTAINERS NEWS README"
 	# TODO: Zeitgeist support, if GNOME 3 adds it to moduleset (3.2?)
 	G2CONF="${G2CONF}
 		--disable-zeitgeist
@@ -70,18 +73,43 @@ pkg_setup() {
 		--disable-maintainer-mode
 		--disable-schemas-compile
 		--disable-scrollkeeper
-		--disable-updater
-		$(use_enable gvfs gvfs-metadata)
+		--enable-updater
+		--enable-gvfs-metadata
 		$(use_enable introspection)
 		$(use_enable spell)"
+
+	if use python || use introspection; then
+		python_set_active_version 2
+	fi
+}
+
+src_prepare() {
+	gnome2_src_prepare
+
+	# disable pyc compiling
+	mv "${S}"/py-compile "${S}"/py-compile.orig
+	ln -s $(type -P true) "${S}"/py-compile
+}
+
+src_test() {
+	# FIXME: this should be handled at eclass level
+	"${EROOT}${GLIB_COMPILE_SCHEMAS}" --allow-any-name "${S}/data" || die
+
+	GSETTINGS_SCHEMA_DIR="${S}/data" emake check || die "make check failed"
 }
 
 pkg_postinst() {
 	gnome2_pkg_postinst
-	python_mod_optimize /usr/$(get_libdir)/gedit/plugins
+	if use python; then
+		python_mod_optimize /usr/$(get_libdir)/gedit/plugins
+		# FIXME: take care of gi.overrides with USE=introspection
+	fi
+
 }
 
 pkg_postrm() {
 	gnome2_pkg_postrm
-	python_mod_cleanup /usr/$(get_libdir)/gedit/plugins
+	if use python; then
+		python_mod_cleanup /usr/$(get_libdir)/gedit/plugins
+	fi
 }

diff --git a/app-editors/gedit/gedit-9999.ebuild b/app-editors/gedit/gedit-9999.ebuild
index 4297e43..58a3a34 100644
--- a/app-editors/gedit/gedit-9999.ebuild
+++ b/app-editors/gedit/gedit-9999.ebuild
@@ -17,7 +17,7 @@ HOMEPAGE="http://www.gnome.org/"
 
 LICENSE="GPL-2"
 SLOT="0"
-IUSE="doc +gvfs +introspection python spell"
+IUSE="doc +introspection python spell"
 if [[ ${PV} = 9999 ]]; then
 	KEYWORDS=""
 else
@@ -25,19 +25,23 @@ else
 fi
 
 # X libs are not needed for OSX (aqua)
-RDEPEND=">=x11-libs/libSM-1.0
-	>=dev-libs/libxml2-2.5.0
-	>=dev-libs/glib-2.28
+RDEPEND="
+	>=x11-libs/libSM-1.0
+	>=dev-libs/libxml2-2.5.0:2
+	>=dev-libs/glib-2.28:2
 	>=x11-libs/gtk+-3.0:3[introspection?]
 	>=x11-libs/gtksourceview-3.0.0:3.0[introspection?]
 	>=dev-libs/libpeas-0.7.3[gtk]
 
 	gnome-base/gsettings-desktop-schemas
+	gnome-base/gvfs
+
 	x11-libs/libX11
 	x11-libs/libICE
 	x11-libs/libSM
 
-	gvfs? ( gnome-base/gvfs )
+	net-libs/libsoup:2.4
+
 	introspection? ( >=dev-libs/gobject-introspection-0.9.3 )
 	python? (
 		>=dev-libs/gobject-introspection-0.9.3
@@ -60,9 +64,8 @@ DEPEND="${RDEPEND}
 	doc? ( >=dev-util/gtk-doc-1 )"
 # gnome-common and gtk-doc-am needed to eautoreconf
 
-DOCS="AUTHORS BUGS ChangeLog MAINTAINERS NEWS README"
-
 pkg_setup() {
+	DOCS="AUTHORS BUGS ChangeLog MAINTAINERS NEWS README"
 	# TODO: Zeitgeist support, if GNOME 3 adds it to moduleset (3.2?)
 	G2CONF="${G2CONF}
 		--disable-zeitgeist
@@ -70,18 +73,43 @@ pkg_setup() {
 		--disable-maintainer-mode
 		--disable-schemas-compile
 		--disable-scrollkeeper
-		--disable-updater
-		$(use_enable gvfs gvfs-metadata)
+		--enable-updater
+		--enable-gvfs-metadata
 		$(use_enable introspection)
 		$(use_enable spell)"
+
+	if use python || use introspection; then
+		python_set_active_version 2
+	fi
+}
+
+src_prepare() {
+	gnome2_src_prepare
+
+	# disable pyc compiling
+	mv "${S}"/py-compile "${S}"/py-compile.orig
+	ln -s $(type -P true) "${S}"/py-compile
+}
+
+src_test() {
+	# FIXME: this should be handled at eclass level
+	"${EROOT}${GLIB_COMPILE_SCHEMAS}" --allow-any-name "${S}/data" || die
+
+	GSETTINGS_SCHEMA_DIR="${S}/data" emake check || die "make check failed"
 }
 
 pkg_postinst() {
 	gnome2_pkg_postinst
-	python_mod_optimize /usr/$(get_libdir)/gedit/plugins
+	if use python; then
+		python_mod_optimize /usr/$(get_libdir)/gedit/plugins
+		# FIXME: take care of gi.overrides with USE=introspection
+	fi
+
 }
 
 pkg_postrm() {
 	gnome2_pkg_postrm
-	python_mod_cleanup /usr/$(get_libdir)/gedit/plugins
+	if use python; then
+		python_mod_cleanup /usr/$(get_libdir)/gedit/plugins
+	fi
 }



             reply	other threads:[~2011-04-10 18:05 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-10 18:04 Gilles Dartiguelongue [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 19:03 Michał Górny
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-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=889308d22c0ff1a6bc88d3d555bc3acde6bccf2f.eva@gentoo \
    --to=eva@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