From d67381fad5e12f318b75ab0889456da5398c4eb7 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 21 Apr 2014 22:41:49 -0500 Subject: [PATCH] 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. --- Formula/ispell.rb | 2 +- Formula/libmxml.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Formula/ispell.rb b/Formula/ispell.rb index 36740b5fa7..bd84525388 100644 --- a/Formula/ispell.rb +++ b/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/Formula/libmxml.rb b/Formula/libmxml.rb index d7c38c0b6c..9a4df48ea3 100644 --- a/Formula/libmxml.rb +++ b/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"