Skip to content
Permalink
Browse files

gtksourceview: autoreconf to fix intltool configuration, add build fi…

…x, update build deps.

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@118364 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
dbevans committed Mar 31, 2014
1 parent 7d4e0c7 commit 8903a3a208b54a66b76e4e3262e39f4eb6a5c4cb
@@ -27,7 +27,9 @@ checksums md5 de67df2944c1cccbc2d0b4a738e11050 \
rmd160 978c59d5f99baeb5d8b9c3c14246ffc48ce150f8

depends_build port:intltool \
port:pkgconfig
port:pkgconfig \
port:gnome-common \
port:gtk-doc

depends_lib port:gtk2 \
port:gnome-vfs \
@@ -37,11 +39,25 @@ depends_lib port:gtk2 \
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}/
@@ -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"

@@ -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"
+#include <gnuregex.h>
-#endif
+#include <gnuregex.h>

#include "gtksourceview-i18n.h"
#include "gtksourceregex.h"

0 comments on commit 8903a3a

Please sign in to comment.
You can’t perform that action at this time.