From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QS97x-0007Bx-0r for garchives@archives.gentoo.org; Thu, 02 Jun 2011 14:44:01 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 232E51C04B; Thu, 2 Jun 2011 14:43:09 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id CEB691C04B for ; Thu, 2 Jun 2011 14:43:08 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4FD941B4036 for ; Thu, 2 Jun 2011 14:43:08 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id ACCCC80506 for ; Thu, 2 Jun 2011 14:43:07 +0000 (UTC) From: "Nirbheek Chauhan" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Nirbheek Chauhan" Message-ID: Subject: [gentoo-commits] proj/gnome:master commit in: app-editors/gedit-plugins/ X-VCS-Repository: proj/gnome X-VCS-Files: app-editors/gedit-plugins/gedit-plugins-3.0.3.ebuild X-VCS-Directories: app-editors/gedit-plugins/ X-VCS-Committer: nirbheek X-VCS-Committer-Name: Nirbheek Chauhan X-VCS-Revision: a40d9668bbea21b31a4e33ac9135dd68e8a6e88e Date: Thu, 2 Jun 2011 14:43:07 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 6ca7dd17bdf9b5b3a9c5c14267c57df3 commit: a40d9668bbea21b31a4e33ac9135dd68e8a6e88e Author: Alexandre Rostovtsev gmail com> AuthorDate: Mon May 30 03:10:16 2011 +0000 Commit: Nirbheek Chauhan gentoo org> CommitDate: Thu Jun 2 14:07:46 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/gnome.git;a=3D= commit;h=3Da40d9668 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=3D"-python" : build the non-python plugins listed as DEFAULT_PLUGIN= S in configure.ac * USE=3D"python" : in addition, build python plugins that have no extra dependencies other than basic ones such as gedit[python,introspection]. * USE=3D"foo": in addition, build plugin "foo" that pulls in some extra dependencies. This behavior is reasonable because gedit does not load any installed plu= gins until the user explicitly tells it to do so. Signed-off-by: Nirbheek Chauhan 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-e= ditors/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=3D"3" +GCONF_DEBUG=3D"no" +GNOME2_LA_PUNT=3D"yes" # plugins are dlopened +PYTHON_DEPEND=3D"python? 2:2.6" +PYTHON_USE_WITH=3D"xml" +PYTHON_USE_WITH_OPT=3D"python" + +inherit gnome2 multilib python eutils + +DESCRIPTION=3D"Offical plugins for gedit" +HOMEPAGE=3D"http://live.gnome.org/GeditPlugins" + +LICENSE=3D"GPL-2" +KEYWORDS=3D"~amd64 ~x86" +SLOT=3D"0" + +IUSE_plugins=3D"charmap synctex terminal" +IUSE=3D"+python ${IUSE_plugins}" + +RDEPEND=3D">=3Dapp-editors/gedit-3.0.0[python?] + >=3Ddev-libs/glib-2.26.0:2 + >=3Ddev-libs/libpeas-0.7.3[gtk] + >=3Dx11-libs/gtk+-3.0.0:3 + >=3Dx11-libs/gtksourceview-3.0.0:3.0 + python? ( + >=3Dapp-editors/gedit-3.0.0[introspection] + >=3Ddev-libs/glib-2.26.0:2[introspection] + >=3Dx11-libs/gtk+-3.0.0:3[introspection] + >=3Dx11-libs/gtksourceview-3.0.0:3.0[introspection] + x11-libs/pango[introspection] + x11-libs/gdk-pixbuf:2[introspection] + ) + charmap? ( >=3Dgnome-extra/gucharmap-3.0.0[introspection] ) + synctex? ( >=3Ddev-python/dbus-python-0.82 ) + terminal? ( x11-libs/vte:2.90[introspection] )" +DEPEND=3D"${RDEPEND} + >=3Ddev-util/intltool-0.40.0 + dev-util/pkgconfig + sys-devel/gettext" + +pkg_setup() { + # DEFAULT_PLUGINS from configure.ac + local myplugins=3D"bookmarks,drawspaces,wordcompletion,taglist" + + # python plugins with no extra dependencies beyond what USE=3Dpython br= ings + use python && myplugins=3D"${myplugins},bracketcompletion,codecomment,c= olorpicker,commander,joinlines,multiedit,textsize,sessionsaver,smartspace= s" + + # 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=3D"${myplugins},${plugin}" + else + ewarn "Plugin '${plugin}' auto-disabled due to USE=3D-python" + fi + done + + DOCS=3D"AUTHORS ChangeLog* NEWS README" + + G2CONF=3D"${G2CONF} + --disable-schemas-compile + --disable-dependency-tracking + --with-plugins=3D${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 +}