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/"
|
2016-07-15 16:36:22 +00:00
|
|
|
url "https://github.com/wryun/es-shell/releases/download/v0.9.1/es-0.9.1.tar.gz"
|
|
|
|
sha256 "b0b41fce99b122a173a06b899a4d92e5bd3cc48b227b2736159f596a58fff4ba"
|
2016-07-15 17:33:17 +00:00
|
|
|
revision 1
|
2014-02-02 10:03:08 +00:00
|
|
|
|
2015-10-27 03:10:44 +00:00
|
|
|
bottle do
|
2016-07-15 17:42:47 +00:00
|
|
|
cellar :any_skip_relocation
|
2016-09-26 20:28:03 +00:00
|
|
|
sha256 "7fa9e3a21662d59d5505fda8945435f71331647d6efdae0ce7112bd507af3398" => :sierra
|
2016-07-15 17:42:47 +00:00
|
|
|
sha256 "53f0c0654ddecc62b99135fb96722b6467593248d884c1506ea93681367c611d" => :el_capitan
|
|
|
|
sha256 "bceadf8a0ef4d3231d149f30cc53d2c7fe686cd8fdd0dafe83ceaabc35151d5e" => :yosemite
|
|
|
|
sha256 "14f203383d01f581bdb63e7240ff57d1174553467314351d49ea41d3052148f9" => :mavericks
|
2015-10-27 03:10:44 +00:00
|
|
|
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
|
|
|
|
2016-09-24 15:45:48 +00:00
|
|
|
conflicts_with "kes", :because => "both install 'es' binary"
|
2015-10-26 20:24:03 +00:00
|
|
|
|
2014-02-02 10:03:08 +00:00
|
|
|
def install
|
2016-07-15 17:33:17 +00:00
|
|
|
args = %W[--prefix=#{prefix}]
|
|
|
|
|
|
|
|
if build.with? "readline"
|
|
|
|
args << "--with-readline"
|
|
|
|
else
|
|
|
|
args << "--with-editline"
|
|
|
|
end
|
|
|
|
|
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
|