Rely on the build environment rather than use MacOS.locate

Our build environment setup ensures these tools will be on the PATH,
so we shouldn't use private API to find them.
This commit is contained in:
Jack Nagel 2014-04-21 22:41:49 -05:00
parent 2a30318577
commit d67381fad5
2 changed files with 2 additions and 2 deletions

View file

@ -25,7 +25,7 @@ class Ispell < Formula
chmod 0644, "config.sh"
inreplace "config.sh" do |s|
s.gsub! '/usr/share/dict', "#{share}/dict"
s.gsub! /yacc/, MacOS.locate('yacc')
s.gsub! /yacc/, "yacc"
end
(lib/'ispell').mkpath

View file

@ -14,7 +14,7 @@ class Libmxml < Formula
"--prefix=#{prefix}"
# Makefile hard-codes the path to /Developer
inreplace "Makefile", "/Developer/usr/bin/docsetutil", MacOS.locate('docsetutil')
inreplace "Makefile", "/Developer/usr/bin/docsetutil", "docsetutil"
system "make"
system "make install"