augeas: avoid running configure twice when building HEAD

This commit is contained in:
Jack Nagel 2015-02-14 16:43:59 -05:00
parent f8cf757075
commit 172b620ce9

View file

@ -23,9 +23,13 @@ class Augeas < Formula
depends_on "readline"
def install
system "./autogen.sh" if build.head?
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
args = %W[--disable-debug --disable-dependency-tracking --prefix=#{prefix}]
if build.head?
system "./autogen.sh", *args
else
system "./configure", *args
end
# libfa example program doesn't compile cleanly on OSX, so skip it
inreplace "Makefile" do |s|