[153757] trunk/dports/graphics/gimp3-devel

devans at macports.org devans at macports.org
Mon Oct 10 05:52:30 CEST 2016


Revision: 153757
          https://trac.macports.org/changeset/153757
Author:   devans at macports.org
Date:     2016-10-09 20:52:30 -0700 (Sun, 09 Oct 2016)
Log Message:
-----------
gimp3-devel: remove hard runtime dependency on a specific GNOME/GTK web browser to display help, patch GIMP generic web browser plugin to fall back to using the macOS default web browser if no GNOME/GTK web browser is available (#52548, #52549).

Modified Paths:
--------------
    trunk/dports/graphics/gimp3-devel/Portfile

Added Paths:
-----------
    trunk/dports/graphics/gimp3-devel/files/patch-plug-ins-common-web-browser.c.diff

Modified: trunk/dports/graphics/gimp3-devel/Portfile
===================================================================
--- trunk/dports/graphics/gimp3-devel/Portfile	2016-10-10 03:21:40 UTC (rev 153756)
+++ trunk/dports/graphics/gimp3-devel/Portfile	2016-10-10 03:52:30 UTC (rev 153757)
@@ -10,7 +10,7 @@
 set git_commit      fc73b3249d8b223bfa0a0434ea18d2c5b3bc57b8
 set git_date        20160330
 version             2.99.0-${git_date}
-revision            2
+revision            3
 license             GPL-3+
 categories          graphics
 maintainers         devans
@@ -74,14 +74,13 @@
                     port:xorg-libXext \
                     port:xorg-libXfixes
 
-depends_run         port:epiphany
-
 # gcc-4.2 5493 and 5666.3_13: gimpcpuaccel.c:180: error: can't find a register in class 'BREG' while reloading 'asm'
 # redefinition of typedef is invalid in C [-Wtypedef-redefinition] (#50329)
 
 compiler.blacklist *gcc* {clang < 300}
 
-patchfiles          patch-etc-gimprc.diff
+patchfiles          patch-etc-gimprc.diff \
+                    patch-plug-ins-common-web-browser.c.diff
 
 pre-configure {
     if {[file exists ${prefix}/lib/gtk-2.0/include/gdkconfig.h]} {

Added: trunk/dports/graphics/gimp3-devel/files/patch-plug-ins-common-web-browser.c.diff
===================================================================
--- trunk/dports/graphics/gimp3-devel/files/patch-plug-ins-common-web-browser.c.diff	                        (rev 0)
+++ trunk/dports/graphics/gimp3-devel/files/patch-plug-ins-common-web-browser.c.diff	2016-10-10 03:52:30 UTC (rev 153757)
@@ -0,0 +1,29 @@
+--- plug-ins/common/web-browser.c.orig	2015-08-15 00:52:41.000000000 -0700
++++ plug-ins/common/web-browser.c	2016-10-09 03:07:01.000000000 -0700
+@@ -181,11 +181,25 @@
+ 
+   return TRUE;
+ #else
++  gboolean rstatus;
++  gchar *command_line;
++
+   gimp_ui_init (PLUG_IN_BINARY, FALSE);
+ 
+-  return gtk_show_uri (gdk_screen_get_default (),
++  rstatus = gtk_show_uri (gdk_screen_get_default (),
+                        url,
+                        gtk_get_current_event_time(),
+                        error);
++
++  if (!rstatus) {
++     command_line = g_strdup_printf ("open %s", url);
++
++     rstatus = g_spawn_command_line_async (command_line,
++                       error);
++
++     g_free (command_line);
++  }
++  
++  return rstatus;
+ #endif
+ }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-changes/attachments/20161009/d63e7a02/attachment-0002.html>


More information about the macports-changes mailing list