From 60d3cd7252428280805ef10f77a5bcb8c6cecebb Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Tue, 7 Aug 2012 16:34:43 +0100 Subject: mysql: remove unnecessary dependencies. pidof can be replaced with pgrep from proctools on Mountain Lion and readline uses the system version which, if too old, will use the bundled version anyway (doesn't on Mountain Lion). Closes #13942. --- Library/Formula/mysql.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/mysql.rb b/Library/Formula/mysql.rb index 404757f35..bee2a44d1 100644 --- a/Library/Formula/mysql.rb +++ b/Library/Formula/mysql.rb @@ -7,8 +7,7 @@ class Mysql < Formula sha1 '85dfea413a7d5d2733a40f9dd79cf2320302979f' depends_on 'cmake' => :build - depends_on 'readline' - depends_on 'pidof' + depends_on 'pidof' unless MacOS.mountain_lion? conflicts_with 'mariadb', :because => "mysql and mariadb install the same binaries." @@ -97,6 +96,8 @@ class Mysql < Formula # Fix up the control script and link into bin inreplace "#{prefix}/support-files/mysql.server" do |s| s.gsub!(/^(PATH=".*)(")/, "\\1:#{HOMEBREW_PREFIX}/bin\\2") + # pidof can be replaced with pgrep from proctools on Mountain Lion + s.gsub!(/pidof/, 'pgrep') if MacOS.mountain_lion? end ln_s "#{prefix}/support-files/mysql.server", bin end -- cgit v1.2.3