Merge pull request #206954 from Homebrew/bump-gollama-1.28.13
[homebrew-core.git] / Formula / d / djvulibre.rb
blob4db94ab3f62d3b0bac715b1f9a944584553977d8
1 class Djvulibre < Formula
2   desc "DjVu viewer"
3   homepage "https://djvu.sourceforge.net/"
4   url "https://downloads.sourceforge.net/djvu/djvulibre-3.5.28.tar.gz"
5   sha256 "fcd009ea7654fde5a83600eb80757bd3a76998e47d13c66b54c8db849f8f2edc"
6   license "GPL-2.0-or-later"
7   revision 2
9   livecheck do
10     url :stable
11     regex(%r{url=.*?/djvulibre[._-]v?(\d+(?:\.\d+)+)\.t}i)
12   end
14   bottle do
15     sha256 arm64_sequoia:  "251aeb1ba6581281a3742cac327422498cc251097f79c56e4b262a4a32f178b3"
16     sha256 arm64_sonoma:   "509e80c15c07de6b03d1bf3d729537d0abb30849c55b4aac092f6d760391ad8d"
17     sha256 arm64_ventura:  "03c2b8a0fd889f5286436b3b2b1b8b10ceec29ed133756d8bb64ac20f867d0bf"
18     sha256 arm64_monterey: "f39559ac1a9d9e3351dcc2d77384875434a8aa7d84406d0f5214dd42e86759e5"
19     sha256 arm64_big_sur:  "b2c030948a6296ea93065ac207b7d71effd08a1126abc9a8365186cf4d04bf73"
20     sha256 sonoma:         "4a6bb80e8624388a8ec2b760b43908b8dcd45dd317026f0530c8d77a133d7d3e"
21     sha256 ventura:        "437c4982f64bf9f3c17d3dc6e07a204770a8028ee924f23ddd0f09af9cd4fbc4"
22     sha256 monterey:       "5c208fecddc8a56aae519f38d52a06c2b6f261b094077e05b43cebc9d452f3cd"
23     sha256 big_sur:        "d325152b1930974548997efcf819595fefcddd23cebaee2e22718cc3296d1957"
24     sha256 x86_64_linux:   "16b50bba79b4dba1593db9633d8a396633e02dd015f5858f19eb8ad9aff3142f"
25   end
27   depends_on "autoconf" => :build
28   depends_on "automake" => :build
29   depends_on "libtool" => :build
30   depends_on "jpeg-turbo"
31   depends_on "libtiff"
33   def install
34     system "./autogen.sh"
35     # Don't build X11 GUI apps, Spotlight Importer or Quick Look plugins
36     system "./configure", "--prefix=#{prefix}", "--disable-desktopfiles"
37     system "make"
38     system "make", "install"
39     (share/"doc/djvu").install Dir["doc/*"]
40   end
42   test do
43     output = shell_output("#{bin}/djvused -e n #{share}/doc/djvu/lizard2002.djvu")
44     assert_equal "2", output.strip
45   end
46 end