diff --git a/app-text/poppler/Manifest b/app-text/poppler/Manifest index 43349eec57bc1..ccb4891ddf3ed 100644 --- a/app-text/poppler/Manifest +++ b/app-text/poppler/Manifest @@ -1,3 +1,5 @@ DIST poppler-25.12.0.tar.xz 1992456 BLAKE2B 77ba5031a1e7c5c1a619050bf0e3bfca4f09da175559ca8eeebb1706291f2348c20f790845584863a9af3829b691e453af3781b6ebaa4f4292c017468a094ee7 SHA512 4f68713d7efa5003a60773749d3bcff4041b165dfb65104a56cec576559c15164fc4a021244cc91f4ed76aab709757637396d7c5b6fbcf3eed23e3469072e4f3 DIST poppler-25.12.0.tar.xz.sig 833 BLAKE2B 013277f73e6d63481c3a208aac2a02aeeef9d945c861f79f5738105c725015d3dff24ee1b22bf14461c7c570f3f161b15b52c871c9a667217581a471ca096ab3 SHA512 11d6eccfe953905d09528ed3a8bfee8841126d869e5242e8ac5cb969f6dc599a7e07fda9cdc3090ec6c70097ae9215517dbf2ca3eb9cd4e21b6310a8fd340b9f +DIST poppler-26.01.0.tar.xz 2003516 BLAKE2B dd7f99b1a8e7b659ece8ca58f2016371315ea234e2a17ad419a3450951e2e77e03dcf52a1921494b576a9989f4659f5cea5a74a7c10b9affc963d0c45bee0629 SHA512 bf00f12eb73e164d7a73756aa03ea40f66d1b5c5677acef86b1bb450289e0aa0ab7a00cac4482e08e89dfa6fead71907bc36a70ba4b0c47e30a9fd9e61451921 +DIST poppler-26.01.0.tar.xz.sig 833 BLAKE2B c6ac58c96d99146536570750361f9cdd7faf63132a11d3e5d4ed04e3e39a6c5b56dc3bd264b07d7b5d757878443bfcc7614c48656c12754957580f5ea98c196a SHA512 95535c31cd9ca53e5f9d94ac39d97e5b0d2be1e0790f698568fb51848ab253ff8b92f5d6c33498c518838cbb4d9c7733b4e63e3f2ca238686d59170cb6233abf DIST poppler-test-9d5011815a14c157ba25bb160187842fb81579a5.tar.bz2 5500878 BLAKE2B 4ced4be267431cfd7c39398055e22c7228df2f1de09cba86bfbd76d785b26f4767a69eefccaa7473b4f410a7f1a4b97d9133141b8c66892bb3f209376d5d231e SHA512 89982192b2d98c5c1e9c03ad1e4a09fe38d1525669799690e8d5f333d2e5905b5b57f58dd09483e5a4d3634fa35da22984b9d2797f4e11c3d821eaaf67865f6c diff --git a/app-text/poppler/poppler-26.01.0.ebuild b/app-text/poppler/poppler-26.01.0.ebuild new file mode 100644 index 0000000000000..56684854e3007 --- /dev/null +++ b/app-text/poppler/poppler-26.01.0.ebuild @@ -0,0 +1,139 @@ +# Copyright 2005-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake flag-o-matic toolchain-funcs xdg-utils + +if [[ ${PV} == *9999* ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://gitlab.freedesktop.org/poppler/poppler" + SLOT="0/9999" +else + VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/aacid.asc + inherit verify-sig + + TEST_COMMIT="9d5011815a14c157ba25bb160187842fb81579a5" + SRC_URI="https://poppler.freedesktop.org/${P}.tar.xz" + SRC_URI+=" test? ( https://gitlab.freedesktop.org/poppler/test/-/archive/${TEST_COMMIT}/test-${TEST_COMMIT}.tar.bz2 -> ${PN}-test-${TEST_COMMIT}.tar.bz2 )" + SRC_URI+=" verify-sig? ( https://poppler.freedesktop.org/${P}.tar.xz.sig )" + # KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris" + SLOT="0/156" # CHECK THIS WHEN BUMPING!!! SUBSLOT IS libpoppler.so SOVERSION +fi + +DESCRIPTION="PDF rendering library based on the xpdf-3.0 code base" +HOMEPAGE="https://poppler.freedesktop.org/" + +LICENSE="GPL-2" +IUSE="boost cairo cjk curl +cxx debug doc gpgme +introspection +jpeg +jpeg2k +lcms nss png qt6 test tiff +utils" +RESTRICT="!test? ( test )" + +COMMON_DEPEND=" + >=media-libs/fontconfig-2.13 + >=media-libs/freetype-2.10 + virtual/zlib:= + cairo? ( + >=dev-libs/glib-2.64:2 + >=x11-libs/cairo-1.16 + introspection? ( >=dev-libs/gobject-introspection-1.82.0-r2:= ) + ) + curl? ( net-misc/curl ) + gpgme? ( dev-cpp/gpgmepp:= ) + jpeg? ( >=media-libs/libjpeg-turbo-1.1.0:= ) + jpeg2k? ( >=media-libs/openjpeg-2.3.0-r1:2= ) + lcms? ( media-libs/lcms:2 ) + nss? ( >=dev-libs/nss-3.49 ) + png? ( media-libs/libpng:0= ) + qt6? ( dev-qt/qtbase:6[gui,xml] ) + tiff? ( media-libs/tiff:= ) +" +RDEPEND="${COMMON_DEPEND} + cjk? ( app-text/poppler-data ) +" +DEPEND="${COMMON_DEPEND} + boost? ( >=dev-libs/boost-1.74 ) + test? ( qt6? ( dev-qt/qtbase:6[widgets] ) ) +" +BDEPEND=" + >=dev-util/glib-utils-2.64 + virtual/pkgconfig +" + +if [[ ${PV} != *9999* ]] ; then + BDEPEND+=" verify-sig? ( >=sec-keys/openpgp-keys-aacid-20230907 )" +fi + +DOCS=( AUTHORS NEWS README.md README-XPDF ) + +PATCHES=( + "${FILESDIR}/${P}-qt-deps.patch" + "${FILESDIR}/${P}-respect-cflags.patch" + "${FILESDIR}/${PN}-0.57.0-disable-internal-jpx.patch" +) + +src_unpack() { + if [[ ${PV} == *9999* ]] ; then + git-r3_src_unpack + elif use verify-sig ; then + verify-sig_verify_detached "${DISTDIR}"/${P}.tar.xz{,.sig} + fi + + default +} + +src_prepare() { + cmake_src_prepare + + # Clang doesn't grok this flag, the configure nicely tests that, but + # cmake just uses it, so remove it if we use clang + if tc-is-clang ; then + sed -e 's/-fno-check-new//' -i cmake/modules/PopplerMacros.cmake || die + fi +} + +src_configure() { + xdg_environment_reset + append-lfs-flags # bug #898506 + + local mycmakeargs=( + -DBUILD_GTK_TESTS=OFF + -DBUILD_QT5_TESTS=OFF + -DBUILD_QT6_TESTS=$(usex test $(usex qt6)) + -DBUILD_CPP_TESTS=$(usex test) + -DBUILD_MANUAL_TESTS=$(usex test) + -DTESTDATADIR="${WORKDIR}"/test-${TEST_COMMIT} + -DRUN_GPERF_IF_PRESENT=OFF + -DENABLE_BOOST="$(usex boost)" + -DENABLE_ZLIB_UNCOMPRESS=OFF + -DENABLE_UNSTABLE_API_ABI_HEADERS=ON + -DUSE_FLOAT=OFF + -DWITH_Cairo=$(usex cairo) + -DENABLE_LIBCURL=$(usex curl) + -DENABLE_CPP=$(usex cxx) + -DENABLE_GPGME=$(usex gpgme) + -DWITH_JPEG=$(usex jpeg) + -DENABLE_DCTDECODER=$(usex jpeg libjpeg none) + -DENABLE_LIBOPENJPEG=$(usex jpeg2k openjpeg2 none) + -DENABLE_LCMS=$(usex lcms) + -DENABLE_NSS3=$(usex nss) + -DWITH_PNG=$(usex png) + -DENABLE_QT5=OFF + -DENABLE_QT6=$(usex qt6) + -DENABLE_LIBTIFF=$(usex tiff) + -DENABLE_UTILS=$(usex utils) + ) + use cairo && mycmakeargs+=( -DWITH_GObjectIntrospection=$(usex introspection) ) + + cmake_src_configure +} + +src_install() { + cmake_src_install + + # live version doesn't provide html documentation + if use cairo && use doc && [[ ${PV} != *9999* ]]; then + # For now install gtk-doc there + insinto /usr/share/gtk-doc/html/poppler + doins -r "${S}"/glib/reference/html/* + fi +}