commit:     9172613e8e9a5a480e75c409765524bb3e46f640
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 20 16:13:50 2019 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Jul 20 16:17:08 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9172613e

dev-libs/grantlee: EAPI-7 bump, fix build with >=cmake-3.15

Closes: https://bugs.gentoo.org/690226
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 dev-libs/grantlee/files/grantlee-5.1.0-cxx11.patch | 24 ++++++++++++++++++++++
 dev-libs/grantlee/grantlee-5.1.0.ebuild            |  9 ++++----
 2 files changed, 29 insertions(+), 4 deletions(-)

diff --git a/dev-libs/grantlee/files/grantlee-5.1.0-cxx11.patch 
b/dev-libs/grantlee/files/grantlee-5.1.0-cxx11.patch
new file mode 100644
index 00000000000..d049d6c96f8
--- /dev/null
+++ b/dev-libs/grantlee/files/grantlee-5.1.0-cxx11.patch
@@ -0,0 +1,24 @@
+From 3a5fc7662da3261be6496611900c095844e56ab1 Mon Sep 17 00:00:00 2001
+From: Albert Astals Cid <[email protected]>
+Date: Sat, 20 Jul 2019 17:35:30 +0200
+Subject: [PATCH] Fix compile with newer Qt/cmake combination
+
+Without this i get huge errors about Qt needing C++11 support
+---
+ CMakeLists.txt | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 6d51110..0859788 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -11,6 +11,9 @@ endif()
+ 
+ project(Grantlee)
+ 
++set (CMAKE_CXX_STANDARD 11)
++set (CMAKE_CXX_EXTENSIONS OFF)
++
+ # Workaround for http://public.kitware.com/Bug/view.php?id=12301
+ if (MINGW)
+   if(NOT CMAKE_BUILD_TYPE)

diff --git a/dev-libs/grantlee/grantlee-5.1.0.ebuild 
b/dev-libs/grantlee/grantlee-5.1.0.ebuild
index d8de4e45a9f..8bcda9a613c 100644
--- a/dev-libs/grantlee/grantlee-5.1.0.ebuild
+++ b/dev-libs/grantlee/grantlee-5.1.0.ebuild
@@ -1,7 +1,7 @@
 # Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
 
 VIRTUALX_REQUIRED="test"
 inherit cmake-utils virtualx
@@ -15,25 +15,26 @@ SLOT="5"
 KEYWORDS="amd64 ~arm arm64 ~ppc ~ppc64 x86"
 IUSE="debug doc test"
 
+BDEPEND="
+       doc? ( app-doc/doxygen[dot] )
+"
 RDEPEND="
        dev-qt/qtcore:5
        dev-qt/qtgui:5
        dev-qt/qtscript:5
 "
 DEPEND="${RDEPEND}
-       doc? ( app-doc/doxygen[dot] )
        test? ( dev-qt/qttest:5 )
 "
 
 # bug 682258
 RESTRICT="test"
 
-DOCS=( AUTHORS CHANGELOG README.md )
-
 PATCHES=(
        "${FILESDIR}/${PN}-0.3.0-nonfatal-warnings.patch"
        "${FILESDIR}/${P}-slot.patch"
        "${FILESDIR}/${P}-qt-5.13.patch"
+       "${FILESDIR}/${P}-cxx11.patch"
 )
 
 src_prepare() {

Reply via email to