freebsd-ports/lang/ruby21/files/patch-ext_readline_extconf.rb
Michael Moll 9e4f8bdd8b lang/ruby2*: fix readline & libedit configure options
The fixed error(s) were only visible with LOCALBASE not set to /usr/local.

PR:		203988
Submitted by:	John Hein <z7dr6ut7gs@snkmail.com>
2015-10-25 00:21:23 +00:00

19 lines
688 B
Ruby

--- ext/readline/extconf.rb.orig 2014-05-01 11:59:37.000000000 +0000
+++ ext/readline/extconf.rb 2015-10-23 04:05:44.000000000 +0000
@@ -37,6 +37,7 @@
case enable_libedit
when true
# --enable-libedit
+ dir_config("libedit")
unless (readline.have_header("editline/readline.h") ||
readline.have_header("readline/readline.h")) &&
have_library("edit", "readline")
@@ -62,7 +63,7 @@ else
end
readline.have_func("rl_getc")
-readline.have_func("rl_getc_function")
+#readline.have_func("rl_getc_function")
readline.have_func("rl_filename_completion_function")
readline.have_func("rl_username_completion_function")
readline.have_func("rl_completion_matches")