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>master
parent
03d22cc400
commit
c1fd9b501e
|
@ -6,22 +6,22 @@ class Autoconf < Formula
|
||||||
mirror 'http://ftp.gnu.org/gnu/autoconf/autoconf-2.68.tar.gz'
|
mirror 'http://ftp.gnu.org/gnu/autoconf/autoconf-2.68.tar.gz'
|
||||||
md5 'c3b5247592ce694f7097873aa07d66fe'
|
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
|
def patches
|
||||||
# force autoreconf to look for and use our glibtoolize
|
# force autoreconf to look for and use our glibtoolize
|
||||||
DATA
|
DATA
|
||||||
end
|
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
|
def install
|
||||||
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
|
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
|
||||||
system "make install"
|
system "make install"
|
||||||
end
|
end
|
||||||
|
|
||||||
def test
|
def test
|
||||||
system "#{HOMEBREW_PREFIX}/bin/autoconf --version"
|
system "#{bin}/autoconf --version"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -24,11 +24,6 @@ class Automake < Formula
|
||||||
end
|
end
|
||||||
|
|
||||||
def test
|
def test
|
||||||
# This test will fail and we won't accept that! It's enough to just
|
system "#{bin}/automake --version"
|
||||||
# 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"
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -9,8 +9,8 @@ class Libtool < Formula
|
||||||
mirror 'http://ftp.gnu.org/gnu/libtool/libtool-2.4.tar.gz'
|
mirror 'http://ftp.gnu.org/gnu/libtool/libtool-2.4.tar.gz'
|
||||||
md5 'b32b04148ecdd7344abc6fe8bd1bb021'
|
md5 'b32b04148ecdd7344abc6fe8bd1bb021'
|
||||||
|
|
||||||
if MacOS.xcode_version.to_f < 4.3 or File.file? "/usr/bin/libtoolize"
|
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) Autoconf."
|
keg_only "Xcode (up to and including 4.2) provides (a rather old) Libtool."
|
||||||
end
|
end
|
||||||
|
|
||||||
def install
|
def install
|
||||||
|
@ -27,6 +27,6 @@ class Libtool < Formula
|
||||||
end
|
end
|
||||||
|
|
||||||
def test
|
def test
|
||||||
system "#{HOMEBREW_PREFIX}/bin/glibtoolize --version"
|
system "#{bin}/glibtoolize --version"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue