commit:     f430b34b85f1937cedf9376faf63a3b4adb3bde7
Author:     Theo Anderson <telans <AT> posteo <DOT> de>
AuthorDate: Thu Mar  4 09:54:06 2021 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Thu Mar  4 09:54:06 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f430b34b

media-gfx/qview: fix build with sys-devel/clang[default-libcxx]

Package-Manager: Portage-3.0.16, Repoman-3.0.2
Signed-off-by: Theo Anderson <telans <AT> posteo.de>

 media-gfx/qview/qview-4.0.ebuild | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/media-gfx/qview/qview-4.0.ebuild b/media-gfx/qview/qview-4.0.ebuild
index bbce1aed..cf9e3237 100644
--- a/media-gfx/qview/qview-4.0.ebuild
+++ b/media-gfx/qview/qview-4.0.ebuild
@@ -1,9 +1,9 @@
 # Copyright 2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="7"
+EAPI=7
 
-inherit xdg qmake-utils
+inherit flag-o-matic qmake-utils xdg
 
 DESCRIPTION="Practical and minimal image viewer"
 HOMEPAGE="https://github.com/jurplel/qView https://interversehq.com/qview";
@@ -15,10 +15,15 @@ SLOT="0"
 KEYWORDS="~amd64"
 
 DEPEND="dev-qt/qtgui:5"
-BDEPEND=""
 RDEPEND="${DEPEND}"
 
 src_configure() {
+       # https://github.com/jurplel/qView/issues/395
+       if tc-is-clang && has_version 
"sys-devel/clang:$(clang-major-version)[default-libcxx]" || is-flagq 
-stdlib=libc++; then
+               append-cxxflags -stdlib=libstdc++
+               append-ldflags -stdlib=libstdc++
+       fi
+
        eqmake5 PREFIX=/usr qView.pro
 }
 

Reply via email to