homebrew-core/Formula/chibi-scheme.rb

35 lines
880 B
Ruby
Raw Normal View History

require "formula"
2011-03-10 05:11:03 +00:00
class ChibiScheme < Formula
homepage "http://code.google.com/p/chibi-scheme/"
stable do
url "http://abrek.synthcode.com/chibi-scheme-0.7.2.tgz"
sha1 "337908635020bf354ec9bcb62f91e1bbe534ff23"
end
head "https://code.google.com/p/chibi-scheme/", :using => :hg
bottle do
2014-11-24 13:49:08 +00:00
cellar :any
sha1 "eff7f6bd5b2a711cd21b7c6d74d14462b647b4ad" => :yosemite
sha1 "2343e7d9a49a5ea997cbe5e7f91e516aeaf2cbfb" => :mavericks
sha1 "55723f46b0c3043f676db51894a47e9ac8271b47" => :mountain_lion
end
def install
ENV.deparallelize
# "make" and "make install" must be done separately
system "make"
2012-03-11 02:31:25 +00:00
system "make", "install", "PREFIX=#{prefix}"
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
end
2014-07-04 14:40:30 +00:00