homebrew-core/Formula/calcurse.rb

46 lines
1.4 KiB
Ruby

class Calcurse < Formula
desc "Text-based personal organizer"
homepage "https://calcurse.org/"
url "https://calcurse.org/files/calcurse-4.7.0.tar.gz"
sha256 "ef6675966a53f41196006ce624ece222fe400da0563f4fed1ae0272ad45c8435"
license "BSD-2-Clause"
livecheck do
url "https://calcurse.org/downloads/"
regex(/href=.*?calcurse[._-]v?(\d+(?:\.\d+)+)\.t/i)
end
bottle do
sha256 arm64_big_sur: "5aaa47c9b5dd34f3c40b7e5a22b09b380cebe35322cef729c54bffb9600fd695"
sha256 big_sur: "12fe7aff828aaabcff46bfa31195b5f0c61e2402f670d54ad4cdb76e5c9290f8"
sha256 catalina: "880bc4dc68e7e8e7ffe83313d01ee8ef7b33f883f899d68cb030af739601d99c"
sha256 mojave: "70508c51a1f448e13a75fdcab3a85b4cb3c1dc104d62335c32262a0e80fd72f7"
sha256 high_sierra: "02c93d56af71b2272798dea09ce629ba271bda4afaf7965f8fdc00a5a91774d7"
end
head do
url "https://git.calcurse.org/calcurse.git"
depends_on "asciidoc" => :build
depends_on "autoconf" => :build
depends_on "automake" => :build
end
depends_on "gettext"
def install
system "./autogen.sh" if build.head?
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
# Specify XML_CATALOG_FILES for asciidoc
system "make", "XML_CATALOG_FILES=/usr/local/etc/xml/catalog"
system "make", "install"
end
test do
system bin/"calcurse", "-v"
end
end