|
1 | 1 | class PopplerQt5 < Formula |
2 | 2 | desc "PDF rendering library (based on the xpdf-3.0 code base)" |
3 | 3 | homepage "https://poppler.freedesktop.org/" |
4 | | - url "https://poppler.freedesktop.org/poppler-24.04.0.tar.xz" |
5 | | - sha256 "1e804ec565acf7126eb2e9bb3b56422ab2039f7e05863a5dfabdd1ffd1bb77a7" |
| 4 | + url "https://poppler.freedesktop.org/poppler-24.11.0.tar.xz" |
| 5 | + sha256 "7723d880565211740c13649d24a300257b86ddd7fa2d208187ff7e5cc8dfbd58" |
6 | 6 | license "GPL-2.0-only" |
7 | | - revision 1 |
8 | 7 | head "https://gitlab.freedesktop.org/poppler/poppler.git", branch: "master" |
9 | 8 |
|
10 | 9 | livecheck do |
11 | 10 | formula "poppler" |
12 | 11 | end |
13 | 12 |
|
14 | 13 | bottle do |
15 | | - sha256 arm64_sequoia: "8b5a420c83516ddfe6148a1b63b3016e1c6684a3ca7dc3599e8a639b8f2f7d09" |
16 | | - sha256 arm64_sonoma: "68c70a13741b87792902219a6ba666354f4fdbbc7838a07f271ac77140d82fd1" |
17 | | - sha256 arm64_ventura: "637369aae5fead971b1538a7a32d24f46fb9a44c63fb6125e97f2446e2e6f2f2" |
18 | | - sha256 arm64_monterey: "fcb94b326dd715acc439f3a152e14e50765d9a6867224f75f55c3ac2fdaf5c12" |
19 | | - sha256 sonoma: "8787f6c0ba49344cdd34326076456192dbfc0dbd1e7644d6577a5b4cb13dd188" |
20 | | - sha256 ventura: "ba9b7e9780e37c0c77fa370b981206c47a2d440055d065a16a0928b233fa93ec" |
21 | | - sha256 monterey: "97e1ada0094dd0805b385f6698286f346740ae88b99cf526e6505e62c80bdb59" |
22 | | - sha256 x86_64_linux: "1b22d0fd6dacf9bff211a3d31b265dc543be80ff8f7bd3860fed52ebaba508e9" |
| 14 | + sha256 arm64_sequoia: "63ce9c2019a382ce59e93c709a6dfc3795495187a025fdd3f0a881cbb870a6fe" |
| 15 | + sha256 arm64_sonoma: "5e63d610385c0b51f303d9a7c9ea8874a01126cac0eb5197dc6f8a5060c6186d" |
| 16 | + sha256 arm64_ventura: "a0d1bea33ec613c93cf2ae349677a0f6ad11028acafa0f5eba48463a14edad94" |
| 17 | + sha256 sonoma: "f11d3e4680c6efe4da53f5d7690977995d5f6c39d0e3ed5fcbf43c6a8e5a694e" |
| 18 | + sha256 ventura: "0b48db981efc43241966ee56ad56bca3a4db3f15f97e7f8154a8d33efa612f96" |
| 19 | + sha256 x86_64_linux: "e03b339d3c70d7667abf88c5983bb3c3b01f6e1402735ccf0eb19008998dcbb8" |
23 | 20 | end |
24 | 21 |
|
25 | 22 | keg_only "it conflicts with poppler" |
@@ -73,14 +70,16 @@ def install |
73 | 70 | -DCMAKE_INSTALL_RPATH=#{rpath} |
74 | 71 | ] |
75 | 72 |
|
76 | | - system "cmake", ".", *args |
77 | | - system "make", "install" |
78 | | - system "make", "clean" |
79 | | - system "cmake", ".", "-DBUILD_SHARED_LIBS=OFF", *args |
80 | | - system "make" |
81 | | - lib.install "libpoppler.a" |
82 | | - lib.install "cpp/libpoppler-cpp.a" |
83 | | - lib.install "glib/libpoppler-glib.a" |
| 73 | + system "cmake", "-S", ".", "-B", "build_shared", *args |
| 74 | + system "cmake", "--build", "build_shared" |
| 75 | + system "cmake", "--install", "build_shared" |
| 76 | + |
| 77 | + system "cmake", "-S", ".", "-B", "build_static", *args, "-DBUILD_SHARED_LIBS=OFF" |
| 78 | + system "cmake", "--build", "build_static" |
| 79 | + lib.install "build_static/libpoppler.a" |
| 80 | + lib.install "build_static/cpp/libpoppler-cpp.a" |
| 81 | + lib.install "build_static/glib/libpoppler-glib.a" |
| 82 | + |
84 | 83 | resource("font-data").stage do |
85 | 84 | system "make", "install", "prefix=#{prefix}" |
86 | 85 | end |
|
0 commit comments