2009-10-15 08:07:12 +00:00
|
|
|
require 'formula'
|
2009-09-07 12:09:38 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Chicken < Formula
|
2010-09-05 19:09:19 +00:00
|
|
|
homepage 'http://www.call-cc.org/'
|
2013-10-12 10:37:21 +00:00
|
|
|
url 'http://code.call-cc.org/releases/4.8.0/chicken-4.8.0.5.tar.gz'
|
|
|
|
sha1 'fb393e49433c183d6a97da9b1ca48cb09ed51d72'
|
2013-01-18 03:47:20 +00:00
|
|
|
|
2011-02-28 20:53:55 +00:00
|
|
|
head 'git://code.call-cc.org/chicken-core'
|
2009-09-07 12:09:38 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
ENV.deparallelize
|
2013-01-18 03:47:20 +00:00
|
|
|
# Chicken uses a non-standard var. for this
|
|
|
|
args = ["PREFIX=#{prefix}", "PLATFORM=macosx", "C_COMPILER=#{ENV.cc}"]
|
2011-03-18 17:30:47 +00:00
|
|
|
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
|
|
|
|
output = `'#{bin}/csi' -e '(print (* 5 5))'`
|
|
|
|
assert_equal "25", output.strip
|
|
|
|
assert $?.success?
|
|
|
|
end
|
2009-09-07 12:09:38 +00:00
|
|
|
end
|