[118364] trunk/dports/gnome/gtksourceview

devans at macports.org devans at macports.org
Mon Mar 31 15:45:19 PDT 2014


Revision: 118364
          https://trac.macports.org/changeset/118364
Author:   devans at macports.org
Date:     2014-03-31 15:45:19 -0700 (Mon, 31 Mar 2014)
Log Message:
-----------
gtksourceview: autoreconf to fix intltool configuration, add build fix, update build deps.

Modified Paths:
--------------
    trunk/dports/gnome/gtksourceview/Portfile
    trunk/dports/gnome/gtksourceview/files/patch-gtksourceregex.c.diff

Added Paths:
-----------
    trunk/dports/gnome/gtksourceview/files/patch-gtksourcelanguage.c.diff

Modified: trunk/dports/gnome/gtksourceview/Portfile
===================================================================
--- trunk/dports/gnome/gtksourceview/Portfile	2014-03-31 22:39:39 UTC (rev 118363)
+++ trunk/dports/gnome/gtksourceview/Portfile	2014-03-31 22:45:19 UTC (rev 118364)
@@ -27,7 +27,9 @@
                 rmd160 978c59d5f99baeb5d8b9c3c14246ffc48ce150f8
 
 depends_build   port:intltool \
-                port:pkgconfig
+                port:pkgconfig \
+                port:gnome-common \
+                port:gtk-doc
 
 depends_lib     port:gtk2 \
                 port:gnome-vfs \
@@ -37,12 +39,26 @@
                 port:gettext \
                 port:gnuregex
 
-patchfiles      patch-glib-2.32.diff patch-gtksourceregex.c.diff
+patchfiles      patch-glib-2.32.diff \
+                patch-gtksourceregex.c.diff \
+                patch-gtksourcelanguage.c.diff
 
-configure.args  --enable-gnuregex
+# autoreconf to reconfigure with our intltool.m4
 
-configure.cppflags-append   -L${prefix}/lib
+use_autoreconf  yes
+autoreconf.args -fvi
 
+#test-widget.c:186:26: error: format string is not a string literal [-Werror,-Wformat-nonliteral]
+#        tmp = g_strdup_vprintf (msg, ap);
+#                                ^~~
+#test-widget.c:193:7: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security]
+#                                         tmp);
+#                                          ^~~
+# TODO: fix code rather than suppress fatal error
+
+configure.cflags-append \
+                -Wno-error=format-nonliteral -Wno-error=format-security
+
 livecheck.type  regex
 livecheck.url   http://ftp.gnome.org/pub/gnome/sources/${name}/${branch}/
 livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}

Added: trunk/dports/gnome/gtksourceview/files/patch-gtksourcelanguage.c.diff
===================================================================
--- trunk/dports/gnome/gtksourceview/files/patch-gtksourcelanguage.c.diff	                        (rev 0)
+++ trunk/dports/gnome/gtksourceview/files/patch-gtksourcelanguage.c.diff	2014-03-31 22:45:19 UTC (rev 118364)
@@ -0,0 +1,10 @@
+--- gtksourceview/gtksourcelanguage.c.orig	2014-03-31 13:07:52.000000000 -0700
++++ gtksourceview/gtksourcelanguage.c	2014-03-31 13:08:31.000000000 -0700
+@@ -31,6 +31,7 @@
+ #include <libxml/xmlreader.h>
+ 
+ #include <glib.h>
++#include <glib/gstdio.h>
+ 
+ #include "gtksourceview-i18n.h"
+ 

Modified: trunk/dports/gnome/gtksourceview/files/patch-gtksourceregex.c.diff
===================================================================
--- trunk/dports/gnome/gtksourceview/files/patch-gtksourceregex.c.diff	2014-03-31 22:39:39 UTC (rev 118363)
+++ trunk/dports/gnome/gtksourceview/files/patch-gtksourceregex.c.diff	2014-03-31 22:45:19 UTC (rev 118364)
@@ -1,5 +1,5 @@
---- gtksourceview/gtksourceregex.c.org	Fri Nov 28 11:23:58 2003
-+++ gtksourceview/gtksourceregex.c	Fri Nov 28 11:24:18 2003
+--- gtksourceview/gtksourceregex.c.orig	2007-01-03 07:40:28.000000000 -0800
++++ gtksourceview/gtksourceregex.c	2014-03-31 13:12:04.000000000 -0700
 @@ -26,12 +26,7 @@
  #include <stdlib.h>
  #include <glib.h>
@@ -9,8 +9,8 @@
 -#include <regex.h>
 -#else
 -#include "gnu-regex/regex.h"
+-#endif
 +#include <gnuregex.h>
--#endif
  
- #include "gtksourceview-i18n.h"
  #include "gtksourceregex.h"
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140331/646f4594/attachment.html>


More information about the macports-changes mailing list