2014-02-02 10:03:08 +00:00
|
|
|
require "formula"
|
|
|
|
|
|
|
|
class Es < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Extensible shell with first class functions, lexical scoping, and more"
|
2014-02-02 10:03:08 +00:00
|
|
|
homepage "http://wryun.github.io/es-shell/"
|
2014-03-17 16:12:54 +00:00
|
|
|
url "https://github.com/downloads/wryun/es-shell/es-0.9.tar.gz"
|
2014-02-02 10:03:08 +00:00
|
|
|
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
|