homebrew-core/Formula/fossil.rb

48 lines
1.5 KiB
Ruby

class Fossil < Formula
desc "Distributed software configuration management"
homepage "https://www.fossil-scm.org/home/"
url "https://www.fossil-scm.org/home/uv/fossil-src-2.14.tar.gz"
sha256 "b8d0c920196dd8ae29152fa7448e513a1fa7c588871b785e3fbfc07b42a05fb9"
license "BSD-2-Clause"
head "https://www.fossil-scm.org/", using: :fossil
livecheck do
url "https://www.fossil-scm.org/home/uv/download.js"
regex(/"title":\s*?"Version (\d+(?:\.\d+)+)\s*?\(/i)
end
bottle do
sha256 cellar: :any, arm64_big_sur: "d0ac7394862b01c94118282bc7fe014ecc004818d0bdb5d7ad62ead3a4f8c789"
sha256 cellar: :any, big_sur: "47b62a05daf6fc12735cc10ac3d661a058df73c918c0d425c8a06b5d33ceae40"
sha256 cellar: :any, catalina: "514265081557287157fad22327aed27e937229caa445a5ea363c7edee0ada162"
sha256 cellar: :any, mojave: "a2c6c8c85d54a253ac499ea88402b397562db29e4f1d21d6103728921ff50335"
end
depends_on "openssl@1.1"
uses_from_macos "zlib"
def install
args = [
# fix a build issue, recommended by upstream on the mailing-list:
# https://permalink.gmane.org/gmane.comp.version-control.fossil-scm.user/22444
"--with-tcl-private-stubs=1",
"--json",
"--disable-fusefs",
]
args << if MacOS.sdk_path_if_needed
"--with-tcl=#{MacOS.sdk_path}/System/Library/Frameworks/Tcl.framework"
else
"--with-tcl-stubs"
end
system "./configure", *args
system "make"
bin.install "fossil"
end
test do
system "#{bin}/fossil", "init", "test"
end
end