-
Notifications
You must be signed in to change notification settings - Fork 1
How to Homebrew
Francesco Romano edited this page Dec 15, 2016
·
2 revisions
- Specify the resource, e.g.
resource "kmarkus_rFSM" do
url "https://github.com/kmarkus/rFSM.git", :branch => "master"
end
- use the resource
resource("kmarkus_rFSM").stage{
#this is because the path is more complicated then standard prefixes
bindingsShare = Pathname.new("#{share}/yarp/bindings")
bindingsShare.install Dir["*"] #e.g. copy all files
}
- Default options for formula
brew install --build-bottle $FORMULA
brew bottle $FORMULA
- Copy the DSL to the bottle block of the formula
- Custom URL: use the
root_url "http://example.com"
option. The URL is composed as:#{root_url}/#{name}-#{version}.#{tag}.bottle.#{revision}.tar.gz