Good idea, I will try downloading and building the dependencies before
building gh.


On Thu, Dec 5, 2013 at 7:38 AM, Mike McQuaid <notifications@github.com>wrote:

> In Library/Formula/gh.rb:
>
> > @@ -0,0 +1,23 @@
> > +require "formula"
> > +
> > +class Gh < Formula
> > +  homepage "https://github.com/jingweno/gh"
> > +  head "https://github.com/jingweno/gh.git"
> > +  url "https://github.com/jingweno/gh/archive/v0.25.1.tar.gz"
> > +  sha1 '02a2010e07c859d361ceb47700ec2a8ee07a42a2'
> > +  depends_on "go" => :build
> > +  depends_on :hg => :build
> > +
> > +  def install
> > +    ENV["GOPATH"] = buildpath
> > +    system 'go get github.com/jingweno/gh'
>
> We need to do something with go build; perhaps add the dependencies as
> resources.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/mxcl/homebrew/pull/24797/files#r8115259>
> .
>