Skip to content

Commit

Permalink
Merge branch 'main' of github.com:paperchalice/homebrew-private
Browse files Browse the repository at this point in the history
  • Loading branch information
paperchalice committed Dec 15, 2024
2 parents f5f38b1 + 50fd636 commit 5eb55e3
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions Formula/tzdb.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
class Tzdb < Formula
desc "Time Zone Database"
homepage "https://www.iana.org/time-zones"
url "https://data.iana.org/time-zones/releases/tzdb-2024b.tar.lz"
sha256 "22674a67786d3ec1b0547305904011cb2b9126166e72abbbea39425de5595233"
license all_of: ["BSD-3-Clause", :public_domain]

bottle do
root_url "https://github.com/paperchalice/homebrew-private/releases/download/tzdb-2024b"
sha256 ventura: "3d54a1fb4bf592008c765ffb6ad8b86e0915744de79f620588fdc4ab8c0a2073"
end

depends_on "gettext"

def install
gettext = Formula["gettext"]
make_args = %W[
CFLAGS=-Oz\ -DHAVE_GETTEXT\ -I#{gettext.include}\ -L#{gettext.lib}
LDLIBS=-lintl
USRDIR=#{prefix}
TZDEFAULT=#{prefix}/etc/localtime
]
system "make", *make_args, "install"
end

test do
assert_match "UTC", shell_output("#{bin}/zdump UTC")
end
end

0 comments on commit 5eb55e3

Please sign in to comment.