Module: OS::Mac::Keg::ClassMethods Private
- Defined in:
- extend/os/mac/keg.rb,
extend/os/mac/keg_relocate.rb
This module is part of a private API. This module may only be used in the Homebrew/brew repository. Third parties should avoid using this module if possible, as it may be removed or changed without warning.
Instance Method Summary collapse
- #file_linked_libraries(file, string) ⇒ Array<String> private
- #keg_link_directories ⇒ Array<String> private
- #must_be_writable_directories ⇒ Array<::Pathname> private
- #must_exist_directories ⇒ Array<::Pathname> private
- #must_exist_subdirectories ⇒ Array<::Pathname> private
Instance Method Details
#file_linked_libraries(file, string) ⇒ Array<String>
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
13 14 15 16 17 18 19 20 21 22 23 |
# File 'extend/os/mac/keg_relocate.rb', line 13 def file_linked_libraries(file, string) file = MachOPathname.wrap(file) # Check dynamic library linkage. Importantly, do not perform for static # libraries, which will falsely report "linkage" to themselves. if file.mach_o_executable? || file.dylib? || file.mach_o_bundle? file.dynamically_linked_libraries.select { |lib| lib.include? string } else [] end end |
#keg_link_directories ⇒ Array<String>
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
13 14 15 |
# File 'extend/os/mac/keg.rb', line 13 def keg_link_directories @keg_link_directories ||= T.let((super + ["Frameworks"]).freeze, T.nilable(T::Array[String])) end |
#must_be_writable_directories ⇒ Array<::Pathname>
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
34 35 36 37 38 39 |
# File 'extend/os/mac/keg.rb', line 34 def must_be_writable_directories @must_be_writable_directories ||= T.let(( super + [HOMEBREW_PREFIX/"Frameworks"] ).sort.uniq.freeze, T.nilable(T::Array[::Pathname])) end |
#must_exist_directories ⇒ Array<::Pathname>
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
26 27 28 29 30 31 |
# File 'extend/os/mac/keg.rb', line 26 def must_exist_directories @must_exist_directories ||= T.let(( super + [HOMEBREW_PREFIX/"Frameworks"] ).sort.uniq.freeze, T.nilable(T::Array[::Pathname])) end |
#must_exist_subdirectories ⇒ Array<::Pathname>
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
18 19 20 21 22 23 |
# File 'extend/os/mac/keg.rb', line 18 def must_exist_subdirectories @must_exist_subdirectories ||= T.let(( super + [HOMEBREW_PREFIX/"Frameworks"] ).sort.uniq.freeze, T.nilable(T::Array[::Pathname])) end |