commit:     ae2df115e030308761fdbeb6c78bfd3e0f34667d
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 18 16:42:34 2024 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Thu Jan 18 16:45:22 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae2df115

app-text/poppler: Fix 23.10.0-qt-deps.patch and IUSE=qt5,qt6,test

Closes: https://bugs.gentoo.org/921391
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 app-text/poppler/files/poppler-23.10.0-qt-deps.patch | 6 +++---
 app-text/poppler/poppler-23.12.0.ebuild              | 1 +
 app-text/poppler/poppler-24.01.0.ebuild              | 1 +
 app-text/poppler/poppler-9999.ebuild                 | 3 ++-
 4 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/app-text/poppler/files/poppler-23.10.0-qt-deps.patch 
b/app-text/poppler/files/poppler-23.10.0-qt-deps.patch
index 348f56d5e0b4..f906e335717d 100644
--- a/app-text/poppler/files/poppler-23.10.0-qt-deps.patch
+++ b/app-text/poppler/files/poppler-23.10.0-qt-deps.patch
@@ -27,8 +27,8 @@ Signed-off-by: Andreas Sturmlechner <[email protected]>
  find_soft_mandatory_package(ENABLE_QT6 Qt6Gui ${QT6_VERSION})
 -find_soft_mandatory_package(ENABLE_QT6 Qt6Widgets ${QT6_VERSION})
 -find_soft_mandatory_package(ENABLE_QT6 Qt6Test ${QT6_VERSION})
-+find_soft_mandatory_package(ENABLE_QT6_TESTS Qt6Widgets ${QT6_VERSION})
-+find_soft_mandatory_package(ENABLE_QT6_TESTS Qt6Test ${QT6_VERSION})
++find_soft_mandatory_package(BUILD_QT6_TESTS Qt6Widgets ${QT6_VERSION})
++find_soft_mandatory_package(BUILD_QT6_TESTS Qt6Test ${QT6_VERSION})
  
  # Check for Cairo rendering backend
  macro_optional_find_package(Cairo ${CAIRO_VERSION})
@@ -53,7 +53,7 @@ Signed-off-by: Andreas Sturmlechner <[email protected]>
  
 -add_subdirectory(tests)
 -add_subdirectory(demos)
-+if(BUILD_QT5_TESTS)
++if(BUILD_QT6_TESTS)
 +  add_subdirectory(tests)
 +  add_subdirectory(demos)
 +endif()

diff --git a/app-text/poppler/poppler-23.12.0.ebuild 
b/app-text/poppler/poppler-23.12.0.ebuild
index fb48cbc0360f..6f415d22e32f 100644
--- a/app-text/poppler/poppler-23.12.0.ebuild
+++ b/app-text/poppler/poppler-23.12.0.ebuild
@@ -116,6 +116,7 @@ src_configure() {
        local mycmakeargs=(
                -DBUILD_GTK_TESTS=OFF
                -DBUILD_QT5_TESTS=$(usex test $(usex qt5))
+               -DBUILD_QT6_TESTS=$(usex test $(usex qt6))
                -DBUILD_CPP_TESTS=$(usex test)
                -DBUILD_MANUAL_TESTS=$(usex test)
                -DTESTDATADIR="${WORKDIR}"/test-${TEST_COMMIT}

diff --git a/app-text/poppler/poppler-24.01.0.ebuild 
b/app-text/poppler/poppler-24.01.0.ebuild
index 46153b840887..89d10798980c 100644
--- a/app-text/poppler/poppler-24.01.0.ebuild
+++ b/app-text/poppler/poppler-24.01.0.ebuild
@@ -116,6 +116,7 @@ src_configure() {
        local mycmakeargs=(
                -DBUILD_GTK_TESTS=OFF
                -DBUILD_QT5_TESTS=$(usex test $(usex qt5))
+               -DBUILD_QT6_TESTS=$(usex test $(usex qt6))
                -DBUILD_CPP_TESTS=$(usex test)
                -DBUILD_MANUAL_TESTS=$(usex test)
                -DTESTDATADIR="${WORKDIR}"/test-${TEST_COMMIT}

diff --git a/app-text/poppler/poppler-9999.ebuild 
b/app-text/poppler/poppler-9999.ebuild
index 08d879782a73..89d10798980c 100644
--- a/app-text/poppler/poppler-9999.ebuild
+++ b/app-text/poppler/poppler-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2005-2023 Gentoo Authors
+# Copyright 2005-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -116,6 +116,7 @@ src_configure() {
        local mycmakeargs=(
                -DBUILD_GTK_TESTS=OFF
                -DBUILD_QT5_TESTS=$(usex test $(usex qt5))
+               -DBUILD_QT6_TESTS=$(usex test $(usex qt6))
                -DBUILD_CPP_TESTS=$(usex test)
                -DBUILD_MANUAL_TESTS=$(usex test)
                -DTESTDATADIR="${WORKDIR}"/test-${TEST_COMMIT}

Reply via email to