public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Alexandre Restovtsev" <tetromino@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gnome:gnome-next commit in: dev-cpp/glibmm/, dev-cpp/glibmm/files/
Date: Tue, 30 Aug 2011 23:52:40 +0000 (UTC)	[thread overview]
Message-ID: <9b750cb11848c865e446d90d0bfa43ce5969ebd1.tetromino@gentoo> (raw)

commit:     9b750cb11848c865e446d90d0bfa43ce5969ebd1
Author:     Alexandre Rostovtsev <tetromino <AT> gmail <DOT> com>
AuthorDate: Tue Aug 30 22:05:14 2011 +0000
Commit:     Alexandre Restovtsev <tetromino <AT> gmail <DOT> com>
CommitDate: Tue Aug 30 23:52:19 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=9b750cb1

dev-cpp/glibmm: 2.29.11 → 2.29.11-r1, glib-2.29.18 compatibility

Backport an upstream patch for glib-2.29.18 compatibility.

---
 .../glibmm-2.29.11-timezonemonitor-generated.patch |   42 ++++++
 .../files/glibmm-2.29.11-timezonemonitor.patch     |  138 ++++++++++++++++++++
 ...bmm-2.29.11.ebuild => glibmm-2.29.11-r1.ebuild} |    9 +-
 3 files changed, 188 insertions(+), 1 deletions(-)

