2014-08-18 06:22:41 +00:00
|
|
|
require "formula"
|
2011-02-18 06:20:40 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class ChibiScheme < Formula
|
2014-08-18 06:22:41 +00:00
|
|
|
homepage "http://code.google.com/p/chibi-scheme/"
|
|
|
|
|
|
|
|
stable do
|
2014-11-24 13:08:56 +00:00
|
|
|
url "http://abrek.synthcode.com/chibi-scheme-0.7.2.tgz"
|
|
|
|
sha1 "337908635020bf354ec9bcb62f91e1bbe534ff23"
|
2014-08-18 06:22:41 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
head "https://code.google.com/p/chibi-scheme/", :using => :hg
|
2011-02-18 06:20:40 +00:00
|
|
|
|
2014-07-04 18:45:14 +00:00
|
|
|
bottle do
|
2014-11-24 13:49:08 +00:00
|
|
|
cellar :any
|
|
|
|
sha1 "eff7f6bd5b2a711cd21b7c6d74d14462b647b4ad" => :yosemite
|
|
|
|
sha1 "2343e7d9a49a5ea997cbe5e7f91e516aeaf2cbfb" => :mavericks
|
|
|
|
sha1 "55723f46b0c3043f676db51894a47e9ac8271b47" => :mountain_lion
|
2014-07-04 18:45:14 +00:00
|
|
|
end
|
|
|
|
|
2011-02-18 06:20:40 +00:00
|
|
|
def install
|
2013-08-01 20:31:50 +00:00
|
|
|
ENV.deparallelize
|
|
|
|
|
2011-11-24 12:20:18 +00:00
|
|
|
# "make" and "make install" must be done separately
|
|
|
|
system "make"
|
2012-03-11 02:31:25 +00:00
|
|
|
system "make", "install", "PREFIX=#{prefix}"
|
2011-02-18 06:20:40 +00:00
|
|
|
end
|
2014-07-04 14:40:30 +00:00
|
|
|
|
|
|
|
test do
|
|
|
|
output = `#{bin}/chibi-scheme -mchibi -e "(for-each write '(0 1 2 3 4 5 6 7 8 9))"`
|
|
|
|
assert_equal "0123456789", output
|
|
|
|
assert_equal 0, $?.exitstatus
|
|
|
|
end
|
2011-02-18 06:20:40 +00:00
|
|
|
end
|
2014-07-04 14:40:30 +00:00
|
|
|
|