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"
10 regex(/href=.*?cadaver[._-]v?(\d+(?:\.\d+)+)\.t/i)
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"
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
31 depends_on "pkgconf" => :build
33 depends_on "openssl@3"
42 ENV["LIBTOOLIZE"] = "glibtoolize"
45 system "./configure", "--with-ssl=openssl",
46 "--with-libs=#{Formula["openssl@3"].opt_prefix}",
47 "--with-neon=#{Formula["neon"].opt_prefix}",
50 system "make", "install"
54 assert_match "cadaver #{version}", shell_output("#{bin}/cadaver -V", 255)