commit:     a9865f4c3b45cd345fe630c20133bc9f1fc0f82d
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Thu Jan  4 21:31:54 2018 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Fri Jan  5 00:34:28 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9865f4c

app-text/poppler: Unconditionally build with -std=c++11

Closes: https://bugs.gentoo.org/643278
Package-Manager: Portage-2.3.19, Repoman-2.3.6

 app-text/poppler/poppler-0.61.1.ebuild | 10 ++++------
 app-text/poppler/poppler-0.62.0.ebuild | 10 ++++------
 app-text/poppler/poppler-9999.ebuild   |  8 +++-----
 3 files changed, 11 insertions(+), 17 deletions(-)

diff --git a/app-text/poppler/poppler-0.61.1.ebuild 
b/app-text/poppler/poppler-0.61.1.ebuild
index 64b5eec0d53..250e315dbb9 100644
--- a/app-text/poppler/poppler-0.61.1.ebuild
+++ b/app-text/poppler/poppler-0.61.1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
 
-inherit cmake-utils toolchain-funcs xdg-utils
+inherit cmake-utils flag-o-matic toolchain-funcs xdg-utils
 
 if [[ "${PV}" == "9999" ]] ; then
        inherit git-r3
@@ -84,10 +84,8 @@ src_prepare() {
                einfo "policy(SET CMP0002 OLD) - workaround can be removed"
        fi
 
-       if tc-is-clang && [[ ${CHOST} == *-darwin* ]] ; then
-               # we need to up the C++ version, bug #622526
-               export CXX="$(tc-getCXX) -std=c++11"
-       fi
+       # we need to up the C++ version, bug #622526, #643278
+       append-cxxflags -std=c++11
 }
 
 src_configure() {

diff --git a/app-text/poppler/poppler-0.62.0.ebuild 
b/app-text/poppler/poppler-0.62.0.ebuild
index b2677478d77..49e0196feea 100644
--- a/app-text/poppler/poppler-0.62.0.ebuild
+++ b/app-text/poppler/poppler-0.62.0.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
 
-inherit cmake-utils toolchain-funcs xdg-utils
+inherit cmake-utils flag-o-matic toolchain-funcs xdg-utils
 
 if [[ "${PV}" == "9999" ]] ; then
        inherit git-r3
@@ -79,10 +79,8 @@ src_prepare() {
                einfo "policy(SET CMP0002 OLD) - workaround can be removed"
        fi
 
-       if tc-is-clang && [[ ${CHOST} == *-darwin* ]] ; then
-               # we need to up the C++ version, bug #622526
-               export CXX="$(tc-getCXX) -std=c++11"
-       fi
+       # we need to up the C++ version, bug #622526, #643278
+       append-cxxflags -std=c++11
 }
 
 src_configure() {

diff --git a/app-text/poppler/poppler-9999.ebuild 
b/app-text/poppler/poppler-9999.ebuild
index f84bcf398fb..99060e661f2 100644
--- a/app-text/poppler/poppler-9999.ebuild
+++ b/app-text/poppler/poppler-9999.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=6
 
-inherit cmake-utils toolchain-funcs xdg-utils
+inherit cmake-utils flag-o-matic toolchain-funcs xdg-utils
 
 if [[ "${PV}" == "9999" ]] ; then
        inherit git-r3
@@ -79,10 +79,8 @@ src_prepare() {
                einfo "policy(SET CMP0002 OLD) - workaround can be removed"
        fi
 
-       if tc-is-clang && [[ ${CHOST} == *-darwin* ]] ; then
-               # we need to up the C++ version, bug #622526
-               export CXX="$(tc-getCXX) -std=c++11"
-       fi
+       # we need to up the C++ version, bug #622526, #643278
+       append-cxxflags -std=c++11
 }
 
 src_configure() {

Reply via email to