226 lines
7.7 KiB
Ruby
226 lines
7.7 KiB
Ruby
require "language/go"
|
|
|
|
class GxGo < Formula
|
|
desc "Tool to use with the gx package manager for packages written in go."
|
|
homepage "https://github.com/whyrusleeping/gx-go"
|
|
url "https://github.com/whyrusleeping/gx-go/archive/v1.5.0.tar.gz"
|
|
sha256 "2c0f5bb4ec147cb8efb6e6cd90ca42d1704baf4e44a735cbcf824316ae81f5f5"
|
|
head "https://github.com/whyrusleeping/gx-go.git"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
rebuild 1
|
|
sha256 "b8f5035a637dd15236c01c7edd193b6e786c61a67ec404e2caf4a987cbe3b4a7" => :high_sierra
|
|
sha256 "6241d5081be9d8a376f4fa64edc16350242466a0f7716f82946689145b699102" => :sierra
|
|
sha256 "938b5b269b22301e95d10a6c81c2c151a245a34de358cf90ddf97fb3b35037bf" => :el_capitan
|
|
end
|
|
|
|
depends_on "go" => :build
|
|
|
|
go_resource "github.com/agl/ed25519" do
|
|
url "https://github.com/agl/ed25519.git",
|
|
:revision => "5312a61534124124185d41f09206b9fef1d88403"
|
|
end
|
|
|
|
go_resource "github.com/btcsuite/btcd" do
|
|
url "https://github.com/btcsuite/btcd.git",
|
|
:revision => "9822ffad6802d3b902442b727a238230194d961f"
|
|
end
|
|
|
|
go_resource "github.com/codegangsta/cli" do
|
|
url "https://github.com/codegangsta/cli.git",
|
|
:revision => "4b90d79a682b4bf685762c7452db20f2a676ecb2"
|
|
end
|
|
|
|
go_resource "github.com/coreos/go-semver" do
|
|
url "https://github.com/coreos/go-semver.git",
|
|
:revision => "1817cd4bea52af76542157eeabd74b057d1a199e"
|
|
end
|
|
|
|
go_resource "github.com/gogo/protobuf" do
|
|
url "https://github.com/gogo/protobuf.git",
|
|
:revision => "dda3e8acadcc9affc16faf33fbb229db78399245"
|
|
end
|
|
|
|
go_resource "github.com/ipfs/go-ipfs-api" do
|
|
url "https://github.com/ipfs/go-ipfs-api.git",
|
|
:revision => "2da86eb64d56571c123c02ae82140c7b4b95f72a"
|
|
end
|
|
|
|
go_resource "github.com/ipfs/go-ipfs-util" do
|
|
url "https://github.com/ipfs/go-ipfs-util.git",
|
|
:revision => "f25fcc891281327394bb48000ef0970d11baff2b"
|
|
end
|
|
|
|
go_resource "github.com/ipfs/go-log" do
|
|
url "https://github.com/ipfs/go-log.git",
|
|
:revision => "48d644b006ba26f1793bffc46396e981801078e3"
|
|
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/jbenet/goprocess" do
|
|
url "https://github.com/jbenet/goprocess.git",
|
|
:revision => "b497e2f366b8624394fb2e89c10ab607bebdde0b"
|
|
end
|
|
|
|
go_resource "github.com/kr/fs" do
|
|
url "https://github.com/kr/fs.git",
|
|
:revision => "2788f0dbd16903de03cb8186e5c7d97b69ad387b"
|
|
end
|
|
|
|
go_resource "github.com/libp2p/go-floodsub" do
|
|
url "https://github.com/libp2p/go-floodsub.git",
|
|
:revision => "a922092abea58f07c32eabe303ec817569578740"
|
|
end
|
|
|
|
go_resource "github.com/libp2p/go-libp2p-crypto" do
|
|
url "https://github.com/libp2p/go-libp2p-crypto.git",
|
|
:revision => "e89e1de117dd65c6129d99d1d853f48bc847cf17"
|
|
end
|
|
|
|
go_resource "github.com/libp2p/go-libp2p-host" do
|
|
url "https://github.com/libp2p/go-libp2p-host.git",
|
|
:revision => "c1fc482de113ce7e4cdc9453a1c1c0fe4164d985"
|
|
end
|
|
|
|
go_resource "github.com/libp2p/go-libp2p-interface-conn" do
|
|
url "https://github.com/libp2p/go-libp2p-interface-conn.git",
|
|
:revision => "95afdbf0c900237f3b9104f1f7cfd3d56175a241"
|
|
end
|
|
|
|
go_resource "github.com/libp2p/go-libp2p-net" do
|
|
url "https://github.com/libp2p/go-libp2p-net.git",
|
|
:revision => "2680a9894c7aabada540f728a53d7c1a16a1a44a"
|
|
end
|
|
|
|
go_resource "github.com/libp2p/go-libp2p-peer" do
|
|
url "https://github.com/libp2p/go-libp2p-peer.git",
|
|
:revision => "166a39e33e7a2a47a4bf999264f254ecaa4fe232"
|
|
end
|
|
|
|
go_resource "github.com/libp2p/go-libp2p-peerstore" do
|
|
url "https://github.com/libp2p/go-libp2p-peerstore.git",
|
|
:revision => "744a149e48eb42e032540507c8545d12cc3b7f6f"
|
|
end
|
|
|
|
go_resource "github.com/libp2p/go-libp2p-protocol" do
|
|
url "https://github.com/libp2p/go-libp2p-protocol.git",
|
|
:revision => "40488c03777c16bfcd65da2f675b192863cbc2dc"
|
|
end
|
|
|
|
go_resource "github.com/libp2p/go-libp2p-transport" do
|
|
url "https://github.com/libp2p/go-libp2p-transport.git",
|
|
:revision => "5d3cb5861b59c26052a5fe184e45c381ec17e22d"
|
|
end
|
|
|
|
go_resource "github.com/libp2p/go-maddr-filter" do
|
|
url "https://github.com/libp2p/go-maddr-filter.git",
|
|
:revision => "90aacb5ee155f0d6f3fa8b34d775de842606c0b1"
|
|
end
|
|
|
|
go_resource "github.com/mitchellh/go-homedir" do
|
|
url "https://github.com/mitchellh/go-homedir.git",
|
|
:revision => "b8bc1bf767474819792c23f32d8286a45736f1c6"
|
|
end
|
|
|
|
go_resource "github.com/multiformats/go-multiaddr" do
|
|
url "https://github.com/multiformats/go-multiaddr.git",
|
|
:revision => "33741da7b3f5773a599d4a03c333704fc560ef34"
|
|
end
|
|
|
|
go_resource "github.com/multiformats/go-multiaddr-net" do
|
|
url "https://github.com/multiformats/go-multiaddr-net.git",
|
|
:revision => "a7b93d11855f04f56908e1385991eb6a400fcc43"
|
|
end
|
|
|
|
go_resource "github.com/multiformats/go-multihash" do
|
|
url "https://github.com/multiformats/go-multihash.git",
|
|
:revision => "a52a6a4768da72eba89ea7f59f70e9d42ddd3072"
|
|
end
|
|
|
|
go_resource "github.com/multiformats/go-multistream" do
|
|
url "https://github.com/multiformats/go-multistream.git",
|
|
:revision => "b8f1996688ab586031517919b49b1967fca8d5d9"
|
|
end
|
|
|
|
go_resource "github.com/sabhiram/go-git-ignore" do
|
|
url "https://github.com/sabhiram/go-git-ignore.git",
|
|
:revision => "87c28ffedb6cb7ff29ae89e0440e9ddee0d95a9e"
|
|
end
|
|
|
|
go_resource "github.com/spaolacci/murmur3" do
|
|
url "https://github.com/spaolacci/murmur3.git",
|
|
:revision => "0d12bf811670bf6a1a63828dfbd003eded177fce"
|
|
end
|
|
|
|
go_resource "github.com/whyrusleeping/go-logging" do
|
|
url "https://github.com/whyrusleeping/go-logging.git",
|
|
:revision => "0457bb6b88fc1973573aaf6b5145d8d3ae972390"
|
|
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/gx" do
|
|
url "https://github.com/whyrusleeping/gx.git",
|
|
:revision => "4dee4600829c587123523cc5d9d38b95ff7a7c12"
|
|
end
|
|
|
|
go_resource "github.com/whyrusleeping/mafmt" do
|
|
url "https://github.com/whyrusleeping/mafmt.git",
|
|
:revision => "15300f9d3a2d71db61951a8705d5ea8878764837"
|
|
end
|
|
|
|
go_resource "github.com/whyrusleeping/progmeter" do
|
|
url "https://github.com/whyrusleeping/progmeter.git",
|
|
:revision => "974d8fe8cd87585865b1370184050e89d606e817"
|
|
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 "github.com/whyrusleeping/timecache" do
|
|
url "https://github.com/whyrusleeping/timecache.git",
|
|
:revision => "cfcb2f1abfee846c430233aef0b630a946e0a5a6"
|
|
end
|
|
|
|
go_resource "golang.org/x/crypto" do
|
|
url "https://go.googlesource.com/crypto.git",
|
|
:revision => "a48ac81e47fd6f9ed1258f3b60ae9e75f93cb7ed"
|
|
end
|
|
|
|
go_resource "leb.io/hashland" do
|
|
url "https://github.com/tildeleb/hashland.git",
|
|
:revision => "e13accbe55f7fa03c73c74ace4cca4c425e47260"
|
|
end
|
|
|
|
def install
|
|
ENV["GOPATH"] = buildpath
|
|
mkdir_p "src/github.com/whyrusleeping"
|
|
ln_s buildpath, "src/github.com/whyrusleeping/gx-go"
|
|
Language::Go.stage_deps resources, buildpath/"src"
|
|
system "go", "build", "-o", bin/"gx-go"
|
|
end
|
|
|
|
test do
|
|
system bin/"gx-go", "help"
|
|
end
|
|
end
|