2011-03-10 05:11:03 +00:00
|
|
|
class ChibiScheme < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Small footprint Scheme for use as a C Extension Language"
|
2015-05-10 23:56:35 +00:00
|
|
|
homepage "http://synthcode.com/wiki/chibi-scheme"
|
2014-08-18 06:22:41 +00:00
|
|
|
|
|
|
|
stable do
|
2015-05-10 23:56:35 +00:00
|
|
|
url "http://synthcode.com/scheme/chibi/chibi-scheme-0.7.3.tgz"
|
2015-08-03 12:55:31 +00:00
|
|
|
sha256 "21a0cf669d42a670a11c08f50dc5aedb7b438fae892260900da58f0ed545fc7d"
|
2014-08-18 06:22:41 +00:00
|
|
|
end
|
|
|
|
|
2015-05-10 23:56:35 +00:00
|
|
|
head "https://github.com/ashinn/chibi-scheme.git"
|
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
|
2015-05-11 00:30:28 +00:00
|
|
|
sha256 "9fab20beb2d9afdd48d97434ca022f327f7b1eb3bec7d0a4d2ed6d44a091946a" => :yosemite
|
|
|
|
sha256 "bcd1046b43b40256705c162d6f92f71665811120143f7857d0ba7938f20cc433" => :mavericks
|
|
|
|
sha256 "98b0bb6559ce5b8225b481e56024dc44fcb6e4c71ece3a54a3bcbe8395d8e463" => :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
|
|
|
|