diff options
| author | Mike McQuaid | 2012-08-07 16:34:43 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2012-08-08 18:17:11 +0100 |
| commit | 60d3cd7252428280805ef10f77a5bcb8c6cecebb (patch) | |
| tree | e4620c34497080103a057d88ef3a447080908fff | |
| parent | f8c82d414fac66bdfb8433d8a1dc1f0463e424c6 (diff) | |
| download | homebrew-60d3cd7252428280805ef10f77a5bcb8c6cecebb.tar.bz2 | |
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.
| -rw-r--r-- | Library/Formula/mysql.rb | 5 |
1 files changed, 3 insertions, 2 deletions
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 |
