summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2009-11-23 14:04:34 +0000
committerBernard Cafarelli <voyageur@gentoo.org>2009-11-23 14:04:34 +0000
commit659889f720bbd9eba1f9fab6c4d5a856c9895246 (patch)
tree50faa6477cd6f7d59c87e04937c0f0cc6fb64b9e /x11-misc/google-gadgets
parentMasking sys-apps/inputd for QA removal. (diff)
downloadhistorical-659889f720bbd9eba1f9fab6c4d5a856c9895246.tar.gz
historical-659889f720bbd9eba1f9fab6c4d5a856c9895246.tar.bz2
historical-659889f720bbd9eba1f9fab6c4d5a856c9895246.zip
Add gtk+-2.18 support, reported by Alexandre Rostovtsev <tetromino@gmail.com> in bug #294124
Package-Manager: portage-2.2_rc51/cvs/Linux x86_64
Diffstat (limited to 'x11-misc/google-gadgets')
-rw-r--r--x11-misc/google-gadgets/ChangeLog13
-rw-r--r--x11-misc/google-gadgets/Manifest12
-rw-r--r--x11-misc/google-gadgets/files/google-gadgets-0.10.0-xulrunner-1.9.patch372
-rw-r--r--x11-misc/google-gadgets/files/google-gadgets-0.10.4-gcc41.patch42
-rw-r--r--x11-misc/google-gadgets/files/google-gadgets-0.10.4-xulrunner-1.9.1.patch82
-rw-r--r--x11-misc/google-gadgets/google-gadgets-0.10.5.ebuild136
-rw-r--r--x11-misc/google-gadgets/google-gadgets-0.11.1-r1.ebuild (renamed from x11-misc/google-gadgets/google-gadgets-0.11.0.ebuild)10
-rw-r--r--x11-misc/google-gadgets/google-gadgets-0.11.1.ebuild149
8 files changed, 21 insertions, 795 deletions
diff --git a/x11-misc/google-gadgets/ChangeLog b/x11-misc/google-gadgets/ChangeLog
index b6ba4d7c2ce1..a0fb205e7dcb 100644
--- a/x11-misc/google-gadgets/ChangeLog
+++ b/x11-misc/google-gadgets/ChangeLog
@@ -1,6 +1,17 @@
# ChangeLog for x11-misc/google-gadgets
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-misc/google-gadgets/ChangeLog,v 1.27 2009/09/09 20:35:48 voyageur Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/google-gadgets/ChangeLog,v 1.28 2009/11/23 14:04:34 voyageur Exp $
+
+*google-gadgets-0.11.1-r1 (23 Nov 2009)
+
+ 23 Nov 2009; Bernard Cafarelli <voyageur@gentoo.org>
+ -files/google-gadgets-0.10.0-xulrunner-1.9.patch,
+ -files/google-gadgets-0.10.4-gcc41.patch,
+ -files/google-gadgets-0.10.4-xulrunner-1.9.1.patch,
+ -google-gadgets-0.10.5.ebuild, -google-gadgets-0.11.0.ebuild,
+ -google-gadgets-0.11.1.ebuild, +google-gadgets-0.11.1-r1.ebuild:
+ Add gtk+-2.18 support, reported by Alexandre Rostovtsev
+ <tetromino@gmail.com> in bug #294124
*google-gadgets-0.11.1 (09 Sep 2009)
diff --git a/x11-misc/google-gadgets/Manifest b/x11-misc/google-gadgets/Manifest
index a26d72d40f7a..7ac007ae9e07 100644
--- a/x11-misc/google-gadgets/Manifest
+++ b/x11-misc/google-gadgets/Manifest
@@ -1,11 +1,5 @@
-AUX google-gadgets-0.10.0-xulrunner-1.9.patch 13284 RMD160 4bbb2f3ba511bafddd888a32641ee1e7224739be SHA1 b4ae542da4266e8e3fe70c8ce691e40c3d458b17 SHA256 7644f7b00a0e0b2c798079b6c62c4fd6ace16428e7d23c44e149ceb4ff5ca4d4
-AUX google-gadgets-0.10.4-gcc41.patch 1480 RMD160 8a6ce24cb6973d2fe6b687857b3df50bc85ea1d8 SHA1 50bf007b5fecec9157f11bc28190adc547bdc29c SHA256 00a1af861867848300ff69072ddfdfa675a4c310b94e26ffc5ab8851a359d7cc
-AUX google-gadgets-0.10.4-xulrunner-1.9.1.patch 2805 RMD160 949e5d8192f92da33c0ae702ed27a5095ae60413 SHA1 661877a741ddf1332ce6dedd88378dd55ae45a9d SHA256 11948ac7151d7e10798b8815692bf8769f060ced485cf95a4c066686ce947665
-DIST google-gadgets-for-linux-0.10.5.tar.bz2 2429875 RMD160 974f135f8e1e15732f7492ab6ba5c43bc9d44daa SHA1 c85136c862384d789dc0fab7bc4d8b9d82572f30 SHA256 944810df4b134542a1e675e6d9518503466ce9398e8bfca5e3637d994ef5038d
-DIST google-gadgets-for-linux-0.11.0.tar.bz2 2526161 RMD160 f9f8b7e7462ab26cce87f1632e01f035a67249fc SHA1 68342edf0cc168c32c424f8bbb59f84863aca5c4 SHA256 ee77f58866e94ed6ef592650329d30e81ad58cf44e418b36c9218734db02b82f
+DIST google-gadgets-0.11.1-gtk+-2.18.patch.bz2 5842 RMD160 ecfd042b8e8026364524b7a85650ce2874803067 SHA1 4f5e17e618fa7af08eb83fa4c5058c942d517eb8 SHA256 050b55424f9833253b80a95870da7f557b305fa06cf69489ffd1dc3c753ebf96
DIST google-gadgets-for-linux-0.11.1.tar.bz2 2531591 RMD160 e295ee6fd8694e6384d96282d2175f8e43767350 SHA1 f33be5c7bd8dde1103766c27cab638fe52b7b36a SHA256 353eccec0b10bea3ee7cac7594d9c20af606484ba71f2e04df09f4ad78ce7dbe
-EBUILD google-gadgets-0.10.5.ebuild 4184 RMD160 38f538b544ed6bf32c7b4355773c2fd14000353f SHA1 5ba9dc86d187f151dfe6560d310f910ca990998b SHA256 9199428814ead82d90443cb81e3cd34ad7f7b8d791db43bea2b0479b058873eb
-EBUILD google-gadgets-0.11.0.ebuild 4527 RMD160 159c6ce84991aa284b7ccbf301ba54cb452c94ab SHA1 719aa2a45a2372e344da4e107468c6b09a4d70e1 SHA256 f3bb9867ee4f88d24ed8558aa75e2b70665179e78e173feb16f5e5a4e28aae8d
-EBUILD google-gadgets-0.11.1.ebuild 4527 RMD160 8f9c4125c422efae90847fa2bd0fb4bbb13fe711 SHA1 9a5aedb27993832c0d7143e4209e4f6a4c1b88be SHA256 0d92de98d99c3c3c7fdf1dcf0f3714eafa55e65a0ffcbfc5456af152896b49b2
-MISC ChangeLog 5647 RMD160 96a1446b756aa729cc697508b5eb783d4f435919 SHA1 5f448189a9456ec257f2ae894130d9dff125c471 SHA256 44dfc85952be3a96fdb80e9786943b2e0115398ee52b6b216cefff9608e41dff
+EBUILD google-gadgets-0.11.1-r1.ebuild 4619 RMD160 4ecf7371f8c2eea58c7d4d6625444a40e2e8b681 SHA1 b22c82e31140fa079c867009ac4334fdf4f63410 SHA256 8956739fba360e831a7eebfb807e3b163b8fa3b31d0ae2ff039e1253c27f32c4
+MISC ChangeLog 6122 RMD160 f20d8f9dd24ec8702a1b184f212c79ce9e8f2878 SHA1 cf3dc1f8bdad2e52d00fedc76aa4c45d3d80180e SHA256 45b6df28e2ffa3f4c4f983cdcf278b777fbb205dc6b947fc93837a6fb6dd359a
MISC metadata.xml 486 RMD160 b08018667c1efbe528ecbbb88b4a0fe5932464f9 SHA1 6d0a5c446e901d47be27b4c707e986b8b8964c64 SHA256 200d5369ac38f83f0fe143ab1d87c734b88e52eb6eca146208fd21dec5776dda
diff --git a/x11-misc/google-gadgets/files/google-gadgets-0.10.0-xulrunner-1.9.patch b/x11-misc/google-gadgets/files/google-gadgets-0.10.0-xulrunner-1.9.patch
deleted file mode 100644
index cb2e65f151f4..000000000000
--- a/x11-misc/google-gadgets/files/google-gadgets-0.10.0-xulrunner-1.9.patch
+++ /dev/null
@@ -1,372 +0,0 @@
-Index: extensions/gtkmoz_browser_element/browser_element.cc
-===================================================================
---- extensions/gtkmoz_browser_element/browser_element.cc (revision 712)
-+++ extensions/gtkmoz_browser_element/browser_element.cc (revision 713)
-@@ -384,10 +384,6 @@
- std::string down_fd_str = StringPrintf("%d", down_pipe_fds[0]);
- std::string up_fd_str = StringPrintf("%d", up_pipe_fds[1]);
- std::string ret_fd_str = StringPrintf("%d", ret_pipe_fds[0]);
--#ifdef MOZILLA_FIVE_HOME
-- // Set appropriate environment variable for running mozilla gecko.
-- setenv("MOZILLA_FIVE_HOME", MOZILLA_FIVE_HOME, 0);
--#endif
- for (size_t i = 0; kBrowserChildNames[i]; ++i) {
- execl(kBrowserChildNames[i], kBrowserChildNames[i],
- down_fd_str.c_str(), up_fd_str.c_str(),
-Index: extensions/gtkmoz_browser_element/browser_child.cc
-===================================================================
---- extensions/gtkmoz_browser_element/browser_child.cc (revision 712)
-+++ extensions/gtkmoz_browser_element/browser_child.cc (revision 713)
-@@ -25,12 +25,18 @@
- #include <gtk/gtk.h>
-
- #define MOZILLA_CLIENT
-+
-+#ifdef XPCOM_GLUE
-+#include <gtkmozembed_glue.cpp>
-+#endif
-+
- #include <mozilla-config.h>
- #include <gtkmozembed.h>
- #include <gtkmozembed_internal.h>
- #include <jsapi.h>
- #include <jsconfig.h>
-
-+#include <nsComponentManagerUtils.h>
- #include <nsCOMPtr.h>
- #include <nsCRT.h>
- #include <nsEvent.h>
-@@ -772,9 +778,9 @@
- // Register external object (Javascript window.external object).
- g_external_object.AddRef();
- nsCOMPtr<nsIGenericFactory> factory;
-- rv = NS_NewGenericFactory(getter_AddRefs(factory),
-- &kExternalObjectComponentInfo);
-+ factory = do_CreateInstance ("@mozilla.org/generic-factory;1", &rv);
- NS_ENSURE_SUCCESS(rv, rv);
-+ factory->SetComponentInfo(&kExternalObjectComponentInfo);
- rv = registrar->RegisterFactory(kExternalObjectComponentInfo.mCID,
- EXTOBJ_CLASSNAME, EXTOBJ_CONTRACTID,
- factory);
-@@ -787,9 +793,9 @@
-
- // Register customized content policy.
- g_content_policy.AddRef();
-- rv = NS_NewGenericFactory(getter_AddRefs(factory),
-- &kContentPolicyComponentInfo);
-+ factory = do_CreateInstance ("@mozilla.org/generic-factory;1", &rv);
- NS_ENSURE_SUCCESS(rv, rv);
-+ factory->SetComponentInfo(&kContentPolicyComponentInfo);
- rv = registrar->RegisterFactory(kContentPolicyComponentInfo.mCID,
- CONTENT_POLICY_CLASSNAME,
- CONTENT_POLICY_CONTRACTID,
-@@ -803,8 +809,64 @@
- return rv;
- }
-
-+static bool InitGecko() {
-+#ifdef XPCOM_GLUE
-+ nsresult rv;
-+
-+ NS_LogInit();
-+ static const GREVersionRange kGREVersion = {
-+ "1.9a", PR_TRUE,
-+ "1.9.*", PR_TRUE
-+ };
-+
-+ char xpcom_location[4096];
-+ rv = GRE_GetGREPathWithProperties(&kGREVersion, 1, nsnull, 0, xpcom_location, 4096);
-+ if (NS_FAILED(rv)) {
-+ g_warning("Failed to find proper Gecko Runtime Environment!");
-+ return false;
-+ }
-+
-+ // Startup the XPCOM Glue that links us up with XPCOM.
-+ rv = XPCOMGlueStartup(xpcom_location);
-+ if (NS_FAILED(rv)) {
-+ g_warning("Failed to startup XPCOM Glue!");
-+ return false;
-+ }
-+
-+ rv = GTKEmbedGlueStartup();
-+ if (NS_FAILED(rv)) {
-+ g_warning("Failed to startup Gtk Embed Glue!");
-+ return false;
-+ }
-+
-+ rv = GTKEmbedGlueStartupInternal();
-+ if (NS_FAILED(rv)) {
-+ g_warning("Failed to startup Gtk Embed Glue (internal)!");
-+ return false;
-+ }
-+
-+ char *last_slash = strrchr(xpcom_location, '/');
-+ if (last_slash)
-+ *last_slash = '\0';
-+
-+ gtk_moz_embed_set_path(xpcom_location);
-+#elif defined(MOZILLA_FIVE_HOME)
-+ gtk_moz_embed_set_comp_path(MOZILLA_FIVE_HOME);
-+#endif
-+ return true;
-+}
-+
- int main(int argc, char **argv) {
-+ if (!g_thread_supported())
-+ g_thread_init(NULL);
-+
- gtk_init(&argc, &argv);
-+
-+ if (!InitGecko()) {
-+ g_warning("Failed to initialize Gecko.");
-+ return 1;
-+ }
-+
- signal(SIGPIPE, OnSigPipe);
- if (argc >= 2)
- g_down_fd = g_ret_fd = static_cast<int>(strtol(argv[1], NULL, 0));
-Index: hosts/gtk/sidebar_gtk_host.cc
-===================================================================
---- hosts/gtk/sidebar_gtk_host.cc (revision 712)
-+++ hosts/gtk/sidebar_gtk_host.cc (revision 713)
-@@ -203,9 +203,9 @@
-
- void OnHotKeyPressed() {
- if (!gadgets_shown_ || sidebar_->IsMinimized())
-- ShowOrHideAllGadgets(true);
-+ ShowOrHideAll(true);
- else
-- ShowOrHideAllGadgets(false);
-+ ShowOrHideAll(false);
- }
-
- void OnWorkAreaChange() {
-@@ -356,9 +356,9 @@
-
- void OnSideBarClose() {
- if (!gadgets_shown_ || sidebar_->IsMinimized())
-- ShowOrHideAllGadgets(true);
-+ ShowOrHideAll(true);
- else
-- ShowOrHideAllGadgets(false);
-+ ShowOrHideAll(false);
- }
-
- void OnSideBarSizeEvent() {
-@@ -1142,9 +1142,14 @@
- return false;
- }
-
-+ void ShowOrHideAll(bool show) {
-+ DLOG("ShowOrHideAll(%d)", show);
-+ ShowOrHideSideBar(show);
-+ ShowOrHideAllGadgets(show);
-+ gadgets_shown_ = show;
-+ }
-+
- void ShowOrHideAllGadgets(bool show) {
-- DLOG("ShowOrHideAllGadgets(%d)", show);
-- ShowOrHideSideBar(show);
- for (GadgetsMap::iterator it = gadgets_.begin();
- it != gadgets_.end(); ++it) {
- if (it->second.gadget->GetDisplayTarget() != Gadget::TARGET_SIDEBAR) {
-@@ -1158,7 +1163,6 @@
- OnMainViewPopIn(it->first);
- }
- }
-- gadgets_shown_ = show;
- }
-
- void ShowOrHideSideBar(bool show) {
-@@ -1421,11 +1425,11 @@
- }
-
- void ShowAllMenuHandler(const char *str) {
-- ShowOrHideAllGadgets(true);
-+ ShowOrHideAll(true);
- }
-
- void HideAllMenuHandler(const char *str) {
-- ShowOrHideAllGadgets(false);
-+ ShowOrHideAll(false);
- }
-
- void AutoHideMenuHandler(const char *str) {
-@@ -1551,6 +1555,9 @@
- g_source_remove(impl->auto_hide_source_);
- impl->auto_hide_source_ = 0;
- }
-+ if (widget == impl->sidebar_window_ && !impl->sidebar_->IsMinimized()) {
-+ impl->ShowOrHideAllGadgets(true);
-+ }
- return FALSE;
- }
-
-@@ -1613,9 +1620,9 @@
- #if GTK_CHECK_VERSION(2,10,0) && defined(GGL_HOST_LINUX)
- static void StatusIconActivateHandler(GtkWidget *widget, Impl *impl) {
- if (!impl->gadgets_shown_ || impl->sidebar_->IsMinimized())
-- impl->ShowOrHideAllGadgets(true);
-+ impl->ShowOrHideAll(true);
- else
-- impl->ShowOrHideAllGadgets(false);
-+ impl->ShowOrHideAll(false);
- }
-
- static void StatusIconPopupMenuHandler(GtkWidget *widget, guint button,
-Index: ggadget/gtk/single_view_host.cc
-===================================================================
---- ggadget/gtk/single_view_host.cc (revision 712)
-+++ ggadget/gtk/single_view_host.cc (revision 713)
-@@ -339,9 +339,9 @@
- if (record_states_)
- LoadWindowStates();
-
-- // Show window immediately. So that following calls against the window can
-- // take effect immediately.
-- gtk_widget_show_now(window_);
-+ // Can't use gtk_widget_show_now() here, because in some cases, it'll cause
-+ // nested main loop and prevent ggl-gtk from being quitted.
-+ gtk_widget_show(window_);
- gtk_window_present(GTK_WINDOW(window_));
- gdk_window_raise(window_->window);
-
-Index: ggadget/decorated_view_host.cc
-===================================================================
---- ggadget/decorated_view_host.cc (revision 712)
-+++ ggadget/decorated_view_host.cc (revision 713)
-@@ -82,6 +82,7 @@
- hittest_(HT_CLIENT),
- child_resizable_(ViewInterface::RESIZABLE_ZOOM),
- auto_restore_view_size_(true),
-+ view_state_restored_(false),
- child_view_(NULL),
- view_element_(new ViewElement(NULL, this, NULL, false)) {
- view_element_->SetVisible(true);
-@@ -104,6 +105,7 @@
- child_view_ = child_view;
- view_element_->SetChildView(child_view);
-
-+ view_state_restored_ = false;
- if (child_view_) {
- child_resizable_ = child_view_->GetResizable();
-
-@@ -401,7 +403,8 @@
- }
-
- virtual void SaveViewStates() {
-- if (!auto_restore_view_size_)
-+ // Don't save view state if the view state is not restored yet.
-+ if (!auto_restore_view_size_ || !view_state_restored_)
- return;
- View *child = GetChildView();
- Gadget *gadget = child ? child->GetGadget() : NULL;
-@@ -430,7 +433,8 @@
- View *child = GetChildView();
- Gadget *gadget = child ? child->GetGadget() : NULL;
- // Only load view states when the original size has been saved.
-- if (gadget) {
-+ // Only restore view state once.
-+ if (gadget && !view_state_restored_) {
- OptionsInterface *opt = gadget->GetOptions();
- ViewElement *elm = GetViewElement();
- std::string prefix(option_prefix_);
-@@ -458,6 +462,9 @@
- DLOG("RestoreViewStates(%d): w:%.0lf h:%.0lf s: %.2lf",
- gadget->GetInstanceID(), elm->GetPixelWidth(),
- elm->GetPixelHeight(), elm->GetScale());
-+
-+ // It's safe to save view state from now on.
-+ view_state_restored_ = true;
- UpdateViewSize();
- UpdateChildViewSize();
- }
-@@ -533,6 +540,7 @@
- HitTest hittest_;
- ViewInterface::ResizableMode child_resizable_;
- bool auto_restore_view_size_;
-+ bool view_state_restored_;
-
- View *child_view_;
- ViewElement *view_element_;
-@@ -850,7 +858,7 @@
-
- virtual void SaveViewStates() {
- Gadget *gadget = GetGadget();
-- if (gadget) {
-+ if (gadget && minimized_state_loaded_) {
- OptionsInterface *opt = gadget->GetOptions();
- opt->PutInternalValue("main_view_minimized", Variant(minimized_));
- DLOG("SaveViewStates(%d): main view minimized: %s",
-Index: configure.ac
-===================================================================
---- configure.ac (revision 712)
-+++ configure.ac (revision 713)
-@@ -551,15 +551,25 @@
- PKG_CHECK_MODULES(RSVG, librsvg-2.0 >= 2.14.0, [has_rsvg=yes], [has_rsvg=no])
-
- # Check gtkmozembed
--PKG_CHECK_MODULES(GTKMOZEMBED, [xulrunner-gtkmozembed xulrunner-js],
-- [has_gtkmozembed=xulrunner-gtkmozembed],
-- [PKG_CHECK_MODULES(GTKMOZEMBED, [firefox2-gtkmozembed firefox2-js],
-- [has_gtkmozembed=firefox2-gtkmozembed],
-- [PKG_CHECK_MODULES(GTKMOZEMBED, [firefox-gtkmozembed firefox-js],
-- [has_gtkmozembed=firefox-gtkmozembed],
-- [PKG_CHECK_MODULES(GTKMOZEMBED, [mozilla-gtkmozembed mozilla-js],
-- [has_gtkmozembed=mozilla-gtkmozembed],
-- [has_gtkmozembed=no])])])])
-+# Check priority:
-+# xulrunner 1.9: mozilla-gtkmozembed-embedding and mozilla-js
-+# xulrunner 1.9: libxul-embedding-unstable and mozilla-js
-+# xulrunner 1.8: xulrunner-gtkmozembed and xulrunner-js
-+# firefox 2.0: firefox2-gtkmozembed and firefox2-js
-+# firefox 1.5: firefox-gtkmozembed and firefox-js
-+#
-+# Add more rules here if your distribution doesn't support above rules.
-+PKG_CHECK_MODULES(GTKMOZEMBED, [mozilla-gtkmozembed-embedding mozilla-js],
-+ [has_gtkmozembed=mozilla-gtkmozembed-embedding],
-+ [PKG_CHECK_MODULES(GTKMOZEMBED, [libxul-embedding-unstable mozilla-js],
-+ [has_gtkmozembed=libxul-embedding-unstable],
-+ [PKG_CHECK_MODULES(GTKMOZEMBED, [xulrunner-gtkmozembed xulrunner-js],
-+ [has_gtkmozembed=xulrunner-gtkmozembed],
-+ [PKG_CHECK_MODULES(GTKMOZEMBED, [firefox2-gtkmozembed firefox2-js],
-+ [has_gtkmozembed=firefox2-gtkmozembed],
-+ [PKG_CHECK_MODULES(GTKMOZEMBED, [firefox-gtkmozembed firefox-js],
-+ [has_gtkmozembed=firefox-gtkmozembed],
-+ [has_gtkmozembed=no])])])])])
-
- if test x$has_dbus = xyes; then
- AC_DEFINE(HAVE_DBUS_LIBRARY,1,[Have dbus library])
-@@ -677,21 +687,26 @@
- GTKMOZEMBED_CFLAGS="$GTKMOZEMBED_CFLAGS -I$EMBED_INCDIR/dom"
- GTKMOZEMBED_CFLAGS="$GTKMOZEMBED_CFLAGS -I$EMBED_INCDIR/xpconnect"
- GTKMOZEMBED_CFLAGS="$GTKMOZEMBED_CFLAGS -I$EMBED_INCDIR/widget"
-+ GTKMOZEMBED_LDFLAGS=""
- MOZILLA_FIVE_HOME=`$PKG_CONFIG --variable=libdir $has_gtkmozembed`
- if test "x$MOZILLA_FIVE_HOME" = "x"; then
- # Some distributions doesn't have libdir, so try to extract libdir from LIBS.
-+# It usually occurs on some pre xulrunner 1.9 versions.
- # @<:@ and @:>@ will be replace by [ and ] by M4. Really evil.
-+# FIXME: Following method might not work on systems other than Linux.
- MOZILLA_FIVE_HOME=`echo $GTKMOZEMBED_LIBS | sed -e 's/.*-L\(@<:@^ @:>@*\) .*/\1/'`
-- if test ! -e "$MOZILLA_FIVE_HOME"; then
-- MOZILLA_FIVE_HOME=""
-+ # Try to find out the correct xulrunner path.
-+ if test -e "$MOZILLA_FIVE_HOME/libxpcom.so"; then
-+ XPCOM_PATH=`readlink -f $MOZILLA_FIVE_HOME/libxpcom.so`
-+ MOZILLA_FIVE_HOME=`dirname $XPCOM_PATH`
- fi
- fi
-- PREDEFINED_MACROS="$PREDEFINED_MACROS -DMOZILLA_FIVE_HOME=\\\"$MOZILLA_FIVE_HOME\\\""
-- AC_SUBST(MOZILLA_FIVE_HOME)
-- if test "x$MOZILLA_FIVE_HOME" != "x"; then
-+ if test "x$MOZILLA_FIVE_HOME" != "x" -a -d "$MOZILLA_FIVE_HOME"; then
-+ GTKMOZEMBED_CFLAGS="$GTKMOZEMBED_CFLAGS -DMOZILLA_FIVE_HOME=\\\"$MOZILLA_FIVE_HOME\\\""
- GTKMOZEMBED_LDFLAGS="$GTKMOZEMBED_LDFLAGS -R$MOZILLA_FIVE_HOME"
-- AC_SUBST(GTKMOZEMBED_LDFLAGS)
- fi
-+
-+ AC_SUBST(GTKMOZEMBED_LDFLAGS)
- fi
-
- AM_CONDITIONAL(
diff --git a/x11-misc/google-gadgets/files/google-gadgets-0.10.4-gcc41.patch b/x11-misc/google-gadgets/files/google-gadgets-0.10.4-gcc41.patch
deleted file mode 100644
index 3b8a28c39480..000000000000
--- a/x11-misc/google-gadgets/files/google-gadgets-0.10.4-gcc41.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-=== extensions/gtkmoz_browser_element/browser_element.cc
-==================================================================
---- extensions/gtkmoz_browser_element/browser_element.cc (revision 1184)
-+++ extensions/gtkmoz_browser_element/browser_element.cc (revision 1185)
-@@ -416,6 +416,8 @@
- object_id_str_(StringPrintf("%zu", object_id)),
- call_self_(this),
- to_string_(NewSlot(this, &BrowserObjectWrapper::ToString)) {
-+ if (parent_)
-+ parent_->Ref();
- }
-
- virtual ~BrowserObjectWrapper() {
-@@ -426,6 +428,8 @@
- owner_->controller_->SendCommand(kUnrefCommand, owner_->browser_id_,
- object_id_str_.c_str(), NULL);
- }
-+ if (parent_)
-+ parent_->Unref();
- }
-
- void OnOwnerDestroy() {
-@@ -523,8 +527,8 @@
- buffer += '\n';
- buffer += wrapper_->object_id_str_;
- buffer += '\n';
-- if (wrapper_->parent_.Get())
-- buffer += wrapper_->parent_.Get()->object_id_str_;
-+ if (wrapper_->parent_)
-+ buffer += wrapper_->parent_->object_id_str_;
- for (int i = 0; i < argc; i++) {
- buffer += '\n';
- buffer += wrapper_->owner_->EncodeValue(argv[i]);
-@@ -546,7 +550,7 @@
- };
-
- BrowserElementImpl *owner_;
-- ScriptableHolder<BrowserObjectWrapper> parent_;
-+ BrowserObjectWrapper *parent_;
- size_t object_id_;
- std::string object_id_str_;
- CallSelfSlot call_self_;
diff --git a/x11-misc/google-gadgets/files/google-gadgets-0.10.4-xulrunner-1.9.1.patch b/x11-misc/google-gadgets/files/google-gadgets-0.10.4-xulrunner-1.9.1.patch
deleted file mode 100644
index 7550ac8c2add..000000000000
--- a/x11-misc/google-gadgets/files/google-gadgets-0.10.4-xulrunner-1.9.1.patch
+++ /dev/null
@@ -1,82 +0,0 @@
-=== autotools/libmozjs.m4
-==================================================================
---- autotools/libmozjs.m4 (revision 1354)
-+++ autotools/libmozjs.m4 (revision 1355)
-@@ -32,9 +32,19 @@
-
- AC_MSG_CHECKING([for libmozjs.so version >= $ggl_check_libmozjs_min_version])
-
-+ AC_CHECK_HEADER([jsversion.h], [has_jsversion_h=yes], [has_jsversion_h=no])
-+ if test x$has_jsversion_h = xyes; then
-+ LIBMOZJS_CFLAGS="$LIBMOZJS_CFLAGS -DHAVE_JSVERSION_H"
-+ CPPFLAGS=$LIBMOZJS_CFLAGS
-+ fi
-+
- AC_LINK_IFELSE([[
- #include<jsapi.h>
-+ #ifdef HAVE_JSVERSION_H
-+ #include<jsversion.h>
-+ #else
- #include<jsconfig.h>
-+ #endif
-
- #if JS_VERSION < $ggl_check_libmozjs_min_version
- #error "libmozjs.so version is too low."
-@@ -68,7 +78,11 @@
- // MOZILLA_1_8_BRANCH macro is not defined but the library was compiled
- // with the flag, or vise versa.
- #include <jsapi.h>
-+ #ifdef HAVE_JSVERSION_H
-+ #include<jsversion.h>
-+ #else
- #include<jsconfig.h>
-+ #endif
-
- static JSBool f(JSContext *c, JSObject *o, uintN ac, jsval *av, jsval *r) {
- return JS_TRUE;
-=== extensions/gtkmoz_browser_element/Makefile.am
-==================================================================
---- extensions/gtkmoz_browser_element/Makefile.am (revision 1354)
-+++ extensions/gtkmoz_browser_element/Makefile.am (revision 1355)
-@@ -59,8 +59,10 @@
-
- gtkmoz_browser_child_CPPFLAGS = $(GTK2_CFLAGS) \
- $(GTKMOZEMBED_CFLAGS) \
-+ $(LIBMOZJS_CFLAGS) \
- $(PREDEFINED_MACROS)
-
-+# Don't link to libmozjs explicitly.
- gtkmoz_browser_child_LDADD = $(GTK2_LIBS) \
- $(GTKMOZEMBED_LIBS) \
- $(top_builddir)/ggadget/libggadget@GGL_EPOCH@.la \
-=== extensions/gtkmoz_browser_element/browser_child.cc
-==================================================================
---- extensions/gtkmoz_browser_element/browser_child.cc (revision 1354)
-+++ extensions/gtkmoz_browser_element/browser_child.cc (revision 1355)
-@@ -37,7 +37,12 @@
- #include <gtkmozembed.h>
- #include <gtkmozembed_internal.h>
- #include <jsapi.h>
-+
-+#ifdef HAVE_JSVERSION_H
-+#include <jsversion.h>
-+#else
- #include <jsconfig.h>
-+#endif
-
- #include <nsComponentManagerUtils.h>
- #include <nsCOMPtr.h>
-=== configure.ac
-==================================================================
---- configure.ac (revision 1354)
-+++ configure.ac (revision 1355)
-@@ -905,9 +905,6 @@
- build_gtkmoz_browser_element=no
- fi
- else
-- # Add smjs related cflags, we don't want to link to smjs explicitly,
-- # so don't use its libs.
-- GTKMOZEMBED_CFLAGS="$GTKMOZEMBED_CFLAGS $LIBMOZJS_CFLAGS"
- # Add additional include dirs for mozilla 1.8 and pre 1.9
- EMBED_INCDIR=`$PKG_CONFIG --variable=includedir $has_gtkmozembed`
- GTKMOZEMBED_CFLAGS="$GTKMOZEMBED_CFLAGS -I$EMBED_INCDIR"
diff --git a/x11-misc/google-gadgets/google-gadgets-0.10.5.ebuild b/x11-misc/google-gadgets/google-gadgets-0.10.5.ebuild
deleted file mode 100644
index 3ed7df8ca825..000000000000
--- a/x11-misc/google-gadgets/google-gadgets-0.10.5.ebuild
+++ /dev/null
@@ -1,136 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-misc/google-gadgets/google-gadgets-0.10.5.ebuild,v 1.7 2009/04/11 19:30:29 armin76 Exp $
-
-EAPI=2
-
-inherit base autotools multilib eutils fdo-mime
-
-MY_PN=${PN}-for-linux
-MY_P=${MY_PN}-${PV}
-
-DESCRIPTION="Cool gadgets from Google for your Desktop"
-HOMEPAGE="http://code.google.com/p/google-gadgets-for-linux/"
-SRC_URI="http://${MY_PN}.googlecode.com/files/${MY_P}.tar.bz2"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~x86"
-IUSE="+dbus debug +gtk +qt4 +gstreamer networkmanager startup-notification"
-
-# Weird things happen when we start mix-n-matching, so for the time being
-# I've just locked the deps to the versions I had as of Summer 2008. With any
-# luck, they'll be stable when we get to stabling this package.
-
-RDEPEND="
- >=dev-libs/libxml2-2.6.32
- net-libs/xulrunner:1.9
- sys-libs/zlib
- x11-libs/libX11
- x11-libs/libXext
- dbus? ( sys-apps/dbus )
- gstreamer? (
- >=media-libs/gstreamer-0.10.19
- >=media-libs/gst-plugins-base-0.10.19
- )
- gtk? (
- >=dev-libs/atk-1.22.0
- gnome-base/librsvg
- >=net-misc/curl-7.18.2
- >=x11-libs/cairo-1.6.4
- >=x11-libs/gtk+-2.12.10
- >=x11-libs/pango-1.20.3
- dbus? ( >=dev-libs/dbus-glib-0.74 )
- )
- networkmanager? ( net-misc/networkmanager )
- qt4? (
- >=x11-libs/qt-core-4.4.0
- >=x11-libs/qt-opengl-4.4.0
- >=x11-libs/qt-script-4.4.0
- >=x11-libs/qt-webkit-4.4.0
- >=x11-libs/qt-xmlpatterns-4.4.0
- dbus? ( >=x11-libs/qt-dbus-4.4.0 )
- )
- startup-notification? ( x11-libs/startup-notification )
-"
-DEPEND="${RDEPEND}
- >=dev-util/pkgconfig-0.20
-"
-
-S="${WORKDIR}/${MY_P}"
-
-RESTRICT="test"
-
-pkg_setup() {
- # If a non-google, non-qt4 and non-gtk host system for google-gadgets is ever developed,
- # I'll consider changing the error below.
- if ! use gtk && ! use qt4; then
- eerror "You must choose which toolkit to build for. Either qt4 or gtk can be"
- eerror "chosen. For qt4, see also above. To enable \$toolkit, do:"
- eerror "echo \"${CATEGORY}/${PN} \$toolkit\" >> /etc/portage/package.use"
- die "You need to choose a toolkit"
- fi
-
- if ! use gstreamer; then
- ewarn "Disabling gstreamer disables the multimedia functions of ${PN}."
- ewarn "This is not recommended. To enable gstreamer, do:"
- ewarn "echo \"${CATEGORY}/${PN} gstreamer\" >> /etc/portage/package.use"
- fi
-}
-
-src_prepare() {
- sed -i -r \
- -e '/^GGL_SYSDEPS_INCLUDE_DIR/ c\GGL_SYSDEPS_INCLUDE_DIR=$GGL_INCLUDE_DIR' \
- configure.ac||die "404"
- eautoreconf
-}
-
-src_configure() {
- #For the time being, the smjs-script runtime is required for both gtk and qt
- #versions, but the goal is to make the qt4 version depend only on qt-script.
- has_pkg_smjs=no \
- econf --disable-dependency-tracking \
- --disable-update-desktop-database \
- --disable-update-mime-database \
- --disable-werror \
- --enable-libxml2-xml-parser \
- --enable-smjs-script-runtime \
- --with-gtkmozembed=libxul \
- --with-smjs-cppflags=-I/usr/include/nspr \
- --with-smjs-libdir=/usr/$(get_libdir)/xulrunner-1.9 \
- --with-smjs-incdir=/usr/include/xulrunner-1.9/unstable \
- --with-browser-plugins-dir=/usr/$(get_libdir)/nsbrowser/plugins \
- --with-oem-brand=Gentoo \
- $(use_enable debug) \
- $(use_enable dbus libggadget-dbus) \
- $(use_enable gstreamer gst-audio-framework) \
- $(use_enable gstreamer gst-mediaplayer-element) \
- $(use_enable gtk gtk-host) \
- $(use_enable gtk libggadget-gtk ) \
- $(use_enable gtk gtkmoz-browser-element) \
- $(use_enable gtk gtk-flash-element) \
- $(use_enable gtk gtk-system-framework) \
- $(use_enable gtk curl_xml_http_request) \
- $(use_enable qt4 qt-host) \
- $(use_enable qt4 libggadget-qt) \
- $(use_enable qt4 qt-system-framework) \
- $(use_enable qt4 qtwebkit-browser-element) \
- $(use_enable qt4 qt-xml-http-request) \
- $(use_enable qt4 qt-script-runtime)
-}
-
-src_test() {
- #If someone wants to guarantee that emake will not make
- #tests fail promiscuosly, please do, otherwise we're using make.
- make check &> "${WORKDIR}"/check
-}
-
-src_install() {
- base_src_install
- dodoc ChangeLog README
-}
-
-pkg_postinst() {
- fdo-mime_desktop_database_update
- fdo-mime_mime_database_update
-}
diff --git a/x11-misc/google-gadgets/google-gadgets-0.11.0.ebuild b/x11-misc/google-gadgets/google-gadgets-0.11.1-r1.ebuild
index 31320673d402..a1d9c342500c 100644
--- a/x11-misc/google-gadgets/google-gadgets-0.11.0.ebuild
+++ b/x11-misc/google-gadgets/google-gadgets-0.11.1-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-misc/google-gadgets/google-gadgets-0.11.0.ebuild,v 1.2 2009/06/02 08:08:16 voyageur Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-misc/google-gadgets/google-gadgets-0.11.1-r1.ebuild,v 1.1 2009/11/23 14:04:34 voyageur Exp $
EAPI=2
@@ -11,13 +11,13 @@ MY_P=${MY_PN}-${PV}
DESCRIPTION="Cool gadgets from Google for your Desktop"
HOMEPAGE="http://code.google.com/p/google-gadgets-for-linux/"
-SRC_URI="http://${MY_PN}.googlecode.com/files/${MY_P}.tar.bz2"
+SRC_URI="http://${MY_PN}.googlecode.com/files/${MY_P}.tar.bz2
+ mirror://gentoo/${P}-gtk+-2.18.patch.bz2"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~x86"
-IUSE="+dbus debug +gtk +qt4 +gstreamer networkmanager soup startup-notification
-webkit +xulrunner"
+IUSE="+dbus debug +gtk +qt4 +gstreamer networkmanager soup startup-notification webkit +xulrunner"
# Weird things happen when we start mix-n-matching, so for the time being
# I've just locked the deps to the versions I had as of Summer 2008. With any
@@ -82,6 +82,8 @@ pkg_setup() {
}
src_prepare() {
+ epatch "${DISTDIR}"/${P}-gtk+-2.18.patch.bz2
+
sed -i -r \
-e '/^GGL_SYSDEPS_INCLUDE_DIR/ c\GGL_SYSDEPS_INCLUDE_DIR=$GGL_INCLUDE_DIR' \
configure.ac||die "404"
diff --git a/x11-misc/google-gadgets/google-gadgets-0.11.1.ebuild b/x11-misc/google-gadgets/google-gadgets-0.11.1.ebuild
deleted file mode 100644
index 68a3ed246bf1..000000000000
--- a/x11-misc/google-gadgets/google-gadgets-0.11.1.ebuild
+++ /dev/null
@@ -1,149 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-misc/google-gadgets/google-gadgets-0.11.1.ebuild,v 1.1 2009/09/09 20:35:48 voyageur Exp $
-
-EAPI=2
-
-inherit base autotools multilib eutils fdo-mime
-
-MY_PN=${PN}-for-linux
-MY_P=${MY_PN}-${PV}
-
-DESCRIPTION="Cool gadgets from Google for your Desktop"
-HOMEPAGE="http://code.google.com/p/google-gadgets-for-linux/"
-SRC_URI="http://${MY_PN}.googlecode.com/files/${MY_P}.tar.bz2"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~x86"
-IUSE="+dbus debug +gtk +qt4 +gstreamer networkmanager soup startup-notification
-webkit +xulrunner"
-
-# Weird things happen when we start mix-n-matching, so for the time being
-# I've just locked the deps to the versions I had as of Summer 2008. With any
-# luck, they'll be stable when we get to stabling this package.
-
-RDEPEND="
- >=dev-libs/libxml2-2.6.32
- sys-libs/zlib
- x11-libs/libX11
- x11-libs/libXext
- dbus? ( sys-apps/dbus )
- gstreamer? (
- >=media-libs/gstreamer-0.10.19
- >=media-libs/gst-plugins-base-0.10.19
- )
- gtk? (
- >=dev-libs/atk-1.22.0
- gnome-base/librsvg
- >=net-misc/curl-7.18.2
- >=x11-libs/cairo-1.6.4
- >=x11-libs/gtk+-2.12.10
- >=x11-libs/pango-1.20.3
- dbus? ( >=dev-libs/dbus-glib-0.74 )
- )
- networkmanager? ( net-misc/networkmanager )
- qt4? (
- >=x11-libs/qt-core-4.4.0
- >=x11-libs/qt-opengl-4.4.0
- >=x11-libs/qt-script-4.4.0
- >=x11-libs/qt-webkit-4.4.0
- >=x11-libs/qt-xmlpatterns-4.4.0
- dbus? ( >=x11-libs/qt-dbus-4.4.0 )
- )
- soup? ( >=net-libs/libsoup-2.26 )
- startup-notification? ( x11-libs/startup-notification )
- webkit? ( >=net-libs/webkit-gtk-1.0.3 )
- xulrunner? ( net-libs/xulrunner:1.9 )
-"
-DEPEND="${RDEPEND}
- >=dev-util/pkgconfig-0.20
-"
-
-S="${WORKDIR}/${MY_P}"
-
-RESTRICT="test"
-
-pkg_setup() {
- # If a non-google, non-qt4 and non-gtk host system for google-gadgets is ever developed,
- # I'll consider changing the error below.
- if ! use gtk && ! use qt4; then
- eerror "You must choose which toolkit to build for. Either qt4 or gtk can be"
- eerror "chosen. For qt4, see also above. To enable \$toolkit, do:"
- eerror "echo \"${CATEGORY}/${PN} \$toolkit\" >> /etc/portage/package.use"
- die "You need to choose a toolkit"
- fi
-
- if ! use gstreamer; then
- ewarn "Disabling gstreamer disables the multimedia functions of ${PN}."
- ewarn "This is not recommended. To enable gstreamer, do:"
- ewarn "echo \"${CATEGORY}/${PN} gstreamer\" >> /etc/portage/package.use"
- fi
-}
-
-src_prepare() {
- sed -i -r \
- -e '/^GGL_SYSDEPS_INCLUDE_DIR/ c\GGL_SYSDEPS_INCLUDE_DIR=$GGL_INCLUDE_DIR' \
- configure.ac||die "404"
- eautoreconf
-}
-
-src_configure() {
- local myconf="--disable-dependency-tracking \
- --disable-update-desktop-database \
- --disable-update-mime-database \
- --disable-werror \
- --enable-libxml2-xml-parser \
- --with-browser-plugins-dir=/usr/$(get_libdir)/nsbrowser/plugins \
- --with-ssl-ca-file=/etc/ssl/certs/ca-certificates.crt \
- --with-oem-brand=Gentoo \
- $(use_enable debug) \
- $(use_enable dbus libggadget-dbus) \
- $(use_enable gstreamer gst-audio-framework) \
- $(use_enable gstreamer gst-video-element) \
- $(use_enable soup soup-xml-http-request) \
- $(use_enable webkit webkit-script-runtime) \
- $(use_enable webkit gtkwebkit-browser-element) \
- $(use_enable gtk gtk-host) \
- $(use_enable gtk libggadget-gtk ) \
- $(use_enable gtk gtk-edit-element) \
- $(use_enable gtk gtk-flash-element) \
- $(use_enable gtk gtk-system-framework) \
- $(use_enable gtk curl_xml_http_request) \
- $(use_enable qt4 qt-host) \
- $(use_enable qt4 libggadget-qt) \
- $(use_enable qt4 qt-edit-framework) \
- $(use_enable qt4 qt-system-framework) \
- $(use_enable qt4 qtwebkit-browser-element) \
- $(use_enable qt4 qt-xml-http-request) \
- $(use_enable qt4 qt-script-runtime)"
- if use xulrunner; then
- myconf="${myconf} \
- $(use_enable gtk gtkmoz-browser-element) \
- --with-gtkmozembed=libxul \
- --enable-smjs-script-runtime \
- --with-smjs-cppflags=-I/usr/include/nspr \
- --with-smjs-libdir=/usr/$(get_libdir)/xulrunner-1.9 \
- --with-smjs-incdir=/usr/include/xulrunner-1.9/unstable"
- else
- myconf="${myconf} --disable-gtkmoz-browser-element"
- fi
-
- econf ${myconf}
-}
-
-src_test() {
- #If someone wants to guarantee that emake will not make
- #tests fail promiscuosly, please do, otherwise we're using make.
- make check &> "${WORKDIR}"/check
-}
-
-src_install() {
- base_src_install
- dodoc ChangeLog README
-}
-
-pkg_postinst() {
- fdo-mime_desktop_database_update
- fdo-mime_mime_database_update
-}