From 2b3377afbc652e8e520e4280b846a983bf2d8527 Mon Sep 17 00:00:00 2001 From: David Holm Date: Sun, 2 Feb 2014 10:03:08 +0000 Subject: es 0.9 (new formula) Closes #26298. Signed-off-by: Mike McQuaid --- Library/Formula/es.rb | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Library/Formula/es.rb (limited to 'Library/Formula') diff --git a/Library/Formula/es.rb b/Library/Formula/es.rb new file mode 100644 index 000000000..f139e14a5 --- /dev/null +++ b/Library/Formula/es.rb @@ -0,0 +1,26 @@ +require "formula" + +class Es < Formula + homepage "http://wryun.github.io/es-shell/" + url "http://github.com/downloads/wryun/es-shell/es-0.9.tar.gz" + sha1 "40b0b3838c07a434b4cccca9a8bb173c71eda7d8" + + option 'with-readline', 'Use readline instead of libedit' + + depends_on 'readline' => :optional + + def install + args = ["--prefix=#{prefix}"] + args << "--with-readline" if build.with? 'readline' + system "./configure", *args + system "make" + + man1.install 'doc/es.1' + bin.install 'es' + doc.install %w{CHANGES README trip.es examples} + end + + test do + system "#{bin}/es < #{doc}/trip.es" + end +end -- cgit v1.2.3