Skip to content

Commit 44ae5f3

Browse files
BrewTestBotdaeho-ro
authored andcommitted
pymupdf 1.27.2.3
1 parent fa6b028 commit 44ae5f3

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Formula/p/pymupdf.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class Pymupdf < Formula
22
desc "Python bindings for the PDF toolkit and renderer MuPDF"
33
homepage "https://pymupdf.readthedocs.io/en/latest/"
4-
url "https://files.pythonhosted.org/packages/f1/32/f6b645c51d79a188a4844140c5dabca7b487ad56c4be69c4bc782d0d11a9/pymupdf-1.27.2.2.tar.gz"
5-
sha256 "ea8fdc3ab6671ca98f629d5ec3032d662c8cf1796b146996b7ad306ac7ed3335"
4+
url "https://files.pythonhosted.org/packages/22/32/708bedc9dde7b328d45abbc076091769d44f2f24ad151ad92d56a6ec142b/pymupdf-1.27.2.3.tar.gz"
5+
sha256 "7a92faa25129e8bbec5e50eeb9214f187665428c31b05c4ef6e36c58c0b1c6d2"
66
license "AGPL-3.0-only"
77

88
bottle do
@@ -29,12 +29,13 @@ def install
2929
# https://github.com/pymupdf/PyMuPDF/blob/1.20.0/setup.py#L447
3030
ENV["PYMUPDF_SETUP_MUPDF_BUILD"] = ""
3131
ENV["PYMUPDF_INCLUDES"] = "#{Formula["mupdf"].opt_include}:#{Formula["freetype"].opt_include}/freetype2"
32+
ENV["PYMUPDF_SETUP_SWIG"] = Formula["swig"].opt_bin/"swig"
3233

3334
mupdf_libpath = Formula["mupdf"].opt_lib.to_s
3435
ENV["PYMUPDF_MUPDF_LIB"] = mupdf_libpath
3536
ENV.append "LDFLAGS", "-Wl,-rpath,#{mupdf_libpath}" if OS.mac?
3637

37-
system python3, "-m", "pip", "install", *std_pip_args, "."
38+
system python3, "-m", "pip", "install", *std_pip_args(build_isolation: true), "."
3839
end
3940

4041
test do

0 commit comments

Comments
 (0)