Skip to content

Instantly share code, notes, and snippets.

@gcoonrod
Created October 23, 2015 19:19
Show Gist options
  • Save gcoonrod/c5ec92575285fe6cebad to your computer and use it in GitHub Desktop.
Save gcoonrod/c5ec92575285fe6cebad to your computer and use it in GitHub Desktop.
Devd Homebrew Formula
require "language/go"
class Devd < Formula
desc "A http daemon for local development"
homepage "https://github.com/cortesi/devd"
url "https://github.com/cortesi/devd/archive/v0.1.tar.gz"
version "0.1"
sha256 "7ea5251b951159e0e58f314f7b46ed0d97788a19aa0aef6fdfb0f1f87dd8a98e"
head "https://github.com/cortesi/devd/devd.git"
depends_on "go" => :build
go_resource "github.com/GeertJohan/go.rice" do
url "https://github.com/GeertJohan/go.rice.git",
:revision => "ada95a01c963696fb73320ee662195af68be81ae"
end
go_resource "github.com/alecthomas/template" do
url "https://github.com/alecthomas/template.git",
:revision => "b867cc6ab45cece8143cfcc6fc9c77cf3f2c23c0"
end
go_resource "github.com/alecthomas/units" do
url "https://github.com/alecthomas/units.git",
:revision => "2efee857e7cfd4f3d0138cc3cbb1b4966962b93a"
end
go_resource "github.com/cortesi/devd" do
url "https://github.com/cortesi/devd.git",
:revision => "648a49270193aca9c903673d92447a0946fe9954"
end
go_resource "github.com/daaku/go.zipexe" do
url "https://github.com/daaku/go.zipexe.git",
:revision => "a5fe2436ffcb3236e175e5149162b41cd28bd27d"
end
go_resource "github.com/dustin/go-humanize" do
url "https://github.com/dustin/go-humanize.git",
:revision => "c20a8bde38c8f5ba06f6600edf473705c96829d1"
end
go_resource "github.com/fatih/color" do
url "https://github.com/fatih/color.git",
:revision => "76d423163af754ff6423d2d9be0057fbf03c57c2"
end
go_resource "github.com/gorilla/websocket" do
url "https://github.com/gorilla/websocket.git",
:revision => "527637c0f38a8035d7856bb758e56f7ee2c704a9"
end
go_resource "github.com/juju/ratelimit" do
url "https://github.com/juju/ratelimit.git",
:revision => "772f5c38e468398c4511514f4f6aa9a4185bc0a0"
end
go_resource "github.com/kardianos/osext" do
url "https://github.com/kardianos/osext.git",
:revision => "6e7f843663477789fac7c02def0d0909e969b4e5"
end
go_resource "github.com/mattn/go-isatty" do
url "https://github.com/mattn/go-isatty.git",
:revision => "7fcbc72f853b92b5720db4a6b8482be612daef24"
end
go_resource "github.com/rjeczalik/notify" do
url "https://github.com/rjeczalik/notify.git",
:revision => "bd6da98556acc4e2dd816891bffd4af7dfce1403"
end
go_resource "github.com/shiena/ansicolor" do
url "https://github.com/shiena/ansicolor.git",
:revision => "d445752f6f66f9cd987722f109149f6799cdf1de"
end
go_resource "github.com/toqueteos/webbrowser" do
url "https://github.com/toqueteos/webbrowser.git",
:revision => "21fc9f95c83442fd164094666f7cb4f9fdd56cd6"
end
go_resource "golang.org/x/crypto" do
url "https://go.googlesource.com/crypto.git",
:revision => "c8b9e6388ef638d5a8a9d865c634befdc46a6784"
end
go_resource "golang.org/x/net" do
url "https://go.googlesource.com/net.git",
:revision => "2cba614e8ff920c60240d2677bc019af32ee04e5"
end
go_resource "gopkg.in/alecthomas/kingpin.v2" do
url "https://gopkg.in/alecthomas/kingpin.v2.git",
:revision => "ad3f502db8f0ebd60d920400a16eabdfb7908964"
end
def install
ENV["GOPATH"] = buildpath
mkdir_p buildpath/"src/github.com/cortesi"
ln_s buildpath, buildpath/"src/github.com/cortesi/devd"
Language::Go.stage_deps resources, buildpath/"src"
system "go", "build", "-o", "devd"
bin.install "devd"
end
test do
system "#{bin}/devd", "--version"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment