diff options
| author | Jack Nagel | 2012-02-27 14:08:58 -0600 |
|---|---|---|
| committer | Jack Nagel | 2012-02-27 14:11:01 -0600 |
| commit | e4fd3f42b1f4ae503fc97e3d1b2dbc7303cfc376 (patch) | |
| tree | f266f95b41e3ca4c5cc7d8f6c86ce9cbc841780a /Library | |
| parent | d72e21fc154f279828e03053014b8053fe9a077a (diff) | |
| download | homebrew-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')
| -rw-r--r-- | Library/Formula/autoconf.rb | 10 | ||||
| -rw-r--r-- | Library/Formula/automake.rb | 7 | ||||
| -rw-r--r-- | Library/Formula/libtool.rb | 6 |
3 files changed, 9 insertions, 14 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 diff --git a/Library/Formula/automake.rb b/Library/Formula/automake.rb index 906bd9c52..6083f36a0 100644 --- a/Library/Formula/automake.rb +++ b/Library/Formula/automake.rb @@ -24,11 +24,6 @@ class Automake < Formula end def test - # This test will fail and we won't accept that! It's enough to just - # replace "false" with the main program this formula installs, but - # it'd be nice if you were more thorough. Test the test with - # `brew test automake`. Remove this comment before submitting - # your pull request! - system "#{HOMEBREW_PREFIX}/bin/automake --version" + system "#{bin}/automake --version" end end diff --git a/Library/Formula/libtool.rb b/Library/Formula/libtool.rb index a60ca805e..ed24001e0 100644 --- a/Library/Formula/libtool.rb +++ b/Library/Formula/libtool.rb @@ -9,8 +9,8 @@ class Libtool < Formula mirror 'http://ftp.gnu.org/gnu/libtool/libtool-2.4.tar.gz' md5 'b32b04148ecdd7344abc6fe8bd1bb021' - if MacOS.xcode_version.to_f < 4.3 or File.file? "/usr/bin/libtoolize" - keg_only "Xcode (up to and including 4.2) provides (a rather old) Autoconf." + if MacOS.xcode_version.to_f < 4.3 or File.file? "/usr/bin/glibtoolize" + keg_only "Xcode (up to and including 4.2) provides (a rather old) Libtool." end def install @@ -27,6 +27,6 @@ class Libtool < Formula end def test - system "#{HOMEBREW_PREFIX}/bin/glibtoolize --version" + system "#{bin}/glibtoolize --version" end end |
