11class Mupdf < Formula
22 desc "Lightweight PDF and XPS viewer"
33 homepage "https://mupdf.com/"
4- url "https://mupdf.com/downloads/archive/mupdf-1.25.6 -source.tar.gz"
5- sha256 "5a51d8bd5ed690d3c8bf82b3c7c3f1cf5f9dde40887a36e3b5aa78a7e3ccd1bb "
4+ url "https://mupdf.com/downloads/archive/mupdf-1.26.0 -source.tar.gz"
5+ sha256 "d896f89eabfc5aaaabcdddc30f4592f6df33075640759292dd338d8e69e59c63 "
66 license "AGPL-3.0-or-later"
77 head "https://git.ghostscript.com/mupdf.git" , branch : "master"
88
@@ -24,6 +24,7 @@ class Mupdf < Formula
2424 depends_on "llvm" => :build
2525 depends_on "pkgconf" => :build
2626 depends_on "swig" => :build
27+ depends_on "brotli"
2728 depends_on "freetype"
2829 depends_on "gumbo-parser"
2930 depends_on "harfbuzz"
@@ -38,6 +39,10 @@ class Mupdf < Formula
3839
3940 uses_from_macos "zlib"
4041
42+ on_macos do
43+ depends_on "libarchive"
44+ end
45+
4146 on_linux do
4247 depends_on "freeglut"
4348 depends_on "libx11"
@@ -78,6 +83,7 @@ def install
7883 [ "LEPTONICA" , "lept" ] ,
7984 [ "LIBJPEG" , "libjpeg" ] ,
8085 [ "OPENJPEG" , "libopenjp2" ] ,
86+ [ "TESSERACT" , "tesseract" ] ,
8187 ] . each do |argname , libname |
8288 args << "SYS_#{ argname } _CFLAGS=#{ Utils . safe_popen_read ( "pkgconf" , "--cflags" , libname ) . strip } "
8389 args << "SYS_#{ argname } _LIBS=#{ Utils . safe_popen_read ( "pkgconf" , "--libs" , libname ) . strip } "
0 commit comments