aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2014-04-21 22:41:49 -0500
committerJack Nagel2014-04-21 22:47:15 -0500
commit7f62b4a45d14d4153ad3852de7ed52bcbfa44454 (patch)
treeea0174387a9eacf2de1fbee1fb3528c832e3f345 /Library/Formula
parent98e57bcaae4033cee88b27b26d7d6f91717a5cdf (diff)
downloadhomebrew-7f62b4a45d14d4153ad3852de7ed52bcbfa44454.tar.bz2
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.
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/ispell.rb2
-rw-r--r--Library/Formula/libmxml.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/Library/Formula/ispell.rb b/Library/Formula/ispell.rb
index 36740b5fa..bd8452538 100644
--- a/Library/Formula/ispell.rb
+++ b/Library/Formula/ispell.rb
@@ -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
diff --git a/Library/Formula/libmxml.rb b/Library/Formula/libmxml.rb
index d7c38c0b6..9a4df48ea 100644
--- a/Library/Formula/libmxml.rb
+++ b/Library/Formula/libmxml.rb
@@ -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"