blob: 1652efc8f4030516a3c4de5f5c3267ed47af26a9 (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake xdg-utils
DESCRIPTION="A cross-platform image viewer with webm support, written in qt5"
HOMEPAGE="https://github.com/easymodo/qimgv"
SRC_URI="https://github.com/easymodo/qimgv/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="exif kde opencv video"
BDEPEND="
virtual/pkgconfig
"
DEPEND="
dev-qt/qtconcurrent:5
dev-qt/qtcore:5
dev-qt/qtgui:5
dev-qt/qtwidgets:5
exif? ( media-gfx/exiv2:= )
kde? ( kde-frameworks/kwindowsystem:5 )
opencv? ( media-libs/opencv:= )
video? ( media-video/mpv[libmpv] )
"
RDEPEND="
${DEPEND}
"
src_prepare() {
cmake_src_prepare
# respect make.conf CXXFLAGS
sed -i -e '/set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -lstdc++fs -O3")/d' CMakeLists.txt || die
}
src_configure() {
local mycmakeargs=(
-DEXIV2=$(usex exif)
-DKDE_SUPPORT=$(usex kde)
-DOPENCV_SUPPORT=$(usex opencv)
-DVIDEO_SUPPORT=$(usex video)
)
cmake_src_configure
}
pkg_postinst() {
xdg_icon_cache_update
xdg_desktop_database_update
}
pkg_postrm() {
xdg_icon_cache_update
xdg_desktop_database_update
}
|