aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libgetdata.rb
blob: 81e1f9cb08e29be23471e2665f6651610a16f8b0 (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
class Libgetdata < Formula
  homepage "http://getdata.sourceforge.net/"
  url "https://downloads.sourceforge.net/project/getdata/getdata/0.8.6/getdata-0.8.6.tar.bz2"
  sha1 "57f12393916a658123c759d04ed88fe0348cbac6"

  bottle do
    sha1 "b61a26ca98f6c5b6ee39a0830596f444a8cc51cb" => :yosemite
    sha1 "233d08e7430bccc79843d7e2b7fa52ce70077ef7" => :mavericks
    sha1 "44b04b72452d00f50e600a7c2774e8dfb254ddaa" => :mountain_lion
  end

  option "with-fortran", "Build Fortran 77 bindings"
  option "with-perl", "Build Perl binding"
  option "lzma", "Build with LZMA compression support"
  option "zzip", "Build with zzip compression support"

  depends_on :fortran => :optional
  depends_on "xz" if build.include? "lzma"
  depends_on "libzzip" if build.include? "zzip"


  def install
    args = %W[
      --disable-dependency-tracking
      --prefix=#{prefix}
    ]

    args << "--disable-perl" if build.without? "perl"

    system "./configure", *args
    system "make"
    system "make", "install"
  end
end