Bump to 1.2.0 from the gnome overlay. Notable changes: optional gjs support, pygobjec...
authorAlexandre Rostovtsev <tetromino@gentoo.org>
Thu, 3 Nov 2011 04:16:16 +0000 (04:16 +0000)
committerAlexandre Rostovtsev <tetromino@gentoo.org>
Thu, 3 Nov 2011 04:16:16 +0000 (04:16 +0000)
Package-Manager: portage-2.2.0_alpha72/cvs/Linux x86_64

dev-libs/libpeas/ChangeLog
dev-libs/libpeas/Manifest
dev-libs/libpeas/files/libpeas-1.2.0-PeasPluginInfo-annotation.patch [new file with mode: 0644]
dev-libs/libpeas/libpeas-1.2.0-r1.ebuild [new file with mode: 0644]
dev-libs/libpeas/metadata.xml

index d8e93f34fc9859a2d43c53836796f37892dfd487..a994092b8bea7c94c1c6cbae97cbb8286029f290 100644 (file)
@@ -1,6 +1,14 @@
 # ChangeLog for dev-libs/libpeas
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/libpeas/ChangeLog,v 1.1 2011/08/16 18:57:21 nirbheek Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libpeas/ChangeLog,v 1.2 2011/11/03 04:16:16 tetromino Exp $
+
+*libpeas-1.2.0-r1 (03 Nov 2011)
+
+  03 Nov 2011; Alexandre Rostovtsev <tetromino@gentoo.org>
+  +libpeas-1.2.0-r1.ebuild,
+  +files/libpeas-1.2.0-PeasPluginInfo-annotation.patch, metadata.xml:
+  Bump to 1.2.0 from the gnome overlay. Notable changes: optional gjs support,
+  pygobject-3 compatibility.
 
 *libpeas-1.0.0 (16 Aug 2011)
 
index 4dc0c09de17ba08b8ca981f20e112e17a5064456..55f6a82a1200575cfedeac8ed4325cb9dd1dc709 100644 (file)
@@ -1,24 +1,17 @@
 -----BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
+Hash: SHA256
 
+AUX libpeas-1.2.0-PeasPluginInfo-annotation.patch 2255 RMD160 fb56f5698eaae7fe164164d1d2ea58646b57a50f SHA1 add8ee5aa71c7be0aa502c44863704b2b7816ac9 SHA256 2b187f0681021ea1cca8f805e9eaf452cd7c5611c80bfa1e04315aac68b75f80
 DIST libpeas-1.0.0.tar.bz2 598820 RMD160 66a04dfd5c72d0611848937a58055ac717044448 SHA1 f15caf0b7c4621979eff5bca06f567d2d4828443 SHA256 b1482690565241baf3870311a77efb3f89a4335f48cb4ca31e8b8405220a8d99
+DIST libpeas-1.2.0.tar.xz 497176 RMD160 60ce43c0253568abcf44e824a2bd2e18ff7f904d SHA1 4877d53a55671c51f73cea75365ece037badd1bf SHA256 871868ff44352367a4b4602352f60fd20eb99794ade454f3b120d87c1560f31c
 EBUILD libpeas-1.0.0.ebuild 1680 RMD160 8cd7bf626de62bb7801fe563ec0da0f532ee1d95 SHA1 86a172599d17bdb29bc561a36300b1235bd7bb85 SHA256 af84e27bbe7f5ec0dd36d217f5e62d9d69a7916cb77dc02d31e8b3872e99af26
