|
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 |
@@ -73,14 +72,16 @@ def install |
73 | 72 | -DCMAKE_INSTALL_RPATH=#{rpath} |
74 | 73 | ] |
75 | 74 |
|
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" |
| 75 | + system "cmake", "-S", ".", "-B", "build_shared", *args |
| 76 | + system "cmake", "--build", "build_shared" |
| 77 | + system "cmake", "--install", "build_shared" |
| 78 | + |
| 79 | + system "cmake", "-S", ".", "-B", "build_static", *args, "-DBUILD_SHARED_LIBS=OFF" |
| 80 | + system "cmake", "--build", "build_static" |
| 81 | + lib.install "build_static/libpoppler.a" |
| 82 | + lib.install "build_static/cpp/libpoppler-cpp.a" |
| 83 | + lib.install "build_static/glib/libpoppler-glib.a" |
| 84 | + |
84 | 85 | resource("font-data").stage do |
85 | 86 | system "make", "install", "prefix=#{prefix}" |
86 | 87 | end |
|
0 commit comments