Skip to content

Instantly share code, notes, and snippets.

@tmepple
Created June 9, 2017 15:09
Show Gist options
  • Save tmepple/9c2dd6d0ed2b5071a9efdb02e831e8f1 to your computer and use it in GitHub Desktop.
Save tmepple/9c2dd6d0ed2b5071a9efdb02e831e8f1 to your computer and use it in GitHub Desktop.
Simple Homebrew Formula to compile and install Goon driver.
class Goon < Formula
desc "Goon Driver for Elixir Porcelain Library"
homepage "https://github.com/alco/goon"
url "https://github.com/alco/goon.git", :tag => "v1.1.1", :revision => "756deaad8465c4326841d8b8cbd194f724be6160"
head "https://github.com/alco/goon.git"
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
system "go", "build", "-o", "goon"
bin.install "goon"
end
test do
system "#{bin}/goon", "-v"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment