diff options
| author | David Holm | 2014-02-02 10:03:08 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2014-02-02 10:03:08 +0000 |
| commit | 2b3377afbc652e8e520e4280b846a983bf2d8527 (patch) | |
| tree | 3da705138191e057fff14e49102c41a3156e5115 /Library/Formula/es.rb | |
| parent | 5426de551b4d0a98dd25c6618c351e2752b3c02d (diff) | |
| download | homebrew-2b3377afbc652e8e520e4280b846a983bf2d8527.tar.bz2 | |
es 0.9 (new formula)
Closes #26298.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula/es.rb')
| -rw-r--r-- | Library/Formula/es.rb | 26 |
1 files changed, 26 insertions, 0 deletions
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 |
