diff options
| author | Mike McQuaid | 2013-03-10 17:03:40 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2013-03-11 18:26:25 +0000 |
| commit | 22322867a1ff3822d11142fb25c3713a957afe9f (patch) | |
| tree | c162634cf2dd51380f981dacc28102560f4178c8 | |
| parent | bf0a97b79c40f3635232e2c75298c43cb6d71a1d (diff) | |
| download | homebrew-22322867a1ff3822d11142fb25c3713a957afe9f.tar.bz2 | |
Don't run certain functions on non-MACOS.
| -rw-r--r-- | Library/Homebrew/extend/ENV.rb | 1 | ||||
| -rw-r--r-- | Library/Homebrew/keg_fix_install_names.rb | 1 | ||||
| -rw-r--r-- | Library/Homebrew/macos.rb | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb index ff51ced66..3cba7719c 100644 --- a/Library/Homebrew/extend/ENV.rb +++ b/Library/Homebrew/extend/ENV.rb @@ -201,6 +201,7 @@ module HomebrewEnvExtension end def macosxsdk v=MacOS.version + return unless MACOS # Sets all needed lib and include dirs to CFLAGS, CPPFLAGS, LDFLAGS. remove_macosxsdk # Allow cool style of ENV.macosxsdk 10.8 here (no "" :) diff --git a/Library/Homebrew/keg_fix_install_names.rb b/Library/Homebrew/keg_fix_install_names.rb index 34669da3c..dd647660a 100644 --- a/Library/Homebrew/keg_fix_install_names.rb +++ b/Library/Homebrew/keg_fix_install_names.rb @@ -1,5 +1,6 @@ class Keg def fix_install_names + return unless MACOS mach_o_files.each do |file| bad_install_names_for file do |id, bad_names| file.ensure_writable do diff --git a/Library/Homebrew/macos.rb b/Library/Homebrew/macos.rb index dae0a1126..b28be62dc 100644 --- a/Library/Homebrew/macos.rb +++ b/Library/Homebrew/macos.rb @@ -227,6 +227,7 @@ module MacOS extend self end def mdfind id + return [] unless MACOS (@mdfind ||= {}).fetch(id.to_s) do @mdfind[id.to_s] = `/usr/bin/mdfind "kMDItemCFBundleIdentifier == '#{id}'"`.split("\n") end |
