homebrew-core/Formula/ecl.rb

34 lines
1.1 KiB
Ruby
Raw Normal View History

2011-03-10 05:11:03 +00:00
class Ecl < Formula
desc "Embeddable Common Lisp"
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"
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
depends_on "gmp"
def install
system "./configure", "--prefix=#{prefix}",
"--enable-unicode=yes",
"--enable-threads=yes",
"--with-system-gmp=yes"
system "make"
system "make", "install"
end
test do
(testpath/"simple.cl").write <<-EOS.undent
(write-line (write-to-string (+ 2 2)))
EOS
assert_equal "4",
shell_output("#{bin}/ecl -shell #{testpath}/simple.cl").chomp
end
end