Skip to content

Commit

Permalink
with-readline 0.1.1 (new formula)
Browse files Browse the repository at this point in the history
Adds a formula for with-readline which adds readline support to tools
that don't have readline support like the OSX native sftp.

Closes Homebrew/legacy-homebrew#33454.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
  • Loading branch information
alephnull authored and MikeMcQuaid committed Nov 2, 2014
1 parent 77c26ab commit 370ffa0
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions 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

0 comments on commit 370ffa0

Please sign in to comment.