aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/autoconf.rb
diff options
context:
space:
mode:
authorJack Nagel2012-02-27 14:08:58 -0600
committerJack Nagel2012-02-27 14:11:01 -0600
commite4fd3f42b1f4ae503fc97e3d1b2dbc7303cfc376 (patch)
treef266f95b41e3ca4c5cc7d8f6c86ce9cbc841780a /Library/Formula/autoconf.rb
parentd72e21fc154f279828e03053014b8053fe9a077a (diff)
downloadhomebrew-e4fd3f42b1f4ae503fc97e3d1b2dbc7303cfc376.tar.bz2
Use cellar paths in tests
This lets `brew test` work when these are keg-only, etc. Also fix a couple of typos and style things. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/autoconf.rb')
-rw-r--r--Library/Formula/autoconf.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/Library/Formula/autoconf.rb b/Library/Formula/autoconf.rb
index 3121e235f..9683c5224 100644
--- a/Library/Formula/autoconf.rb
+++ b/Library/Formula/autoconf.rb
@@ -6,22 +6,22 @@ class Autoconf < Formula
mirror 'http://ftp.gnu.org/gnu/autoconf/autoconf-2.68.tar.gz'
md5 'c3b5247592ce694f7097873aa07d66fe'
+ if MacOS.xcode_version.to_f < 4.3 or File.file? "/usr/bin/autoconf"
+ keg_only "Xcode (up to and including 4.2) provides (a rather old) Autoconf."
+ end
+
def patches
# force autoreconf to look for and use our glibtoolize
DATA
end
- if MacOS.xcode_version.to_f < 4.3 or File.file? "/usr/bin/autoconf"
- keg_only "Xcode (up to and including 4.2) provides (a rather old) Autoconf."
- end
-
def install
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make install"
end
def test
- system "#{HOMEBREW_PREFIX}/bin/autoconf --version"
+ system "#{bin}/autoconf --version"
end
end