blob: cf9e3237d1c62c5618e2614fd9f96c68a1f304a7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit flag-o-matic qmake-utils xdg
DESCRIPTION="Practical and minimal image viewer"
HOMEPAGE="https://github.com/jurplel/qView https://interversehq.com/qview"
SRC_URI="https://github.com/jurplel/qView/archive/${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/qView-${PV}"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
DEPEND="dev-qt/qtgui:5"
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
}
src_install() {
emake INSTALL_ROOT="${D}" install
einstalldocs
}
|