homebrew-core/Formula/libgetdata.rb
Mike McQuaid eefdf6b3f3 formulae: fix with/without usage.
Closes Homebrew/homebrew#27275.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-03-08 00:54:35 +00:00

30 lines
812 B
Ruby

require 'formula'
class Libgetdata < Formula
homepage 'http://getdata.sourceforge.net/'
url 'https://downloads.sourceforge.net/project/getdata/getdata/0.8.5/getdata-0.8.5.tar.bz2'
sha1 '4f509e10f9eb6e8cfc378efd8b483b2a2508917f'
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