brew

https://github.com/homebrew/brew

Ruby

🍺 The missing package manager for macOS

Formula#install

This method is overriden in {Formula} subclasses to provide the installation instructions.
The sources (from {.url}) are downloaded, hash-checked and
Homebrew changes into a temporary directory where the
archive was unpacked or repository cloned.
<pre>def install
  system "./configure", "--prefix=#{prefix}"
  system "make", "install"
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-install-for-pr


# Commit to git

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


# 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-install-for-pr

hub pull-request


# Celebrate!