jackett 0.22.1382
[Homebrew/homebrew-core.git] / Formula / r / rarian.rb
blobe2ef747598debdc37250f5c9b9cf98fc5a0acdbc
1 class Rarian < Formula
2   desc "Documentation metadata library"
3   homepage "https://rarian.freedesktop.org/"
4   url "https://gitlab.freedesktop.org/rarian/rarian/-/releases/0.8.6/downloads/assets/rarian-0.8.6.tar.bz2"
5   sha256 "9d4f7873009d2e31b8b1ec762606b12bee5526e1fe75de48e9495382bfef2bea"
6   license "GPL-2.0-or-later"
8   livecheck do
9     url :homepage
10     regex(/href=.*?rarian[._-]v?(\d+(?:\.\d+)+)\.t/i)
11   end
13   bottle do
14     sha256 arm64_sequoia: "d28b342406dadc412d136c1c08c9b97613b668131f813d542d07ffe379b17db0"
15     sha256 arm64_sonoma:  "2d901dd0b530c413b30ab3eb0327c02596590c685928ef896bdfc13b9fac1df2"
16     sha256 arm64_ventura: "ec32e06c27f85d273f6ca90b78031f4b0ce6e190b9f160fed55f0cf1797f35a4"
17     sha256 sonoma:        "82ff77a27b3ed671542d4c066f945a45c5fce1777df9d77bdc8cfabc38bc219d"
18     sha256 ventura:       "1c10f34f9b76eba56f95ef5b1af592e6f51aaadd88e42cecb93864bbab8f41f6"
19     sha256 x86_64_linux:  "1db54c3f633551261b40b7dc69e6b7a6e18649c681f7eb4f01703f35e565abec"
20   end
22   depends_on "autoconf" => :build
23   depends_on "automake" => :build
24   depends_on "libtool" => :build
25   depends_on "pkgconf" => :build
26   depends_on "tinyxml2"
28   conflicts_with "scrollkeeper",
29     because: "rarian and scrollkeeper install the same binaries"
31   def install
32     # Regenerate `configure` to fix `-flat_namespace` bug.
33     system "autoreconf", "--force", "--install", "--verbose"
34     system "./configure", *std_configure_args
35     system "make", "install"
36   end
38   test do
39     seriesid1 = shell_output(bin/"rarian-sk-gen-uuid").strip
40     sleep 5
41     seriesid2 = shell_output(bin/"rarian-sk-gen-uuid").strip
42     assert_match(/^\h+(?:-\h+)+$/, seriesid1)
43     assert_match(/^\h+(?:-\h+)+$/, seriesid2)
44     refute_equal seriesid1, seriesid2
45   end
46 end