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
|
2011-05-26 08:23:11 +00:00
|
|
|
url 'http://code.call-cc.org/releases/4.7.0/chicken-4.7.0.tar.gz'
|
|
|
|
md5 '9389388fdf04c3c64de29633aae12539'
|
2010-09-05 19:09:19 +00:00
|
|
|
homepage 'http://www.call-cc.org/'
|
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
|
2012-04-17 06:59:41 +00:00
|
|
|
# see http://lists.gnu.org/archive/html/chicken-users/2010-12/msg00159.html
|
|
|
|
if [:clang, :llvm].include? ENV.compiler
|
|
|
|
ENV['DEBUGBUILD'] = "1"
|
|
|
|
opoo "Building with DEBUGBUILD to avoid Clang/LLVM issues"
|
|
|
|
end
|
|
|
|
|
2009-09-07 12:09:38 +00:00
|
|
|
ENV.deparallelize
|
2011-07-07 17:37:35 +00:00
|
|
|
args = ["PREFIX=#{prefix}", "PLATFORM=macosx", "C_COMPILER=#{ENV.cc}"] # Chicken uses a non-standard var. for this
|
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
|
|
|
|
end
|