Skip to content

How to Homebrew

Francesco Romano edited this page Dec 15, 2016 · 2 revisions

Download and install additional resources

  1. Specify the resource, e.g.
resource "kmarkus_rFSM" do
      url "https://github.com/kmarkus/rFSM.git", :branch => "master"
end
  1. 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
}

Generate bottles

  • 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
Clone this wiki locally