blob: b2db79beed5a90abdc2db2ad65f1e69eea39125c (
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
 | class GlobusToolkit < Formula
  homepage "http://www.globus.org/toolkit/"
  # Note: Stable distributions have an even minor version number (e.g. 5.0.3)
  url "http://toolkit.globus.org/ftppub/gt6/installers/src/globus_toolkit-6.0.tar.gz"
  sha1 "cb688858f96b26a92d72efedc1153a8cbf2516b8"
  bottle do
    sha1 "ad1c40f3be3184206addd9c8f5c091b6eac1023c" => :yosemite
    sha1 "0388612635950a8c971e8fe61bc99a70293f4cb3" => :mavericks
    sha1 "4ab429c5c616124872ba7102dfc0014232320371" => :mountain_lion
  end
  depends_on "openssl"
  depends_on "libtool" => :run
  depends_on "pkg-config" => :build
  option "with-check", "Test the toolkit when installing"
  def install
    ENV.deparallelize
    ENV["MACOSX_DEPLOYMENT_TARGET"] = MacOS.version
    man.mkpath
    system "./configure", "--prefix=#{libexec}",
                          "--mandir=#{man}",
                          "--disable-dependency-tracking"
    system "make"
    system "make", "check" if build.with? "check"
    system "make", "install"
    bins = Dir["#{libexec}/bin/*"].select { |f| File.executable? f }
    bin.write_exec_script bins
  end
  test do
    system "#{bin}/globusrun", "-help"
  end
end
 |