2016-04-10 18:32:47 +00:00
|
|
|
require "language/go"
|
|
|
|
|
|
|
|
class Gx < Formula
|
|
|
|
desc "The language-agnostic, universal package manager"
|
|
|
|
homepage "https://github.com/whyrusleeping/gx"
|
2016-07-10 06:56:11 +00:00
|
|
|
url "https://github.com/whyrusleeping/gx/archive/v0.8.0.tar.gz"
|
|
|
|
sha256 "aad59957faf228fe6266d30a555b9b569c95f1d45820e858c6dfd9004f9ebfb3"
|
2016-04-10 18:32:47 +00:00
|
|
|
head "https://github.com/whyrusleeping/gx.git"
|
|
|
|
|
2016-04-12 05:09:34 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any_skip_relocation
|
2016-07-10 07:06:40 +00:00
|
|
|
sha256 "2086082991007e8422ae29c52606750af198e086ff88d4b8936cb02303a47203" => :el_capitan
|
|
|
|
sha256 "3f7240d4f7fc31af633974c97f9a34efb0672fa43fb439a3834c929a8cfa20d8" => :yosemite
|
|
|
|
sha256 "aabe872b28c0e9674dc1827a24b515a7c8252cc1f134e1590df7a7bf31f812e4" => :mavericks
|
2016-04-12 05:09:34 +00:00
|
|
|
end
|
|
|
|
|
2016-04-10 18:32:47 +00:00
|
|
|
depends_on "go" => :build
|
2016-06-24 11:40:17 +00:00
|
|
|
|
|
|
|
go_resource "github.com/anacrolix/missinggo" do
|
|
|
|
url "https://github.com/anacrolix/missinggo.git",
|
2016-07-10 06:56:11 +00:00
|
|
|
:revision => "797fc5dd606f07c7c8af5bed81b61c2a8dccefb0"
|
2016-06-24 11:40:17 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
go_resource "github.com/anacrolix/sync" do
|
|
|
|
url "https://github.com/anacrolix/sync.git",
|
2016-07-10 06:56:11 +00:00
|
|
|
:revision => "812602587b72df6a2a4f6e30536adc75394a374b"
|
2016-06-24 11:40:17 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
go_resource "github.com/anacrolix/utp" do
|
|
|
|
url "https://github.com/anacrolix/utp.git",
|
2016-07-10 06:56:11 +00:00
|
|
|
:revision => "d7ad5aff2b8a5fa415d1c1ed00b71cfd8b4c69e0"
|
2016-06-24 11:40:17 +00:00
|
|
|
end
|
2016-04-10 18:32:47 +00:00
|
|
|
|
|
|
|
go_resource "github.com/blang/semver" do
|
|
|
|
url "https://github.com/blang/semver.git",
|
2016-07-10 06:56:11 +00:00
|
|
|
:revision => "60ec3488bfea7cca02b021d106d9911120d25fe9"
|
2016-04-10 18:32:47 +00:00
|
|
|
end
|
|
|
|
|
2016-06-24 11:40:17 +00:00
|
|
|
go_resource "github.com/bradfitz/iter" do
|
|
|
|
url "https://github.com/bradfitz/iter.git",
|
2016-07-10 06:56:11 +00:00
|
|
|
:revision => "454541ec3da2a73fc34fd049b19ee5777bf19345"
|
2016-04-10 18:32:47 +00:00
|
|
|
end
|
|
|
|
|
2016-06-24 11:40:17 +00:00
|
|
|
go_resource "github.com/codegangsta/cli" do
|
|
|
|
url "https://github.com/codegangsta/cli.git",
|
2016-07-10 06:56:11 +00:00
|
|
|
:revision => "1efa31f08b9333f1bd4882d61f9d668a70cd902e"
|
2016-04-10 18:32:47 +00:00
|
|
|
end
|
|
|
|
|
2016-06-24 11:40:17 +00:00
|
|
|
go_resource "github.com/ipfs/go-ipfs-api" do
|
|
|
|
url "https://github.com/ipfs/go-ipfs-api.git",
|
2016-07-10 06:56:11 +00:00
|
|
|
:revision => "b683f180dcbe2241e95502f2315622f0bcbb5848"
|
2016-04-10 18:32:47 +00:00
|
|
|
end
|
|
|
|
|
2016-06-24 11:40:17 +00:00
|
|
|
go_resource "github.com/jbenet/go-base58" do
|
|
|
|
url "https://github.com/jbenet/go-base58.git",
|
2016-07-10 06:56:11 +00:00
|
|
|
:revision => "6237cf65f3a6f7111cd8a42be3590df99a66bc7d"
|
2016-04-10 18:32:47 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
go_resource "github.com/jbenet/go-multiaddr" do
|
|
|
|
url "https://github.com/jbenet/go-multiaddr.git",
|
2016-07-10 06:56:11 +00:00
|
|
|
:revision => "f3dff105e44513821be8fbe91c89ef15eff1b4d4"
|
2016-04-10 18:32:47 +00:00
|
|
|
end
|
|
|
|
|
2016-06-24 11:40:17 +00:00
|
|
|
go_resource "github.com/jbenet/go-multiaddr-net" do
|
|
|
|
url "https://github.com/jbenet/go-multiaddr-net.git",
|
2016-07-10 06:56:11 +00:00
|
|
|
:revision => "d4cfd691db9f50e430528f682ca603237b0eaae0"
|
2016-04-10 18:32:47 +00:00
|
|
|
end
|
|
|
|
|
2016-06-24 11:40:17 +00:00
|
|
|
go_resource "github.com/jbenet/go-multihash" do
|
|
|
|
url "https://github.com/jbenet/go-multihash.git",
|
2016-07-10 06:56:11 +00:00
|
|
|
:revision => "dfd3350f10a27ba2cfcd0e5e2d12c43a69f6e408"
|
2016-04-10 18:32:47 +00:00
|
|
|
end
|
|
|
|
|
2016-06-24 11:40:17 +00:00
|
|
|
go_resource "github.com/jbenet/go-os-rename" do
|
|
|
|
url "https://github.com/jbenet/go-os-rename.git",
|
2016-07-10 06:56:11 +00:00
|
|
|
:revision => "3ac97f61ef67a6b87b95c1282f6c317ed0e693c2"
|
2016-04-10 18:32:47 +00:00
|
|
|
end
|
|
|
|
|
2016-06-24 11:40:17 +00:00
|
|
|
go_resource "github.com/mitchellh/go-homedir" do
|
|
|
|
url "https://github.com/mitchellh/go-homedir.git",
|
2016-07-10 06:56:11 +00:00
|
|
|
:revision => "756f7b183b7ab78acdbbee5c7f392838ed459dda"
|
2016-04-10 18:32:47 +00:00
|
|
|
end
|
|
|
|
|
2016-06-24 11:40:17 +00:00
|
|
|
go_resource "github.com/sabhiram/go-git-ignore" do
|
|
|
|
url "https://github.com/sabhiram/go-git-ignore.git",
|
2016-07-10 06:56:11 +00:00
|
|
|
:revision => "228fcfa2a06e870a3ef238d54c45ea847f492a37"
|
2016-04-10 18:32:47 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
go_resource "github.com/whyrusleeping/go-multipart-files" do
|
|
|
|
url "https://github.com/whyrusleeping/go-multipart-files.git",
|
2016-07-10 06:56:11 +00:00
|
|
|
:revision => "3be93d9f6b618f2b8564bfb1d22f1e744eabbae2"
|
2016-06-24 11:40:17 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
go_resource "github.com/whyrusleeping/json-filter" do
|
|
|
|
url "https://github.com/whyrusleeping/json-filter.git",
|
2016-07-10 06:56:11 +00:00
|
|
|
:revision => "ff25329a9528f01c5175414f16cc0a6a162a5b8b"
|
2016-06-24 11:40:17 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
go_resource "github.com/whyrusleeping/stump" do
|
|
|
|
url "https://github.com/whyrusleeping/stump.git",
|
2016-07-10 06:56:11 +00:00
|
|
|
:revision => "206f8f13aae1697a6fc1f4a55799faf955971fc5"
|
2016-04-10 18:32:47 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
go_resource "github.com/whyrusleeping/tar-utils" do
|
|
|
|
url "https://github.com/whyrusleeping/tar-utils.git",
|
2016-07-10 06:56:11 +00:00
|
|
|
:revision => "beab27159606f5a7c978268dd1c3b12a0f1de8a7"
|
2016-06-24 11:40:17 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
go_resource "golang.org/x/crypto" do
|
|
|
|
url "https://go.googlesource.com/crypto.git",
|
2016-07-10 06:56:11 +00:00
|
|
|
:revision => "c2f4947f41766b144bb09066e919466da5eddeae"
|
2016-04-10 18:32:47 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
ENV["GOPATH"] = buildpath
|
2016-06-24 11:40:17 +00:00
|
|
|
mkdir_p "src/github.com/whyrusleeping"
|
|
|
|
ln_s buildpath, "src/github.com/whyrusleeping/gx"
|
2016-04-10 18:32:47 +00:00
|
|
|
Language::Go.stage_deps resources, buildpath/"src"
|
2016-06-24 11:40:17 +00:00
|
|
|
system "go", "build", "-o", bin/"gx"
|
2016-04-10 18:32:47 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
2016-06-24 11:40:17 +00:00
|
|
|
system bin/"gx", "help"
|
2016-04-10 18:32:47 +00:00
|
|
|
end
|
|
|
|
end
|