homebrew-core/Formula/stout.rb

44 lines
2.1 KiB
Ruby

class Stout < Formula
desc "Reliable static website deploy tool"
homepage "https://github.com/cloudflare/Stout"
url "https://github.com/cloudflare/Stout/archive/v1.3.2.tar.gz"
sha256 "33aa533beda7181d5efdcfb9fadcc568f58c1f7e27a4902adf1a6807c4875c99"
license "MIT"
bottle do
sha256 cellar: :any_skip_relocation, arm64_monterey: "dd10a1085d7eeda1f1fb49febcd1216dd4fab9c07d2a1daf20a283409a609fc5"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "8a8daaa0e22c67dd5988d21cbad74601d3c6bfe2320cabc4236d7ed4444befd2"
sha256 cellar: :any_skip_relocation, monterey: "c77888fdfabc4068d4f876bea213605188f2892210a10caf5126bb4f234c8e7e"
sha256 cellar: :any_skip_relocation, big_sur: "4f91bfefe5af79d0d5ff602956834ec6b20ff8fa55c1152ec37086a2129389c1"
sha256 cellar: :any_skip_relocation, catalina: "95406589caa2074808e99e54b755c2ea7b73fdd3ac8528c1a7f124895f3c1be5"
sha256 cellar: :any_skip_relocation, mojave: "7d90dec0fbc23cfc58b56261957818a0fb1af5c77086b1979b77ea1196484a25"
sha256 cellar: :any_skip_relocation, high_sierra: "cfff658fcb5319cd6a5053c645a9679d3db94e9dff4fbe91ae488ca31658a1fc"
sha256 cellar: :any_skip_relocation, sierra: "26554af96b6044316abecb1a2142e81b1aab8315bff941cbdad9b39fe143b74e"
sha256 cellar: :any_skip_relocation, x86_64_linux: "15db742d981663afb91ae74d337c992c4db3fce07fb5220e2c70ffda68cf6da9"
end
# https://github.com/cloudflare/Stout/issues/58
disable! date: "2022-07-31", because: :unmaintained
depends_on "go" => :build
def install
ENV["GOPATH"] = buildpath
ENV["GO111MODULE"] = "auto"
# Compatibility with newer Go.
# Reported upstream, but the project is unmaintained.
mkdir_p buildpath/"vendor/github.com/sspencer"
ln_s buildpath/"vendor/github.com/zackbloom/go-ini", buildpath/"vendor/github.com/sspencer/go-ini"
mkdir_p buildpath/"src/github.com/cloudflare"
ln_s buildpath, buildpath/"src/github.com/cloudflare/stout"
system "go", "build", "-o", bin/"stout", "-v", "github.com/cloudflare/stout/src"
end
test do
system "#{bin}/stout"
end
end