2014-02-02 10:03:08 +00:00
|
|
|
class Es < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Extensible shell with first class functions, lexical scoping, and more"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "https://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"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "c4ab446642284924449c3d0a90c678fa7891aacd429ffdb3744899c44a298cfb"
|
2014-02-02 10:03:08 +00:00
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
option "with-readline", "Use readline instead of libedit"
|
2014-02-02 10:03:08 +00:00
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
depends_on "readline" => :optional
|
2014-02-02 10:03:08 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
args = ["--prefix=#{prefix}"]
|
2015-08-03 12:55:31 +00:00
|
|
|
args << "--with-readline" if build.with? "readline"
|
2014-02-02 10:03:08 +00:00
|
|
|
system "./configure", *args
|
|
|
|
system "make"
|
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
man1.install "doc/es.1"
|
|
|
|
bin.install "es"
|
|
|
|
doc.install %w[CHANGES README trip.es examples]
|
2014-02-02 10:03:08 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/es < #{doc}/trip.es"
|
|
|
|
end
|
|
|
|
end
|