From d5911f6ce70ec30340dfa5fd424129e10012b71a Mon Sep 17 00:00:00 2001 From: Alok G Singh Date: Wed, 22 Oct 2014 02:15:20 +0530 Subject: with-readline 0.1.1 (new formula) Adds a formula for with-readline which adds readline support to tools that don't have readline support like the OSX native sftp. Closes #33454. Signed-off-by: Mike McQuaid --- Library/Formula/with-readline.rb | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Library/Formula/with-readline.rb (limited to 'Library/Formula') diff --git a/Library/Formula/with-readline.rb b/Library/Formula/with-readline.rb new file mode 100644 index 000000000..a3d0cfde8 --- /dev/null +++ b/Library/Formula/with-readline.rb @@ -0,0 +1,24 @@ +require "formula" + +class WithReadline < Formula + homepage "http://www.greenend.org.uk/rjk/sw/withreadline.html" + url "http://www.greenend.org.uk/rjk/sw/with-readline-0.1.1.tar.gz" + sha1 "ac32f4b23853024f2a42441fa09b20cbe7617ff5" + + depends_on "readline" + + option :universal + + def install + system "./configure", "--disable-debug", + "--disable-dependency-tracking", + "--prefix=#{prefix}" + system "make", "install" + end + + test do + # Some test is better than no test + system bin/"with-readline", "--version" + system bin/"echo 'exit' | with-readline expect" + end +end -- cgit v1.2.3