aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/os
diff options
context:
space:
mode:
authorWilliam Woodruff2016-09-22 14:36:24 -0400
committerWilliam Woodruff2016-09-22 14:36:24 -0400
commit846a5b79b6868d6f78a1b46baedae89d74bb5142 (patch)
treee5113f4d40ea619e3acd753c534397c0f443b981 /Library/Homebrew/os
parentbbed7246bc5c5b7acb8c1d427d10b43e090dfd39 (diff)
downloadbrew-846a5b79b6868d6f78a1b46baedae89d74bb5142.tar.bz2
Remove old cctools references now that only ruby-macho is used.
Diffstat (limited to 'Library/Homebrew/os')
-rw-r--r--Library/Homebrew/os/mac.rb20
-rw-r--r--Library/Homebrew/os/mac/keg.rb8
2 files changed, 4 insertions, 24 deletions
diff --git a/Library/Homebrew/os/mac.rb b/Library/Homebrew/os/mac.rb
index f121cbbd3..029c761f7 100644
--- a/Library/Homebrew/os/mac.rb
+++ b/Library/Homebrew/os/mac.rb
@@ -45,26 +45,6 @@ module OS
@language ||= Utils.popen_read("defaults", "read", ".GlobalPreferences", "AppleLanguages").delete(" \n\"()").sub(/,.*/, "")
end
- # Locates a (working) copy of install_name_tool, guaranteed to function
- # whether the user has developer tools installed or not.
- def install_name_tool
- if (path = HOMEBREW_PREFIX/"opt/cctools/bin/install_name_tool").executable?
- path
- else
- DevelopmentTools.locate("install_name_tool")
- end
- end
-
- # Locates a (working) copy of otool, guaranteed to function whether the user
- # has developer tools installed or not.
- def otool
- if (path = HOMEBREW_PREFIX/"opt/cctools/bin/otool").executable?
- path
- else
- DevelopmentTools.locate("otool")
- end
- end
-
def active_developer_dir
@active_developer_dir ||= Utils.popen_read("/usr/bin/xcode-select", "-print-path").strip
end
diff --git a/Library/Homebrew/os/mac/keg.rb b/Library/Homebrew/os/mac/keg.rb
index 8505647a4..b2a769849 100644
--- a/Library/Homebrew/os/mac/keg.rb
+++ b/Library/Homebrew/os/mac/keg.rb
@@ -1,6 +1,6 @@
class Keg
def change_dylib_id(id, file)
- @require_install_name_tool = true
+ @require_relocation = true
puts "Changing dylib ID of #{file}\n from #{file.dylib_id}\n to #{id}" if ARGV.debug?
MachO::Tools.change_dylib_id(file, id, strict: false)
rescue MachO::MachOError
@@ -13,7 +13,7 @@ class Keg
end
def change_install_name(old, new, file)
- @require_install_name_tool = true
+ @require_relocation = true
puts "Changing install name in #{file}\n from #{old}\n to #{new}" if ARGV.debug?
MachO::Tools.change_install_name(file, old, new, strict: false)
rescue MachO::MachOError
@@ -25,7 +25,7 @@ class Keg
raise
end
- def require_install_name_tool?
- @require_install_name_tool
+ def require_relocation?
+ @require_relocation
end
end