Revision
124890
Author
jeremyhu@macports.org
Date
2014-08-30 03:36:35 -0700 (Sat, 30 Aug 2014)

Log Message

seed: Build fix from FreeBSD

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=188670

Modified Paths

Added Paths

Diff

Modified: trunk/dports/gnome/seed/Portfile (124889 => 124890)


--- trunk/dports/gnome/seed/Portfile	2014-08-30 09:52:51 UTC (rev 124889)
+++ trunk/dports/gnome/seed/Portfile	2014-08-30 10:36:35 UTC (rev 124890)
@@ -44,6 +44,8 @@
 
 configure.args  --disable-gettext-module
 
+patchfiles patch-modules_readline_seed-readline.c
+
 platform darwin {
     if {${configure.cxx_stdlib} eq "libstdc++"} {
        depends_lib-delete path:lib/pkgconfig/webkitgtk-3.0.pc:webkit-gtk3

Added: trunk/dports/gnome/seed/files/patch-modules_readline_seed-readline.c (0 => 124890)


--- trunk/dports/gnome/seed/files/patch-modules_readline_seed-readline.c	                        (rev 0)
+++ trunk/dports/gnome/seed/files/patch-modules_readline_seed-readline.c	2014-08-30 10:36:35 UTC (rev 124890)
@@ -0,0 +1,16 @@
+'Function' is deprecated - patch to work with older readline API
+(e.g., currently in base) or new (e.g., readline 6.3.3 in ports).
+
+http://lists.gnu.org/archive/html/bug-readline/2014-03/msg00002.html
+
+--- modules/readline/seed-readline.c.orig	2010-08-30 15:37:39.000000000 -0600
++++ modules/readline/seed-readline.c	2014-04-15 13:00:13.000000000 -0600
+@@ -77,7 +77,7 @@
+   key = seed_value_to_string(ctx, arguments[0], exception);
+   c = seed_make_rl_closure((SeedObject) arguments[1]);
+ 
+-  rl_bind_key(*key, (Function *) c);
++  rl_bind_key(*key, (rl_command_func_t *) c);
+ 
+   g_free(key);
+