Merge pull request #207020 from Homebrew/bump-qpdf-11.10.0
[Homebrew/homebrew-core.git] / Formula / g / geoipupdate.rb
blobbb6b436d7d1c72bcb20a21b6f06033e835d054ec
1 class Geoipupdate < Formula
2   desc "Automatic updates of GeoIP2 and GeoIP Legacy databases"
3   homepage "https://github.com/maxmind/geoipupdate"
4   url "https://github.com/maxmind/geoipupdate/archive/refs/tags/v7.1.0.tar.gz"
5   sha256 "8b4c1c0032793513d86e4f1a68f771212f8ac54c8a1fe97a6132eb8f2bd45c53"
6   license "Apache-2.0"
7   head "https://github.com/maxmind/geoipupdate.git", branch: "main"
9   bottle do
10     sha256 arm64_sequoia: "879138f872eb4fbb96895268287121d7c27966d259b40d890ec1218e918399f2"
11     sha256 arm64_sonoma:  "fcb0c24006056d5dc86f6b65236c54d03f9439b2d51f4a8fa65e728a3d4f1654"
12     sha256 arm64_ventura: "5be3417165d85f2df25aba622f6fd5f8807c4f57784bdda24553de2c0580e26d"
13     sha256 sonoma:        "fe83e7f30b79b4408a11e5afa9334e4840431ee6baea5327f52ead9750023338"
14     sha256 ventura:       "aa0968b8b867dc8897d0bebb1f3d1e5718df65afcab1f717d334fc9bff570d1c"
15     sha256 x86_64_linux:  "af703e88801ea8b831adee390b374262313aef27cdafd2ad3488fb8b60ac360c"
16   end
18   depends_on "go" => :build
19   depends_on "pandoc" => :build
21   uses_from_macos "curl"
22   uses_from_macos "zlib"
24   def install
25     system "make", "CONFFILE=#{etc}/GeoIP.conf", "DATADIR=#{var}/GeoIP", "VERSION=#{version} (homebrew)"
27     bin.install  "build/geoipupdate"
28     etc.install  "build/GeoIP.conf"
29     man1.install "build/geoipupdate.1"
30     man5.install "build/GeoIP.conf.5"
31   end
33   def post_install
34     (var/"GeoIP").mkpath
35   end
37   test do
38     system bin/"geoipupdate", "-V"
39   end
40 end