aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Novomesky <dnovomesky@gmail.com>2022-03-06 18:33:09 +0100
committerDaniel Novomesky <dnovomesky@gmail.com>2022-03-06 18:33:09 +0100
commit4ba03023408bea564a825f5c6e9570907004fc6a (patch)
treeae3f35994e55660d2d2a6a89508a80084580a435 /media-gfx/qview
parentapp-crypt/intel-ipsec-mb: don't run ldconfig (diff)
downloadguru-4ba03023408bea564a825f5c6e9570907004fc6a.tar.gz
guru-4ba03023408bea564a825f5c6e9570907004fc6a.tar.bz2
guru-4ba03023408bea564a825f5c6e9570907004fc6a.zip
media-gfx/qview: version bump to 5.0
Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Daniel Novomesky <dnovomesky@gmail.com>
Diffstat (limited to 'media-gfx/qview')
-rw-r--r--media-gfx/qview/Manifest1
-rw-r--r--media-gfx/qview/qview-5.0.ebuild50
2 files changed, 51 insertions, 0 deletions
diff --git a/media-gfx/qview/Manifest b/media-gfx/qview/Manifest
index 645dfc629..ddc546a29 100644
--- a/media-gfx/qview/Manifest
+++ b/media-gfx/qview/Manifest
@@ -1 +1,2 @@
DIST qview-4.0.tar.gz 1662149 BLAKE2B 5a09b070234b6480bd076625a543271dd1de324c10123db183c540ad9da5a3be88e1d40efc30d5ec479c84b5c81c005f149df79e7d6c9b37f491e2b3c96738ca SHA512 442b7815e8449a80ec41424d7c999ea9972e19309559abb8f0985b0523255a3fe191d5cd7183a36f322be9c84d1af099cbef92a76b634da31af0852735a4620c
+DIST qview-5.0.tar.gz 1968047 BLAKE2B a47d48ff51f049501493e32a082c396edc6729de5f40421edf27a847c5a333564647a92443417af9e0ec61927ddfd4e027edf31283f67df01646cce15720e620 SHA512 91671ed125bc4388d9043f3c24cbbe2ea2592ecec181a3f968cc2f951eb367a1576f9e19da6fd00128239efadd6f82d9f0b6437a081ee43ad4567141d6e62b65
diff --git a/media-gfx/qview/qview-5.0.ebuild b/media-gfx/qview/qview-5.0.ebuild
new file mode 100644
index 000000000..c73a7a512
--- /dev/null
+++ b/media-gfx/qview/qview-5.0.ebuild
@@ -0,0 +1,50 @@
+# Copyright 2021-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit flag-o-matic qmake-utils toolchain-funcs virtualx 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"
+
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ dev-qt/qtconcurrent:5
+ dev-qt/qtgui:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtwidgets:5
+"
+
+DEPEND="${RDEPEND}
+ test? ( dev-qt/qttest:5 )
+"
+
+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_test() {
+ cd tests || die
+ eqmake5 && emake
+ virtx ./tests
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install
+ einstalldocs
+}