public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Nirbheek Chauhan" <nirbheek@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gnome:master commit in: app-editors/gedit-plugins/
Date: Thu,  2 Jun 2011 14:43:07 +0000 (UTC)	[thread overview]
Message-ID: <a40d9668bbea21b31a4e33ac9135dd68e8a6e88e.nirbheek@gentoo> (raw)

commit:     a40d9668bbea21b31a4e33ac9135dd68e8a6e88e
Author:     Alexandre Rostovtsev <tetromino <AT> gmail <DOT> com>
AuthorDate: Mon May 30 03:10:16 2011 +0000
Commit:     Nirbheek Chauhan <nirbheek <AT> gentoo <DOT> org>
CommitDate: Thu Jun  2 14:07:46 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=a40d9668

New package: app-editors/gedit-plugins-3.0.3

Add GNOME3 version of gedit-plugins (gedit-plugins-2.x are incompatible
with gedit-3). Simplify the USE flag structure considerably. Now, the
behavior of the ebuild is as follows:
* USE="-python" : build the non-python plugins listed as DEFAULT_PLUGINS in
  configure.ac
* USE="python" : in addition, build python plugins that have no extra
  dependencies other than basic ones such as gedit[python,introspection].
* USE="foo": in addition, build plugin "foo" that pulls in some extra
  dependencies.
This behavior is reasonable because gedit does not load any installed plugins
until the user explicitly tells it to do so.

Signed-off-by: Nirbheek Chauhan <nirbheek <AT> gentoo.org>

---
 .../gedit-plugins/gedit-plugins-3.0.3.ebuild       |   97 ++++++++++++++++++++
 1 files changed, 97 insertions(+), 0 deletions(-)

diff --git a/app-editors/gedit-plugins/gedit-plugins-3.0.3.ebuild b/app-editors/gedit-plugins/gedit-plugins-3.0.3.ebuild
new file mode 100644
index 0000000..5616373
--- /dev/null
+++ b/app-editors/gedit-plugins/gedit-plugins-3.0.3.ebuild
@@ -0,0 +1,97 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="3"
+GCONF_DEBUG="no"
+GNOME2_LA_PUNT="yes" # plugins are dlopened
+PYTHON_DEPEND="python? 2:2.6"
+PYTHON_USE_WITH="xml"
+PYTHON_USE_WITH_OPT="python"
+
+inherit gnome2 multilib python eutils
+
+DESCRIPTION="Offical plugins for gedit"
+HOMEPAGE="http://live.gnome.org/GeditPlugins"
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+
+IUSE_plugins="charmap synctex terminal"
+IUSE="+python ${IUSE_plugins}"
+
+RDEPEND=">=app-editors/gedit-3.0.0[python?]
+	>=dev-libs/glib-2.26.0:2
+	>=dev-libs/libpeas-0.7.3[gtk]
+	>=x11-libs/gtk+-3.0.0:3
+	>=x11-libs/gtksourceview-3.0.0:3.0
+	python? (
+		>=app-editors/gedit-3.0.0[introspection]
+		>=dev-libs/glib-2.26.0:2[introspection]
+		>=x11-libs/gtk+-3.0.0:3[introspection]
+		>=x11-libs/gtksourceview-3.0.0:3.0[introspection]
+		x11-libs/pango[introspection]
+		x11-libs/gdk-pixbuf:2[introspection]
+	)
+	charmap? ( >=gnome-extra/gucharmap-3.0.0[introspection] )
+	synctex? ( >=dev-python/dbus-python-0.82 )
+	terminal? ( x11-libs/vte:2.90[introspection] )"
+DEPEND="${RDEPEND}
+	>=dev-util/intltool-0.40.0
+	dev-util/pkgconfig
+	sys-devel/gettext"
+
+pkg_setup() {
+	# DEFAULT_PLUGINS from configure.ac
+	local myplugins="bookmarks,drawspaces,wordcompletion,taglist"
+
+	# python plugins with no extra dependencies beyond what USE=python brings
+	use python && myplugins="${myplugins},bracketcompletion,codecomment,colorpicker,commander,joinlines,multiedit,textsize,sessionsaver,smartspaces"
+
+	# python plugins with extra dependencies
+	for plugin in ${IUSE_plugins/+}; do
+		use ${plugin} || continue
+		# FIXME: put in REQUIRED_USE when python.eclass supports EAPI4
+		if use python; then
+			myplugins="${myplugins},${plugin}"
+		else
+			ewarn "Plugin '${plugin}' auto-disabled due to USE=-python"
+		fi
+	done
+
+	DOCS="AUTHORS ChangeLog* NEWS README"
+
+	G2CONF="${G2CONF}
+		--disable-schemas-compile
+		--disable-dependency-tracking
+		--with-plugins=${myplugins}
+		$(use_enable python)"
+
+	python_set_active_version 2
+	python_pkg_setup
+}
+
+src_prepare() {
+	gnome2_src_prepare
+
+	# disable pyc compiling
+	for d in . build-aux ; do
+		ln -sfn $(type -P true) "${d}/py-compile"
+	done
+}
+
+src_test() {
+	emake check || die "make check failed"
+}
+
+pkg_postinst() {
+	gnome2_pkg_postinst
+	python_need_rebuild
+	python_mod_optimize /usr/$(get_libdir)/gedit/plugins
+}
+
+pkg_postrm() {
+	gnome2_pkg_postrm
+	python_mod_cleanup /usr/$(get_libdir)/gedit/plugins
+}



             reply	other threads:[~2011-06-02 14:44 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-02 14:43 Nirbheek Chauhan [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-06-02 23:59 [gentoo-commits] proj/gnome:master commit in: app-editors/gedit-plugins/ Nirbheek Chauhan
2011-06-24 17:35 Alexandre Restovtsev
2011-07-06 16:26 Alexandre Restovtsev
2011-08-02  3:03 Alexandre Restovtsev
2011-08-14 21:13 Alexandre Restovtsev
2011-10-18  7:37 Alexandre Restovtsev
2012-11-23 22:13 Gilles Dartiguelongue
2012-12-10  2:05 Alexandre Rostovtsev
2012-12-17  8:14 Gilles Dartiguelongue
2013-12-01 18:42 Gilles Dartiguelongue
2013-12-12 23:21 Gilles Dartiguelongue
2014-04-20 22:57 Gilles Dartiguelongue
2014-10-06 23:06 Gilles Dartiguelongue
2014-10-26 15:04 Gilles Dartiguelongue
2014-11-23 19:37 Gilles Dartiguelongue
2014-12-01 11:48 Michał Górny
2014-12-15 23:28 Gilles Dartiguelongue
2015-06-09 13:48 Gilles Dartiguelongue

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=a40d9668bbea21b31a4e33ac9135dd68e8a6e88e.nirbheek@gentoo \
    --to=nirbheek@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