2010-04-19 08:17:18 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Ecl < Formula
|
2010-04-19 08:17:18 +00:00
|
|
|
homepage 'http://ecls.sourceforge.net/'
|
2015-02-25 02:15:23 +00:00
|
|
|
url 'https://downloads.sourceforge.net/project/ecls/ecls/15.2/ecl-15.2.21.tgz'
|
|
|
|
sha1 'fcf70c11ddb1602e88972f0c1596037df229f473'
|
2013-08-09 11:32:32 +00:00
|
|
|
|
2015-02-25 15:08:12 +00:00
|
|
|
bottle do
|
|
|
|
sha1 "1f5441b4a7cd4f62be787b771060655ec92b0642" => :yosemite
|
|
|
|
sha1 "c042f476840561458d016a980b45fbd2547f98b4" => :mavericks
|
|
|
|
sha1 "ab1ac89fe3e324fc0cf4f74acd058af6a22b235a" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2014-04-08 04:58:15 +00:00
|
|
|
depends_on 'gmp'
|
2010-04-19 08:17:18 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
ENV.deparallelize
|
2014-04-08 04:58:15 +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"
|
|
|
|
system "make install"
|
|
|
|
end
|
2015-02-25 02:15:23 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/'simple.cl').write <<-EOS.undent
|
|
|
|
(write-line (write-to-string (+ 2 2)))
|
|
|
|
EOS
|
|
|
|
assert_equal "4\n", shell_output("#{bin}/ecl -shell #{testpath}/simple.cl")
|
|
|
|
end
|
2010-04-19 08:17:18 +00:00
|
|
|
end
|