2011-03-10 05:11:03 +00:00
|
|
|
class Ecl < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Embeddable Common Lisp"
|
2015-08-30 11:22:20 +00:00
|
|
|
homepage "https://common-lisp.net/project/ecl/"
|
|
|
|
url "https://common-lisp.net/project/ecl/files/ecl-16.0.0.tgz"
|
|
|
|
sha256 "343ed4c3e4906562757a6039b85ce16d33dd5e8001d74004936795983e3af033"
|
2015-04-22 01:44:23 +00:00
|
|
|
|
|
|
|
head "https://gitlab.com/embeddable-common-lisp/ecl.git"
|
2013-08-09 11:32:32 +00:00
|
|
|
|
2015-02-25 15:08:12 +00:00
|
|
|
bottle do
|
2015-08-30 11:39:02 +00:00
|
|
|
sha256 "b9e11c5853de9c20aed0979da6e2a63afca3ee1f2ab925d62d5d192557af62df" => :yosemite
|
|
|
|
sha256 "f7ae77f595ab08425fb6789018f67b40461656d146a16e6add510f7418f4a8ee" => :mavericks
|
|
|
|
sha256 "7a460060b7220667124bc09483fc5ee84e8dd63a167ce0d1aea617832621d052" => :mountain_lion
|
2015-02-25 15:08:12 +00:00
|
|
|
end
|
|
|
|
|
2015-04-22 01:44:23 +00:00
|
|
|
depends_on "gmp"
|
2010-04-19 08:17:18 +00:00
|
|
|
|
|
|
|
def install
|
2015-04-22 01:44:23 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
|
|
"--enable-unicode=yes",
|
|
|
|
"--enable-threads=yes",
|
|
|
|
"--with-system-gmp=yes"
|
2010-04-19 08:17:18 +00:00
|
|
|
system "make"
|
2015-04-22 01:44:23 +00:00
|
|
|
system "make", "install"
|
2010-04-19 08:17:18 +00:00
|
|
|
end
|
2015-02-25 02:15:23 +00:00
|
|
|
|
|
|
|
test do
|
2015-04-22 01:44:23 +00:00
|
|
|
(testpath/"simple.cl").write <<-EOS.undent
|
2015-02-25 02:15:23 +00:00
|
|
|
(write-line (write-to-string (+ 2 2)))
|
|
|
|
EOS
|
2015-08-23 21:42:42 +00:00
|
|
|
assert_equal "4", shell_output("#{bin}/ecl -shell #{testpath}/simple.cl").chomp
|
2015-02-25 02:15:23 +00:00
|
|
|
end
|
2010-04-19 08:17:18 +00:00
|
|
|
end
|