homebrew-core/Formula/chibi-scheme.rb

34 lines
1 KiB
Ruby
Raw Normal View History

2011-03-10 05:11:03 +00:00
class ChibiScheme < Formula
desc "Small footprint Scheme for use as a C Extension Language"
homepage "http://synthcode.com/wiki/chibi-scheme"
stable do
url "http://synthcode.com/scheme/chibi/chibi-scheme-0.7.3.tgz"
sha256 "21a0cf669d42a670a11c08f50dc5aedb7b438fae892260900da58f0ed545fc7d"
end
head "https://github.com/ashinn/chibi-scheme.git"
bottle do
2014-11-24 13:49:08 +00:00
cellar :any
2015-05-11 00:30:28 +00:00
sha256 "9fab20beb2d9afdd48d97434ca022f327f7b1eb3bec7d0a4d2ed6d44a091946a" => :yosemite
sha256 "bcd1046b43b40256705c162d6f92f71665811120143f7857d0ba7938f20cc433" => :mavericks
sha256 "98b0bb6559ce5b8225b481e56024dc44fcb6e4c71ece3a54a3bcbe8395d8e463" => :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