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"
|
2016-07-12 03:56:06 +00:00
|
|
|
head "http://svn.clozure.com/publicsvn/openmcl/trunk/darwinx86/ccl"
|
2011-01-17 17:19:39 +00:00
|
|
|
|
2015-10-22 13:12:16 +00:00
|
|
|
bottle :unneeded
|
|
|
|
|
2016-09-24 15:45:48 +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
|
2016-07-12 03:56:06 +00:00
|
|
|
if build.head?
|
|
|
|
ENV["CCL_DEFAULT_DIRECTORY"] = buildpath
|
|
|
|
system "scripts/ccl64", "-n",
|
|
|
|
"-e", "(ccl:rebuild-ccl :full t)",
|
|
|
|
"-e", "(quit)"
|
|
|
|
end
|
|
|
|
|
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
|
|
|
|
2016-07-12 02:33:18 +00:00
|
|
|
prefix.install "doc/README"
|
|
|
|
doc.install Dir["doc/*"]
|
2011-01-17 17:19:39 +00:00
|
|
|
|
2016-07-12 02:33:18 +00:00
|
|
|
libexec.install Dir["*"]
|
|
|
|
bin.install Dir["#{libexec}/scripts/ccl{,64}"]
|
2016-09-24 15:45:48 +00:00
|
|
|
bin.env_script_all_files(libexec/"bin", :CCL_DEFAULT_DIRECTORY => libexec)
|
2011-01-17 17:19:39 +00:00
|
|
|
end
|
|
|
|
|
2014-02-23 21:31:41 +00:00
|
|
|
test do
|
2016-07-12 02:33:18 +00:00
|
|
|
args = "-n -e '(write-line (write-to-string (* 3 7)))' -e '(quit)'"
|
|
|
|
%w[ccl ccl64].each do |ccl|
|
|
|
|
assert_equal "21", shell_output("#{bin}/#{ccl} #{args}").strip
|
|
|
|
end
|
2011-01-17 17:19:39 +00:00
|
|
|
end
|
|
|
|
end
|