summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2014-04-21 18:17:35 +0000
committerjoerg <joerg@pkgsrc.org>2014-04-21 18:17:35 +0000
commit1d7080e788cb75e3f33e5b13eff664032df694ca (patch)
treeb3583efc7235251f6193cf0a64024b146015c9b9
parent93079aaf9890ca90f0118d9f7ed6fd88a5464535 (diff)
downloadpkgsrc-1d7080e788cb75e3f33e5b13eff664032df694ca.tar.gz
Fix readline use.
-rw-r--r--math/genius/distinfo4
-rw-r--r--math/genius/patches/patch-src_genius-readline-helper.c23
-rw-r--r--math/genius/patches/patch-src_inter.c12
3 files changed, 38 insertions, 1 deletions
diff --git a/math/genius/distinfo b/math/genius/distinfo
index 504c127a4d7..35539940587 100644
--- a/math/genius/distinfo
+++ b/math/genius/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.19 2013/10/27 20:35:48 joerg Exp $
+$NetBSD: distinfo,v 1.20 2014/04/21 18:17:35 joerg Exp $
SHA1 (genius-1.0.17.tar.gz) = 884a12db62de68aa90b078ba9baa124f73c44f51
RMD160 (genius-1.0.17.tar.gz) = 17b6fa3fddf65f4bab8e0d7721f85ea8a666d838
@@ -7,3 +7,5 @@ SHA1 (patch-configure) = a1431b1e521c35eea3df1acc16415806b54f58e7
SHA1 (patch-configure.in) = 73fcc7ba580b7f575bd16fdcf12fe81518904379
SHA1 (patch-gtkextra_gtkplot.c) = 3ea37b0a15454b5d81d62b93dd4a70828259d97f
SHA1 (patch-gtkextra_gtkplotsurface.c) = 5f1e98dc7268ebef3a5edf04496a92b4f620114c
+SHA1 (patch-src_genius-readline-helper.c) = 957f2241399a9092e6634b3c105ce7e487bfca07
+SHA1 (patch-src_inter.c) = 619a0f553acc0c30960cebfc4fa10146baac5dc4
diff --git a/math/genius/patches/patch-src_genius-readline-helper.c b/math/genius/patches/patch-src_genius-readline-helper.c
new file mode 100644
index 00000000000..3e0f010f3fb
--- /dev/null
+++ b/math/genius/patches/patch-src_genius-readline-helper.c
@@ -0,0 +1,23 @@
+$NetBSD: patch-src_genius-readline-helper.c,v 1.1 2014/04/21 18:17:35 joerg Exp $
+
+--- src/genius-readline-helper.c.orig 2014-04-20 18:20:05.000000000 +0000
++++ src/genius-readline-helper.c
+@@ -104,7 +104,7 @@ plugin_generator (const char *text, int
+ /* Note: keep in sync with inter.c */
+ /* FIXME: make this common */
+ static char **
+-tab_completion (char *text, int start, int end)
++tab_completion (const char *text, int start, int end)
+ {
+ char *p;
+ for(p=rl_line_buffer;*p==' ' || *p=='\t';p++)
+@@ -182,8 +182,7 @@ main(int argc, char *argv[])
+ rl_catch_sigwinch = 1;
+ rl_terminal_name = "xterm";
+ rl_readline_name = "Genius";
+- rl_attempted_completion_function =
+- (CPPFunction *)tab_completion;
++ rl_attempted_completion_function = tab_completion;
+
+ while(fgets(buf,4096,infp)) {
+ int count;
diff --git a/math/genius/patches/patch-src_inter.c b/math/genius/patches/patch-src_inter.c
new file mode 100644
index 00000000000..87736a9c9b6
--- /dev/null
+++ b/math/genius/patches/patch-src_inter.c
@@ -0,0 +1,12 @@
+$NetBSD: patch-src_inter.c,v 1.1 2014/04/21 18:17:35 joerg Exp $
+
+--- src/inter.c.orig 2014-04-20 18:19:20.000000000 +0000
++++ src/inter.c
+@@ -366,6 +366,5 @@ void
+ init_inter(void)
+ {
+ rl_readline_name = "Genius";
+- rl_attempted_completion_function =
+- (CPPFunction *)tab_completion;
++ rl_attempted_completion_function = tab_completion;
+ }