-MISC ChangeLog 370 RMD160 3838daea7e2d327cc3af831096356a7ee7b12b36 SHA1 7f13db47caa65701a4590e014b45a9c13620923a SHA256 87b3fbca6e607e1740ea5032d0ecb693f2bcfb5727ef6ac0849e59d64d81820b
-MISC metadata.xml 516 RMD160 cd28eb19085b4d2f9df3840413e42d2a29fa7d6b SHA1 c9f59b845975696ad85669b93d967a9c483436c6 SHA256 7876ba06c9e77ddeb465bab331eb14da9fd53d460d50a8b0df3e603cb73eb783
+EBUILD libpeas-1.2.0-r1.ebuild 1874 RMD160 c3318d742d14698c8ae4117b9953bf089b4b91f4 SHA1 064793deef152cb9d34113714fc8b6476075315c SHA256 c119de1f86ccd8c74776afb630e0c6f9677d20df4ef23dc976dca0c31615099e
+MISC ChangeLog 670 RMD160 8724b520c23fe8e85a0b56507797918e3d165bf3 SHA1 f1abbe866ddb4ef8560b62b208593362231c65c3 SHA256 28d8af589f9dd5f279d2a677d8a4c28f6da16c64e77b5baacb1311e1cefe801c
+MISC metadata.xml 620 RMD160 dbc561a1d545d5709b799b32f40079727990d2b7 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PGP SIGNATURE-----
diff --git a/dev-libs/libpeas/files/libpeas-1.2.0-PeasPluginInfo-annotation.patch b/dev-libs/libpeas/files/libpeas-1.2.0-PeasPluginInfo-annotation.patch
new file mode 100644 (file)
index 0000000..3a2e9b4
--- /dev/null
@@ -0,0 +1,57 @@
+From afa50c526ce1aab53eff3c3373a97180fc90abe2 Mon Sep 17 00:00:00 2001
+From: Garrett Regier <garrettregier@gmail.com>
+Date: Thu, 29 Sep 2011 15:46:49 -0700
+Subject: [PATCH] Annotate PeasPluginInfo return values as transfer none
+
+Otherwise GObject-Introspection says that it is transfer full.
+
+https://bugzilla.gnome.org/show_bug.cgi?id=660524
+---
+ libpeas-gtk/peas-gtk-plugin-manager-view.c |    2 +-
+ libpeas/peas-engine.c                      |    2 +-
+ libpeas/peas-extension-base.c              |    3 ++-
+ 3 files changed, 4 insertions(+), 3 deletions(-)
+
+diff --git a/libpeas-gtk/peas-gtk-plugin-manager-view.c b/libpeas-gtk/peas-gtk-plugin-manager-view.c
+index 7eb7361..5f8f55f 100644
+--- a/libpeas-gtk/peas-gtk-plugin-manager-view.c
++++ b/libpeas-gtk/peas-gtk-plugin-manager-view.c
+@@ -952,7 +952,7 @@ peas_gtk_plugin_manager_view_set_selected_plugin (PeasGtkPluginManagerView *view
+  *
+  * Returns the currently selected plugin, or %NULL if a plugin is not selected.
+  *
+- * Returns: the selected plugin.
++ * Returns: (transfer none): the selected plugin.
+  */
+ PeasPluginInfo *
+ peas_gtk_plugin_manager_view_get_selected_plugin (PeasGtkPluginManagerView *view)
+diff --git a/libpeas/peas-engine.c b/libpeas/peas-engine.c
+index 1adf4ff..7b57d56 100644
+--- a/libpeas/peas-engine.c
++++ b/libpeas/peas-engine.c
+@@ -733,7 +733,7 @@ compare_plugin_info_and_name (PeasPluginInfo *info,
+  * Gets the #PeasPluginInfo corresponding with @plugin_name,
+  * or %NULL if @plugin_name was not found.
+  *
+- * Returns: the #PeasPluginInfo corresponding with
++ * Returns: (transfer none): the #PeasPluginInfo corresponding with
+  * a given plugin module name.
+  */
+ PeasPluginInfo *
+diff --git a/libpeas/peas-extension-base.c b/libpeas/peas-extension-base.c
+index 329a25f..7c4cba0 100644
+--- a/libpeas/peas-extension-base.c
++++ b/libpeas/peas-extension-base.c
+@@ -141,7 +141,8 @@ peas_extension_base_class_init (PeasExtensionBaseClass *klass)
+  *
+  * Get information relative to @extbase.
+  *
+- * Return value: the #PeasPluginInfo relative to the #PeasExtensionBase.
++ * Return value: (transfer none): the #PeasPluginInfo relative
++ * to the #PeasExtensionBase.
+  */
+ PeasPluginInfo *
+ peas_extension_base_get_plugin_info (PeasExtensionBase *extbase)
+-- 
+1.7.7.2
+
diff --git a/dev-libs/libpeas/libpeas-1.2.0-r1.ebuild b/dev-libs/libpeas/libpeas-1.2.0-r1.ebuild
new file mode 100644 (file)
index 0000000..52af3cc
--- /dev/null
@@ -0,0 +1,68 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/libpeas/libpeas-1.2.0-r1.ebuild,v 1.1 2011/11/03 04:16:16 tetromino Exp $
+
+EAPI="4"
+GCONF_DEBUG="no"
+GNOME2_LA_PUNT="yes"
+PYTHON_DEPEND="python? 2:2.5"
+
+inherit eutils gnome2 python virtualx
+
+DESCRIPTION="A GObject plugins library"
+HOMEPAGE="http://www.gnome.org/"
+
+LICENSE="LGPL-2"
+SLOT="0"
+IUSE="doc gjs +gtk glade +python seed vala"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND=">=dev-libs/glib-2.23.6:2
+       >=dev-libs/gobject-introspection-0.10.1
+       gjs? ( >=dev-libs/gjs-1.29.16 )
+       glade? ( >=dev-util/glade-3.9.1:3.10 )
+       gtk? ( >=x11-libs/gtk+-2.91.1:3[introspection] )
+       python? ( >=dev-python/pygobject-3.0.0:3 )
+       seed? ( >=dev-libs/seed-2.91.91 )"
+DEPEND="${RDEPEND}
+       >=dev-util/intltool-0.40
+       >=sys-devel/gettext-0.17
+       doc? ( >=dev-util/gtk-doc-1.11 )
+       vala? ( >=dev-lang/vala-0.11.1:0.12 )"
+
+DOCS="AUTHORS ChangeLog NEWS README"
+
+pkg_setup() {
+       G2CONF="${G2CONF}
+               $(use_enable gjs)
+               $(use_enable glade glade-catalog)
+               $(use_enable gtk)
+               $(use_enable python)
+               $(use_enable seed)
+               $(use_enable vala)
+               VALAC=$(type -P valac-0.12)
+               --disable-deprecation
+               --disable-static"
+       # Wtf, --disable-gcov, --enable-gcov=no, --enable-gcov, all enable gcov
+       # What do we do about gdb, valgrind, gcov, etc?
+
+       python_set_active_version 2
+       python_pkg_setup
+}
+
+src_prepare() {
+       # Upstream patch to fix g-i annotations; prevents crashes
+       epatch "${FILESDIR}/${P}-PeasPluginInfo-annotation.patch"
+
+       gnome2_src_prepare
+}
+
+src_test() {
+       # FIXME: Tests fail because of some bug involving Xvfb and Gtk.IconTheme
+       # DO NOT REPORT UPSTREAM, this is not a libpeas bug.
+       # To reproduce:
+       # >>> from gi.repository import Gtk
+       # >>> Gtk.IconTheme.get_default().has_icon("gtk-about")
+       # This should return True, it returns False for Xvfb
+       Xemake check
+}
index 8bf7c930ef4d636fc176def94bfa9daee2b768ff..87ac1eefb12d90b6bbe0c9da11531acf9c4546cf 100644 (file)
@@ -3,12 +3,14 @@
 <pkgmetadata>
        <herd>gnome</herd>
        <use>
+               <flag name="gjs">Build support for loading JavaScript plugins using
+                       <pkg>dev-libs/gjs</pkg></flag>
+               <flag name="glade">Install the glade catalog</flag>
                <flag name="python">Build support for loading <pkg>dev-lang/python</pkg>
                        plugins</flag>
                <flag name="seed">Build support for loading JavaScript plugins using
                        <pkg>dev-libs/seed</pkg></flag>
                <flag name="vala">Build support for loading <pkg>dev-lang/vala</pkg>
                        plugins</flag>
-               <flag name="glade">Install the glade catalog</flag>
        </use>
 </pkgmetadata>