blob: 85d305fcb37ca958231069d0b480a548bf769787 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
 | require "formula"
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
    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"
    system "make", "install", "PREFIX=#{prefix}"
  end
  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
 |