commit:     ebb1f06afdaddc59825847948e1237fdc4421678
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Thu May 23 18:40:12 2024 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Thu May 23 18:49:36 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ebb1f06a

app-text/kbibtex: Fix build w/ ICU-75

Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 app-text/kbibtex/files/kbibtex-0.10.0-cxx17.patch | 11 +++++++++++
 app-text/kbibtex/kbibtex-0.10.0.ebuild            |  2 ++
 2 files changed, 13 insertions(+)

diff --git a/app-text/kbibtex/files/kbibtex-0.10.0-cxx17.patch 
b/app-text/kbibtex/files/kbibtex-0.10.0-cxx17.patch
new file mode 100644
index 000000000000..33fb8ebb4542
--- /dev/null
+++ b/app-text/kbibtex/files/kbibtex-0.10.0-cxx17.patch
@@ -0,0 +1,11 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -10,7 +10,7 @@
+     LANGUAGES CXX
+ )
+ 
+-set(CMAKE_CXX_STANDARD 11)
++set(CMAKE_CXX_STANDARD 17)
+ set(QT_MIN_VERSION 5.9.0)
+ # Somewhat arbitrary chosen version number ...
+ set(KF5_MIN_VERSION 5.51)

diff --git a/app-text/kbibtex/kbibtex-0.10.0.ebuild 
b/app-text/kbibtex/kbibtex-0.10.0.ebuild
index 11a10b600ce5..aa8b9929c2d5 100644
--- a/app-text/kbibtex/kbibtex-0.10.0.ebuild
+++ b/app-text/kbibtex/kbibtex-0.10.0.ebuild
@@ -60,6 +60,8 @@ DEPEND="${COMMON_DEPEND}
        >=dev-qt/qtconcurrent-${QTMIN}:5
 "
 
+PATCHES=( "${FILESDIR}"/${P}-cxx17.patch )
+
 src_configure() {
        local mycmakeargs=(
                -DCMAKE_DISABLE_FIND_PACKAGE_Qt5WebKitWidgets=ON

Reply via email to