aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAlok G Singh2014-10-22 02:15:20 +0530
committerMike McQuaid2014-11-02 09:51:33 +0000
commitd5911f6ce70ec30340dfa5fd424129e10012b71a (patch)
treea9f4a67929aef70cb5dbf9ee57d55ee3f326059a /Library
parent6904bf4239f782de14ced3bdcec6abb8bd6cd59a (diff)
downloadhomebrew-d5911f6ce70ec30340dfa5fd424129e10012b71a.tar.bz2
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 <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/with-readline.rb24
1 files changed, 24 insertions, 0 deletions
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