2011-01-17 17:19:39 +00:00
|
|
|
class ClozureCl < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Common Lisp implementation with a long history"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "http://ccl.clozure.com/"
|
2015-12-05 12:02:47 +00:00
|
|
|
url "http://ccl.clozure.com/ftp/pub/release/1.11/ccl-1.11-darwinx86.tar.gz"
|
|
|
|
version "1.11"
|
|
|
|
sha256 "2fc4b519f26f7df3fbb62314b15bd5d098082b05d40c3539f8204aa10f546913"
|
2011-01-17 17:19:39 +00:00
|
|
|
|
2015-10-22 13:12:16 +00:00
|
|
|
bottle :unneeded
|
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
conflicts_with "cclive", :because => "both install a ccl binary"
|
2013-11-06 15:31:27 +00:00
|
|
|
|
2011-01-17 17:19:39 +00:00
|
|
|
def install
|
2014-03-25 23:59:47 +00:00
|
|
|
# Get rid of all the .svn directories
|
2014-09-29 19:41:55 +00:00
|
|
|
rm_rf Dir["**/.svn"]
|
2011-01-17 17:19:39 +00:00
|
|
|
|
2014-03-25 23:59:47 +00:00
|
|
|
libexec.install Dir["*"]
|
|
|
|
scripts = Dir["#{libexec}/scripts/ccl{,64}"]
|
2011-01-17 17:19:39 +00:00
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
inreplace scripts, /CCL_DEFAULT_DIRECTORY=.+$/, %(CCL_DEFAULT_DIRECTORY="#{libexec}")
|
2014-03-25 23:59:47 +00:00
|
|
|
bin.install_symlink scripts
|
2011-01-17 17:19:39 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def test_ccl(bit = 32)
|
2015-08-03 12:55:31 +00:00
|
|
|
ccl = bin + "ccl#{"64" if bit == 64}"
|
|
|
|
%{#{ccl} -e '(progn (format t "Hello world from #{bit}-bit ClozureCL") (ccl::quit))'}
|
2011-01-17 17:19:39 +00:00
|
|
|
end
|
|
|
|
|
2014-02-23 21:31:41 +00:00
|
|
|
test do
|
2011-01-17 17:19:39 +00:00
|
|
|
system test_ccl
|
|
|
|
system test_ccl(64)
|
|
|
|
end
|
|
|
|
end
|