brew
https://github.com/homebrew/brew
Ruby
🍺 The missing package manager for macOS
Formula#opt_prefix
A stable path for this formula, when installed. Contains the formula name
but no version number. Only the active version will be linked here if
multiple versions are installed.
This is the prefered way to refer a formula in plists or from another
formula, as the path is stable even when the software is updated.
<pre>args << "--with-readline=#{Formula["readline"].opt_prefix}" if build.with? "readline"</pre>Edit
git clone [email protected]:homebrew/brew.git
cd brew
open Library/Homebrew/formula.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Formula-opt_prefix-for-pr
# Commit to gitgit add Library/Homebrew/formula.rbgit commit -m "better docs for Formula#opt_prefix"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Formula-opt_prefix-for-pr
hub pull-request
# Celebrate!