libgetdata: remove some options

This commit is contained in:
FX Coudert 2018-09-04 22:58:06 +02:00
parent f579a7d5c9
commit 5399d554b5

View file

@ -13,36 +13,18 @@ class Libgetdata < Formula
sha256 "88055dcabc5ed8b6cc068e244f8174eb798fd778e67a27867b3a0b33b3453121" => :el_capitan
end
option "with-gcc", "Build Fortran bindings"
option "with-libzzip", "Build with zzip compression support"
option "with-perl", "Build against Homebrew's Perl rather than system default"
option "with-xz", "Build with LZMA compression support"
deprecated_option "lzma" => "with-xz"
deprecated_option "zzip" => "with-libzzip"
deprecated_option "with-fortran" => "with-gcc"
depends_on "libtool"
depends_on "gcc" => :optional
depends_on "libzzip" => :optional
depends_on "perl" => :optional
depends_on "xz" => :optional
def install
args = %W[
--disable-dependency-tracking
--disable-silent-rules
--prefix=#{prefix}
--disable-php
--disable-python
]
args << "--with-perl-dir=#{lib}/perl5/site_perl" if build.with? "perl"
args << "--without-liblzma" if build.without? "xz"
args << "--without-libzzip" if build.without? "libzzip"
args << "--disable-fortran" << "--disable-fortran95" if build.without? "gcc"
system "./configure", *args
system "./configure", "--prefix=#{prefix}",
"--disable-dependency-tracking",
"--disable-silent-rules",
"--disable-fortran",
"--disable-fortran95",
"--disable-php",
"--disable-python",
"--without-liblzma",
"--without-libzzip"
system "make"
system "make", "install"
end