blob: 2b66af462da7ee837d240a2d6470122598c0c2e4 (
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
35
36
37
38
39
40
41
42
 | require "formula"
class PltRacket < Formula
  homepage "http://racket-lang.org/"
  url "http://mirror.racket-lang.org/installers/6.1.1/racket-minimal-6.1.1-src-builtpkgs.tgz"
  sha1 "8800c89a981f7b86808c7d9f2173c7f2a47147bc"
  version "6.1.1"
  bottle do
    sha1 "ce1209d975593554d7973bb30d06f4897672c3b5" => :yosemite
    sha1 "04953a38b638ed718063f123da83a3eed9f3bb99" => :mavericks
    sha1 "79bf69d88c0479cf180f56e9d67d48833ce0a34a" => :mountain_lion
  end
  def install
    cd "src" do
      args = ["--disable-debug", "--disable-dependency-tracking",
              "--enable-macprefix",
              "--prefix=#{prefix}",
              "--man=#{man}"]
      args << "--disable-mac64" if not MacOS.prefer_64_bit?
      system "./configure", *args
      system "make"
      system "make install"
    end
  end
  def caveats; <<-EOS.undent
    This is a minimal Racket distribution.
    If you want to use the DrRacket IDE, we recommend that you use
    the PLT-provided packages from http://racket-lang.org/download/.
    EOS
  end
  test do
    output = `'#{bin}/racket' -e '(displayln "Hello Homebrew")'`
    assert $?.success?
    assert_match /Hello Homebrew/, output
  end
end
 |