-
-
Notifications
You must be signed in to change notification settings - Fork 12.1k
/
calcurse.rb
49 lines (40 loc) 路 1.76 KB
/
calcurse.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
class Calcurse < Formula
desc "Text-based personal organizer"
homepage "https://calcurse.org/"
url "https://calcurse.org/files/calcurse-4.8.1.tar.gz"
sha256 "d86bb37014fd69b8d83ccb904ac979c6b8ddf59ee3dbc80f5a274525e4d5830a"
license "BSD-2-Clause"
livecheck do
url "https://calcurse.org/downloads/"
regex(/href=.*?calcurse[._-]v?(\d+(?:\.\d+)+)\.t/i)
end
bottle do
sha256 arm64_sonoma: "a65cd721971bc53914ae926c110cdea2da1a07e56cc39d27baa927c36f6f4934"
sha256 arm64_ventura: "06aed9c114caf7eb4c2d9377053a1ad7c38068668073392471776041005fad65"
sha256 arm64_monterey: "6fa82c03f449fac7c9ac5147bfec928eafc4fb954e8b83237f7dd12ec841ca0f"
sha256 arm64_big_sur: "bd80dc2cdaa60bc7c2179ddb040ac4d637e629a62c7e6808cf72d55065c1f38b"
sha256 sonoma: "84805e4841bbd1bca3f1a0f940121aeb9545696f634a90addef6dafd21c05f70"
sha256 ventura: "42caeb4b9974e324489abd0b2de0b79f32135040d748ef840b14c9d17e3671ff"
sha256 monterey: "71ac54ec9a310cb2e1cb76dba48a1805f3d4da56810851b4c1ed01ed5a028905"
sha256 big_sur: "34a9d866e4c0a83809187cf84a3248343580ee08c9566a3052e07e61d536fd65"
sha256 x86_64_linux: "e4b432bb1f32873d100d03212fb03d1a282e3c7a77dc905031ff05513fe0f76a"
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