106 lines
3.6 KiB
Ruby
106 lines
3.6 KiB
Ruby
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/archive/v0.10.0.tar.gz"
|
|
sha256 "041ec0f773a8ea4bb3a0c5701c3441990a6ab647d54a0eb7489672e47125b3f3"
|
|
head "https://github.com/whyrusleeping/gx.git"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "fe55483810f61c0450e6b641bcd6a40d018ade352b48af8bea5e4c9d42d01922" => :sierra
|
|
sha256 "4b665ab8a2f5d04627927cd6f002fc8143c5a3f2a3052a6110958727e95332dd" => :el_capitan
|
|
sha256 "21e788c9dbbe437b554989cb89d5cef46aa8f99b7c91c83903d83ba8192d5e9f" => :yosemite
|
|
end
|
|
|
|
depends_on "go" => :build
|
|
|
|
go_resource "github.com/blang/semver" do
|
|
url "https://github.com/blang/semver.git",
|
|
:revision => "60ec3488bfea7cca02b021d106d9911120d25fe9"
|
|
end
|
|
|
|
go_resource "github.com/codegangsta/cli" do
|
|
url "https://github.com/codegangsta/cli.git",
|
|
:revision => "55f715e28c46073d0e217e2ce8eb46b0b45e3db6"
|
|
end
|
|
|
|
go_resource "github.com/ipfs/go-ipfs-api" do
|
|
url "https://github.com/ipfs/go-ipfs-api.git",
|
|
:revision => "0ee867280b9b85f2fcd6a3aa324728fc775dae48"
|
|
end
|
|
|
|
go_resource "github.com/jbenet/go-base58" do
|
|
url "https://github.com/jbenet/go-base58.git",
|
|
:revision => "6237cf65f3a6f7111cd8a42be3590df99a66bc7d"
|
|
end
|
|
|
|
go_resource "github.com/jbenet/go-os-rename" do
|
|
url "https://github.com/jbenet/go-os-rename.git",
|
|
:revision => "3ac97f61ef67a6b87b95c1282f6c317ed0e693c2"
|
|
end
|
|
|
|
go_resource "github.com/mitchellh/go-homedir" do
|
|
url "https://github.com/mitchellh/go-homedir.git",
|
|
:revision => "756f7b183b7ab78acdbbee5c7f392838ed459dda"
|
|
end
|
|
|
|
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
|
|
|
|
go_resource "github.com/sabhiram/go-git-ignore" do
|
|
url "https://github.com/sabhiram/go-git-ignore.git",
|
|
:revision => "228fcfa2a06e870a3ef238d54c45ea847f492a37"
|
|
end
|
|
|
|
go_resource "github.com/whyrusleeping/go-multipart-files" do
|
|
url "https://github.com/whyrusleeping/go-multipart-files.git",
|
|
:revision => "3be93d9f6b618f2b8564bfb1d22f1e744eabbae2"
|
|
end
|
|
|
|
go_resource "github.com/whyrusleeping/json-filter" do
|
|
url "https://github.com/whyrusleeping/json-filter.git",
|
|
:revision => "ff25329a9528f01c5175414f16cc0a6a162a5b8b"
|
|
end
|
|
|
|
go_resource "github.com/whyrusleeping/stump" do
|
|
url "https://github.com/whyrusleeping/stump.git",
|
|
:revision => "206f8f13aae1697a6fc1f4a55799faf955971fc5"
|
|
end
|
|
|
|
go_resource "github.com/whyrusleeping/tar-utils" do
|
|
url "https://github.com/whyrusleeping/tar-utils.git",
|
|
:revision => "beab27159606f5a7c978268dd1c3b12a0f1de8a7"
|
|
end
|
|
|
|
go_resource "golang.org/x/crypto" do
|
|
url "https://go.googlesource.com/crypto.git",
|
|
:revision => "4cd25d65a015cc83d41bf3454e6e8d6c116d16da"
|
|
end
|
|
|
|
def install
|
|
ENV["GOPATH"] = buildpath
|
|
mkdir_p "src/github.com/whyrusleeping"
|
|
ln_s buildpath, "src/github.com/whyrusleeping/gx"
|
|
Language::Go.stage_deps resources, buildpath/"src"
|
|
system "go", "build", "-o", bin/"gx"
|
|
end
|
|
|
|
test do
|
|
system bin/"gx", "help"
|
|
end
|
|
end
|