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-10-27 03:10:44 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
|
|
|
sha256 "b8588bd88d1e96f8a7093934ebd004c0890334899892137014a6cdcd641c2720" => :el_capitan
|
|
|
|
sha256 "8d03d2211e286a2481f7f3876324c5db14a886c3b95585e873ecd99412928b41" => :yosemite
|
|
|
|
sha256 "83d459a0d8b05ffd742b950053ce1ae1b9f4f0cc2fd1a5375fcd690a8aa9d5e5" => :mavericks
|
|
|
|
end
|
|
|
|
|
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
|
|
|
|
2015-10-26 20:24:03 +00:00
|
|
|
conflicts_with "kes", :because => "both install 'es' binary"
|
|
|
|
|
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
|