From 8413d448bade0015e639c7ff6131cd454a383f4b Mon Sep 17 00:00:00 2001 From: Igor Shishkin Date: Sat, 1 Dec 2018 12:37:30 +0300 Subject: [PATCH] Homebrew formula is deprecated Now it's required manual support of build process for Homebrew which differs from release one. Signed-off-by: Igor Shishkin --- contrib/Homebrew/checksum.rb | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 contrib/Homebrew/checksum.rb diff --git a/contrib/Homebrew/checksum.rb b/contrib/Homebrew/checksum.rb deleted file mode 100644 index 72d85aa..0000000 --- a/contrib/Homebrew/checksum.rb +++ /dev/null @@ -1,30 +0,0 @@ -class Checksum < Formula - desc "SHA256 file verification for consistency check purposes" - homepage "https://github.com/teran/checksum" - version "0.8.2" - url "https://github.com/teran/checksum/archive/v#{version}.tar.gz" - sha256 "3a5275013c75b9a1e9761dae3128975fdc5c38566be52a26c22faf1c38a6ab21" - - depends_on "go" => :build - depends_on "make" => :build - depends_on "dep" => :build - - def install - ENV["GOPATH"] = buildpath - ENV["REVISION"] = version - arch = MacOS.prefer_64_bit? ? "amd64" : "i386" - (buildpath/"src/github.com/teran/checksum").install buildpath.children - cd "src/github.com/teran/checksum" do - ENV["DEP_BUILD_PLATFORMS"] = "darwin" - ENV["DEP_BUILD_ARCHS"] = arch - system "dep", "ensure" - system "make", "build-macos-#{arch}" - bin.install "bin/checksum-darwin-#{arch}" => "checksum" - prefix.install_metafiles - end - end - - test do - system "make", "test" - end -end