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/'
|
2014-07-06 13:20:20 +00:00
|
|
|
url 'http://code.call-cc.org/releases/4.9.0/chicken-4.9.0.1.tar.gz'
|
|
|
|
sha1 'd6ec6eb51c6d69e006cc72939b34855013b8535a'
|
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
|
|
|
|
2014-07-06 16:34:11 +00:00
|
|
|
bottle do
|
2014-09-22 00:55:38 +00:00
|
|
|
revision 1
|
|
|
|
sha1 "336ed80fce3e2e2d548ad966b4a60d249523592d" => :mavericks
|
|
|
|
sha1 "8a8b278480ab05e46452f61e64e4939cb5d12d3d" => :mountain_lion
|
|
|
|
sha1 "e2a9863f311099590265704fe410f39de802c600" => :lion
|
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
|
|
|
|
]
|
|
|
|
|
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
|