From a9865f4c3b45cd345fe630c20133bc9f1fc0f82d Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Thu, 4 Jan 2018 22:31:54 +0100 Subject: [PATCH] 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 64b5eec0d538..250e315dbb98 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 b2677478d773..49e0196feea0 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 f84bcf398fb8..99060e661f22 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() { -- 2.26.2