jackett 0.22.1382
[Homebrew/homebrew-core.git] / Formula / c / cadaver.rb
blobf0d8a47bc44d1ec25679a69c64953af22d6382cf
1 class Cadaver < Formula
2   desc "Command-line client for DAV"
3   homepage "https://notroj.github.io/cadaver/"
4   url "https://notroj.github.io/cadaver/cadaver-0.26.tar.gz"
5   sha256 "9236e43cdf3505d9ef06185fda43252840105c0c02d9370b6e1077d866357b55"
6   license "GPL-2.0-only"
8   livecheck do
9     url :homepage
10     regex(/href=.*?cadaver[._-]v?(\d+(?:\.\d+)+)\.t/i)
11   end
13   bottle do
14     sha256 arm64_sequoia: "1865f65bd09a67eab16c71888453b96c58b83d5ee053cb8b0afaf9ce632b3149"
15     sha256 arm64_sonoma:  "2da179616e40cf56092cde66d44281e7f7f1031507642299f13702031f650d31"
16     sha256 arm64_ventura: "dbfd46990bd7f0da5555531fe05b453ed720ef200c000d4e72bcb2e6a0acd506"
17     sha256 sonoma:        "abfa76ac943d4031ba46c0147e83dbb13cdc6f5049d1c66eba7396572e0bc437"
18     sha256 ventura:       "a5369a2c7d4c1b21b64035be3c3a899872fb7e55c10374343386aee3a82d6fa6"
19     sha256 x86_64_linux:  "aca16f2c07fb756b65f35d3b6ed8f53f7f07226bb7657a6ec009629eb014732b"
20   end
22   head do
23     url "https://github.com/notroj/cadaver.git", branch: "master"
25     depends_on "autoconf" => :build
26     depends_on "automake" => :build
27     depends_on "gettext" => :build
28     depends_on "libtool" => :build
29   end
31   depends_on "pkgconf" => :build
32   depends_on "neon"
33   depends_on "openssl@3"
34   depends_on "readline"
36   on_macos do
37     depends_on "gettext"
38   end
40   def install
41     if build.head?
42       ENV["LIBTOOLIZE"] = "glibtoolize"
43       system "./autogen.sh"
44     end
45     system "./configure", "--with-ssl=openssl",
46                           "--with-libs=#{Formula["openssl@3"].opt_prefix}",
47                           "--with-neon=#{Formula["neon"].opt_prefix}",
48                           *std_configure_args
49     system "make"
50     system "make", "install"
51   end
53   test do
54     assert_match "cadaver #{version}", shell_output("#{bin}/cadaver -V", 255)
55   end
56 end