Module: OS::Linux::Bundle::ClassMethods Private
- Defined in:
- extend/os/linux/bundle/bundle.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
- #prepend_pkgconf_path_if_needed! ⇒ void private
Setup pkg-config, if present, to help locate packages Only need this on Linux as Homebrew provides a shim on macOS.
Instance Method Details
#prepend_pkgconf_path_if_needed! ⇒ void
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.
This method returns an undefined value.
Setup pkg-config, if present, to help locate packages Only need this on Linux as Homebrew provides a shim on macOS
11 12 13 14 15 16 | # File 'extend/os/linux/bundle/bundle.rb', line 11 def prepend_pkgconf_path_if_needed! pkgconf = Formulary.factory("pkgconf") return unless pkgconf.any_version_installed? ENV.prepend_path "PATH", pkgconf.opt_bin.to_s end |
© 2009–present Homebrew contributors
Licensed under the BSD 2-Clause License.
https://docs.brew.sh/rubydoc/OS/Linux/Bundle/ClassMethods.html