From 2bdb565d1fcc53ccf622ffe0c9659616ae161172 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sat, 14 Feb 2015 16:43:59 -0500 Subject: augeas: avoid running configure twice when building HEAD --- Library/Formula/augeas.rb | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'Library') diff --git a/Library/Formula/augeas.rb b/Library/Formula/augeas.rb index 402397525..b70cd0d94 100644 --- a/Library/Formula/augeas.rb +++ b/Library/Formula/augeas.rb @@ -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| -- cgit v1.2.3