diff --git a/dev-cpp/glibmm/files/glibmm-2.29.11-timezonemonitor-generated.patch b/dev-cpp/glibmm/files/glibmm-2.29.11-timezonemonitor-generated.patch
new file mode 100644
index 0000000..649e296
--- /dev/null
+++ b/dev-cpp/glibmm/files/glibmm-2.29.11-timezonemonitor-generated.patch
@@ -0,0 +1,42 @@
+--- a/glib/glibmm/timezone.cc
++++ b/glib/glibmm/timezone.cc
+@@ -117,13 +117,6 @@
+   return Glib::wrap(g_time_zone_new_utc());
+ }
+ 
+-
+-void TimeZone::refresh_local()
+-{
+-g_time_zone_refresh_local();
+-}
+-
+-
+ int TimeZone::find_interval(TimeType type, gint64 time) const
+ {
+   return g_time_zone_find_interval(const_cast<GTimeZone*>(gobj()), ((GTimeType)(type)), time);
+--- a/glib/glibmm/timezone.h
++++ b/glib/glibmm/timezone.h
+@@ -160,23 +160,6 @@
+    */
+   static TimeZone create_utc();
+ 
+-  
+-  /** Notifies TimeZone that the local timezone may have changed.
+-   * 
+-   * In response, TimeZone will drop its cache of the local time zone.
+-   * No existing TimeZone will be modified and no DateTime will change
+-   * its timezone but future calls to g_time_zone_new_local() will start
+-   * returning the new timezone.
+-   * 
+-   * TimeZone does no monitoring of the local timezone on its own, which
+-   * is why you have to call this function to notify it of the change.
+-   * 
+-   * If you use TimeZoneMonitor to watch for changes then this function
+-   * will automatically be called for you.
+-   */
+-  static void refresh_local();
+-
+-  
+   /** Finds an the interval within @a tz that corresponds to the given @a time.
+    * The meaning of @a time depends on @a type.
+    * 

diff --git a/dev-cpp/glibmm/files/glibmm-2.29.11-timezonemonitor.patch b/dev-cpp/glibmm/files/glibmm-2.29.11-timezonemonitor.patch
new file mode 100644
index 0000000..47825ea
--- /dev/null
+++ b/dev-cpp/glibmm/files/glibmm-2.29.11-timezonemonitor.patch
@@ -0,0 +1,138 @@
+From fb93262ca182aeb54632a3ddead4ed8e84b80ddc Mon Sep 17 00:00:00 2001
+From: José Alburquerque <jaalburqu@svn.gnome.org>
+Date: Mon, 22 Aug 2011 22:03:27 +0000
+Subject: TimeZoneMonitor: Remove as was done in glib.
+
+	* gio/src/filelist.am:
+	* gio/src/timezonemonitor.{ccg,hg}: Remove sources and the mention
+	from the build.
+	* glib/src/timezone.hg (refresh_local): Remove this method as the
+	function that it wraps was also removed from glib.
+	* tools/extra_defs_gen/generate_defs_gio.cc
+	(G_TYPE_TIME_ZONE_MONITOR): Remove this GType from the list of types
+	for which properties and signals are generated.
+
+	See the glib commit:
+	http://git.gnome.org/browse/glib/commit/?id=5b68b49b2072c371c72ee96175e3d6a727eb5e8b
+
+[Alexandre Rostovtsev <tetromino@gmail.com>: backport to 2.29.11 tarball release]
+---
+diff -ur a/gio/giomm/wrap_init.cc b/gio/giomm/wrap_init.cc
+--- a/gio/giomm/wrap_init.cc
++++ b/gio/giomm/wrap_init.cc
+@@ -90,7 +90,6 @@
+ #include "tcpconnection.h"
+ #include "themedicon.h"
+ #include "threadedsocketservice.h"
+-#include "timezonemonitor.h"
+ #ifndef G_OS_WIN32
+ #include "unixconnection.h"
+ #endif //G_OS_WIN32
+@@ -172,7 +171,6 @@
+ GType g_tcp_connection_get_type(void);
+ GType g_themed_icon_get_type(void);
+ GType g_threaded_socket_service_get_type(void);
+-GType g_time_zone_monitor_get_type(void);
+ #ifndef G_OS_WIN32
+ GType g_unix_connection_get_type(void);
+ #endif //G_OS_WIN32
+@@ -258,7 +256,6 @@
+ namespace Gio {  class TcpConnection_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
+ namespace Gio {  class ThemedIcon_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
+ namespace Gio {  class ThreadedSocketService_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
+-namespace Gio {  class TimeZoneMonitor_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
+ #ifndef G_OS_WIN32
+ namespace Gio {  class UnixConnection_Class { public: static Glib::ObjectBase* wrap_new(GObject*); };  }
+ #endif //G_OS_WIN32
+@@ -344,7 +341,6 @@
+   Glib::wrap_register(g_tcp_connection_get_type(), &Gio::TcpConnection_Class::wrap_new);
+   Glib::wrap_register(g_themed_icon_get_type(), &Gio::ThemedIcon_Class::wrap_new);
+   Glib::wrap_register(g_threaded_socket_service_get_type(), &Gio::ThreadedSocketService_Class::wrap_new);
+-  Glib::wrap_register(g_time_zone_monitor_get_type(), &Gio::TimeZoneMonitor_Class::wrap_new);
+ #ifndef G_OS_WIN32
+   Glib::wrap_register(g_unix_connection_get_type(), &Gio::UnixConnection_Class::wrap_new);
+ #endif //G_OS_WIN32
+@@ -421,7 +417,6 @@
+   Gio::TcpConnection::get_type();
+   Gio::ThemedIcon::get_type();
+   Gio::ThreadedSocketService::get_type();
+-  Gio::TimeZoneMonitor::get_type();
+ #ifndef G_OS_WIN32
+   Gio::UnixConnection::get_type();
+ #endif //G_OS_WIN32
+diff -ur a/gio/src/filelist.am b/gio/src/filelist.am
+--- a/gio/src/filelist.am
++++ b/gio/src/filelist.am
+@@ -88,7 +88,6 @@
+ 	tcpconnection.hg			\
+ 	threadedsocketservice.hg	\
+ 	themedicon.hg			\
+-	timezonemonitor.hg		\
+ 	volume.hg			\
+ 	volumemonitor.hg
+ 
+diff -ur a/glib/glibmm/timezone.cc b/glib/glibmm/timezone.cc
+--- a/glib/glibmm/timezone.cc
++++ b/glib/glibmm/timezone.cc
+@@ -118,12 +118,6 @@
+ }
+ 
+ 
+-void TimeZone::refresh_local()
+-{
+-g_time_zone_refresh_local();
+-}
+-
+-
+ int TimeZone::find_interval(TimeType type, gint64 time) const
+ {
+   return g_time_zone_find_interval(const_cast<GTimeZone*>(gobj()), ((GTimeType)(type)), time);
+diff -ur a/glib/glibmm/timezone.h b/glib/glibmm/timezone.h
+--- a/glib/glibmm/timezone.h
++++ b/glib/glibmm/timezone.h
+@@ -161,22 +161,6 @@
+   static TimeZone create_utc();
+ 
+   
+-  /** Notifies TimeZone that the local timezone may have changed.
+-   * 
+-   * In response, TimeZone will drop its cache of the local time zone.
+-   * No existing TimeZone will be modified and no DateTime will change
+-   * its timezone but future calls to g_time_zone_new_local() will start
+-   * returning the new timezone.
+-   * 
+-   * TimeZone does no monitoring of the local timezone on its own, which
+-   * is why you have to call this function to notify it of the change.
+-   * 
+-   * If you use TimeZoneMonitor to watch for changes then this function
+-   * will automatically be called for you.
+-   */
+-  static void refresh_local();
+-
+-  
+   /** Finds an the interval within @a tz that corresponds to the given @a time.
+    * The meaning of @a time depends on @a type.
+    * 
+diff -ur a/glib/src/timezone.hg b/glib/src/timezone.hg
+--- a/glib/src/timezone.hg
++++ b/glib/src/timezone.hg
+@@ -62,8 +62,6 @@
+   _WRAP_METHOD(static TimeZone create_local(), g_time_zone_new_local)
+   _WRAP_METHOD(static TimeZone create_utc(), g_time_zone_new_utc)
+ 
+-  _WRAP_METHOD(static void refresh_local(), g_time_zone_refresh_local)
+-
+   _WRAP_METHOD(int find_interval(TimeType type, gint64 time) const, g_time_zone_find_interval)
+   _WRAP_METHOD(int adjust_time(TimeType type, gint64& time) const, g_time_zone_adjust_time)
+   _WRAP_METHOD(Glib::ustring get_abbreviation(int interval) const, g_time_zone_get_abbreviation)
+diff -ur a/tools/extra_defs_gen/generate_defs_gio.cc b/tools/extra_defs_gen/generate_defs_gio.cc
+--- a/tools/extra_defs_gen/generate_defs_gio.cc
++++ b/tools/extra_defs_gen/generate_defs_gio.cc
+@@ -82,7 +82,6 @@
+             << get_defs(G_TYPE_SETTINGS_BACKEND)
+             << get_defs(G_TYPE_SIMPLE_ASYNC_RESULT)
+             << get_defs(G_TYPE_THEMED_ICON)
+-            << get_defs(G_TYPE_TIME_ZONE_MONITOR)
+ 
+             //TODO: This causes a g_warning:
+             //GLib-GObject-CRITICAL **: g_param_spec_pool_list: assertion `pool != NULL' failed"

diff --git a/dev-cpp/glibmm/glibmm-2.29.11.ebuild b/dev-cpp/glibmm/glibmm-2.29.11-r1.ebuild
similarity index 84%
rename from dev-cpp/glibmm/glibmm-2.29.11.ebuild
rename to dev-cpp/glibmm/glibmm-2.29.11-r1.ebuild
index cc54551..fab7e74 100644
--- a/dev-cpp/glibmm/glibmm-2.29.11.ebuild
+++ b/dev-cpp/glibmm/glibmm-2.29.11-r1.ebuild
@@ -6,7 +6,7 @@ EAPI="4"
 GCONF_DEBUG="no"
 GNOME2_LA_PUNT="yes"
 
-inherit gnome2
+inherit autotools eutils gnome2
 
 DESCRIPTION="C++ interface for glib2"
 HOMEPAGE="http://www.gtkmm.org"
@@ -32,6 +32,13 @@ pkg_setup() {
 }
 
 src_prepare() {
+	# Backport of upstream patch for glib-2.29.18 compatibility
+	rm gio/src/timezonemonitor.{ccg,hg} \
+		gio/giomm/private/timezonemonitor_p.h \
+		gio/giomm/timezonemonitor.{cc,h} || die "rm failed"
+	epatch "${FILESDIR}/${P}-timezonemonitor.patch"
+	eautoreconf
+
 	gnome2_src_prepare
 
 	if ! use test; then



             reply	other threads:[~2011-08-30 23:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-30 23:52 Alexandre Restovtsev [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-09-07 21:30 [gentoo-commits] proj/gnome:gnome-next commit in: dev-cpp/glibmm/, dev-cpp/glibmm/files/ Alexandre Restovtsev

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=9b750cb11848c865e446d90d0bfa43ce5969ebd1.tetromino@gentoo \
    --to=tetromino@gmail.com \
    --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