2011-03-10 05:11:03 +00:00
|
|
|
class Ecl < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Embeddable Common Lisp"
|
2015-04-22 01:44:23 +00:00
|
|
|
homepage "http://ecls.sourceforge.net/"
|
|
|
|
url "https://downloads.sourceforge.net/project/ecls/ecls/15.3/ecl-15.3.7.tgz"
|
|
|
|
sha256 "2dc6ffbbf1e0a7b1323d49a991ba1f005127ca3e153651d91ba9e65bdaec948f"
|
|
|
|
|
|
|
|
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-04-22 03:56:33 +00:00
|
|
|
sha256 "8b84486abced53a7bbb733113dfa2c1e521214ae116bca83d98d91611ae7c143" => :yosemite
|
|
|
|
sha256 "b3686d7469e616ab4bbabd67b4c19a7d65c617f5ae1b5253cff847da03b85ed0" => :mavericks
|
|
|
|
sha256 "8fa7523cebcef944a2a6538ef89dd59119bfce64ae5abcaaaf36c5c5c7def4bf" => :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-04-22 01:44:23 +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
|