-
-
Save jedahan/1d3900ddbf2a84dc37827cb9e57290e6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "language/go" | |
class Gx < Formula | |
desc "The language-agnostic, universal package manager" | |
homepage "https://github.com/whyrusleeping/gx" | |
url "https://github.com/whyrusleeping/gx.git", | |
:tag => "v0.4.0", | |
:revision => "b82b91b0cf30023c277903ab1ed6b158e80d5d23" | |
head "https://github.com/whyrusleeping/gx.git" | |
depends_on "go" => :build | |
depends_on "godep" => :build | |
go_resource "github.com/blang/semver" do | |
url "https://github.com/blang/semver.git", | |
:revision => "aea32c919a18e5ef4537bbd283ff29594b1b0165" | |
end | |
go_resource "github.com/codegangsta/cli" do | |
url "https://github.com/codegangsta/cli.git", | |
:revision => "565493f259bf868adb54d45d5f4c68d405117adf" | |
end | |
go_resource "github.com/whyrusleeping/stump" do | |
url "https://github.com/whyrusleeping/stump.git", | |
:revision => "bdc01b1f13fc5bed17ffbf4e0ed7ea17fd220ee6" | |
end | |
def install | |
ENV["GOPATH"] = buildpath | |
mkdir_p buildpath/"src/github.com/whyrusleeping/gx/" | |
ln_sf buildpath, buildpath/"src/github.com/whyrusleeping/gx/gx-util" | |
Language::Go.stage_deps resources, buildpath/"src" | |
system "make" | |
bin.install "gx" | |
end | |
test do | |
system "#{bin}/gx", "version" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment