aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Anderson <telans@posteo.de>2021-03-04 22:54:06 +1300
committerTheo Anderson <telans@posteo.de>2021-03-04 22:54:06 +1300
commitf430b34b85f1937cedf9376faf63a3b4adb3bde7 (patch)
tree540c1bac36c1c99239974c47a44615a224a91412 /media-gfx/qview
parentnet-misc/purritobin: version bump to 0.5.0 (diff)
downloadguru-f430b34b85f1937cedf9376faf63a3b4adb3bde7.tar.gz
guru-f430b34b85f1937cedf9376faf63a3b4adb3bde7.tar.bz2
guru-f430b34b85f1937cedf9376faf63a3b4adb3bde7.zip
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@posteo.de>
Diffstat (limited to 'media-gfx/qview')
-rw-r--r--media-gfx/qview/qview-4.0.ebuild11
1 files changed, 8 insertions, 3 deletions
diff --git a/media-gfx/qview/qview-4.0.ebuild b/media-gfx/qview/qview-4.0.ebuild
index bbce1aedc..cf9e3237d 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
}