homebrew-core/Formula/libgetdata.rb
Victor Martinez 8dc451e3e2 Fixed several broken sourceforge.net download locations
Closes Homebrew/homebrew#20645.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2013-06-30 12:17:57 -07:00

30 lines
812 B
Ruby

require 'formula'
class Libgetdata < Formula
homepage 'http://getdata.sourceforge.net/'
url 'http://downloads.sourceforge.net/project/getdata/getdata/0.8.4/getdata-0.8.4.tar.bz2'
sha1 'fe50cc6a0a0be719a6ce06acc3beea19fcda13ce'
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" unless build.with? "perl"
system "./configure", *args
system "make"
system "make", "install"
end
end