2011-03-10 05:11:03 +00:00
|
|
|
class Chicken < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Compiler for the Scheme programming language"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "http://www.call-cc.org/"
|
2015-08-09 21:10:46 +00:00
|
|
|
url "http://code.call-cc.org/releases/4.10.0/chicken-4.10.0.tar.gz"
|
|
|
|
sha256 "0e07f5abcd11961986950dbeaa5a40db415f8a1b65daff9c300e9b05b334899b"
|
2013-01-18 03:47:20 +00:00
|
|
|
|
2015-08-09 21:10:46 +00:00
|
|
|
head "http://code.call-cc.org/git/chicken-core.git"
|
2009-09-07 12:09:38 +00:00
|
|
|
|
2014-07-06 16:34:11 +00:00
|
|
|
bottle do
|
2015-11-04 07:08:47 +00:00
|
|
|
revision 1
|
|
|
|
sha256 "199e04ed0a8a62c936ed24c3c044f4c0a14c7f9e356501b936223a8ef10da6bf" => :el_capitan
|
|
|
|
sha256 "fb5d63369b19db771c3620ae5aa584b110fb3f40df5cdd3760d9070878043e6d" => :yosemite
|
|
|
|
sha256 "2f3a6ea745ffae4ab324c0740808d69b90e985e58946a0dfcf6bb4d44621342f" => :mavericks
|
2014-07-06 16:34:11 +00:00
|
|
|
end
|
|
|
|
|
2009-09-07 12:09:38 +00:00
|
|
|
def install
|
|
|
|
ENV.deparallelize
|
2014-09-22 00:48:39 +00:00
|
|
|
|
|
|
|
args = %W[
|
|
|
|
PLATFORM=macosx
|
|
|
|
PREFIX=#{prefix}
|
|
|
|
C_COMPILER=#{ENV.cc}
|
|
|
|
LIBRARIAN=ar
|
|
|
|
POSTINSTALL_PROGRAM=install_name_tool
|
|
|
|
]
|
|
|
|
|
2015-11-03 21:45:30 +00:00
|
|
|
# Sometimes chicken detects a 32-bit environment by mistake, causing errors,
|
|
|
|
# see https://github.com/Homebrew/homebrew/issues/45648
|
|
|
|
args << "ARCH=x86-64" if MacOS.prefer_64_bit?
|
|
|
|
|
2010-09-05 19:09:19 +00:00
|
|
|
system "make", *args
|
|
|
|
system "make", "install", *args
|
2009-09-07 12:09:38 +00:00
|
|
|
end
|
2014-03-06 03:17:10 +00:00
|
|
|
|
|
|
|
test do
|
2014-05-04 19:12:41 +00:00
|
|
|
assert_equal "25", shell_output("#{bin}/csi -e '(print (* 5 5))'").strip
|
2014-03-06 03:17:10 +00:00
|
|
|
end
|
2009-09-07 12:09:38 +00:00
|
|
|
end
|