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-10-12 08:37:16 +00:00
|
|
|
url "https://github.com/whyrusleeping/gx/archive/v0.10.0.tar.gz"
|
|
|
|
sha256 "041ec0f773a8ea4bb3a0c5701c3441990a6ab647d54a0eb7489672e47125b3f3"
|
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-10-12 08:52:13 +00:00
|
|
|
sha256 "fe55483810f61c0450e6b641bcd6a40d018ade352b48af8bea5e4c9d42d01922" => :sierra
|
|
|
|
sha256 "4b665ab8a2f5d04627927cd6f002fc8143c5a3f2a3052a6110958727e95332dd" => :el_capitan
|
|
|
|
sha256 "21e788c9dbbe437b554989cb89d5cef46aa8f99b7c91c83903d83ba8192d5e9f" => :yosemite
|
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
|
|
|
|
2016-04-10 18:32:47 +00:00
|
|
|
go_resource "github.com/blang/semver" do
|
|
|
|
url "https://github.com/blang/semver.git",
|
2016-09-24 15:45:48 +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/codegangsta/cli" do
|
|
|
|
url "https://github.com/codegangsta/cli.git",
|
2016-10-12 08:37:16 +00:00
|
|
|
:revision => "55f715e28c46073d0e217e2ce8eb46b0b45e3db6"
|
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-10-12 08:37:16 +00:00
|
|
|
:revision => "0ee867280b9b85f2fcd6a3aa324728fc775dae48"
|
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-09-24 15:45:48 +00:00
|
|
|
:revision => "6237cf65f3a6f7111cd8a42be3590df99a66bc7d"
|
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-09-24 15:45:48 +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-09-24 15:45:48 +00:00
|
|
|
:revision => "756f7b183b7ab78acdbbee5c7f392838ed459dda"
|
2016-04-10 18:32:47 +00:00
|
|
|
end
|
|
|
|
|
2016-10-12 08:37:16 +00:00
|
|
|
go_resource "github.com/multiformats/go-multiaddr" do
|
|
|
|
url "https://github.com/multiformats/go-multiaddr.git",
|
|
|
|
:revision => "0de18dfd8007f3c2508a5635e5b1f1aec8231dfa"
|
|
|
|
end
|
|
|
|
|
|
|
|
go_resource "github.com/multiformats/go-multiaddr-net" do
|
|
|
|
url "https://github.com/multiformats/go-multiaddr-net.git",
|
|
|
|
:revision => "08107ee53b70f1516800744a64a25c248de68963"
|
|
|
|
end
|
|
|
|
|
|
|
|
go_resource "github.com/multiformats/go-multihash" do
|
|
|
|
url "https://github.com/multiformats/go-multihash.git",
|
|
|
|
:revision => "cb7bd6c14af4c504c8c486c36f5accd29ca1c30d"
|
|
|
|
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-09-24 15:45:48 +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-09-24 15:45:48 +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-09-24 15:45:48 +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-09-24 15:45:48 +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-09-24 15:45:48 +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-10-12 08:37:16 +00:00
|
|
|
:revision => "4cd25d65a015cc83d41bf3454e6e8d6c116d16da"
|
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
|