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' bottle do revision 2 sha1 "073664f8f88a3729099d6172165664db2a58358f" => :yosemite sha1 "671150840b193c97cb910116761bd58dd14235e8" => :mavericks sha1 "cfdf6a8a7e840bfcb081de22e472877996af7499" => :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