brew

https://github.com/homebrew/brew

Ruby

🍺 The missing package manager for macOS

Formula.stable

Allows adding {.depends_on} and {#patch}es just to the {.stable} {SoftwareSpec}.
This is required instead of using a conditional.
It is preferrable to also pull the {url} and {.sha256} into the block if one is added.

<pre>stable do
  url "https://example.com/foo-1.0.tar.gz"
  sha256 "2a2ba417eebaadcb4418ee7b12fe2998f26d6e6f7fda7983412ff66a741ab6f7"

  depends_on "libxml2"
  depends_on "libffi"
end</pre>

Source | Google | Stack overflow

Edit

git clone [email protected]:homebrew/brew.git

cd brew

open Library/Homebrew/formula.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Formula-stable-for-pr


# Commit to git

git add Library/Homebrew/formula.rbgit commit -m "better docs for Formula.stable"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Formula-stable-for-pr

hub pull-request


# Celebrate!