Skip to content

Commit

Permalink
Rely on the build environment rather than use MacOS.locate
Browse files Browse the repository at this point in the history
Our build environment setup ensures these tools will be on the PATH,
so we shouldn't use private API to find them.
  • Loading branch information
jacknagel committed Apr 22, 2014
1 parent 2a30318 commit d67381f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Formula/ispell.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def install
chmod 0644, "config.sh" chmod 0644, "config.sh"
inreplace "config.sh" do |s| inreplace "config.sh" do |s|
s.gsub! '/usr/share/dict', "#{share}/dict" s.gsub! '/usr/share/dict', "#{share}/dict"
s.gsub! /yacc/, MacOS.locate('yacc') s.gsub! /yacc/, "yacc"
end end


(lib/'ispell').mkpath (lib/'ispell').mkpath
Expand Down
2 changes: 1 addition & 1 deletion Formula/libmxml.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def install
"--prefix=#{prefix}" "--prefix=#{prefix}"


# Makefile hard-codes the path to /Developer # 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"
system "make install" system "make install"
Expand Down

0 comments on commit d67381f

Please sign in to comment.