summaryrefslogtreecommitdiff
path: root/media-gfx/openexr-viewer/openexr-viewer-0.6.1-r1.ebuild
blob: 8e68e23e250730732fad49ac8cb86cbac1d158b2 (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
# Copyright 2022-2023 Liguros Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8

inherit cmake xdg

DESCRIPTION="Simple viewer for OpenEXR files"
HOMEPAGE="https://github.com/afichet/openexr-viewer"
SRC_URI="https://github.com/afichet/openexr-viewer/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="BSD-3"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
IUSE=""

RDEPEND="
	dev-qt/qtconcurrent
	dev-qt/qtwidgets
	dev-libs/imath
	media-libs/openexr
	sys-libs/zlib
"
DEPEND="
	${RDEPEND}
"

src_prepare() {
	# Removing faulty Version from desktop file
	sed -e "/Version/d" -i deploy/linux/openexr-viewer.desktop || die
	cmake_src_prepare
}

src_configure() {
	cmake_src_configure
}

src_install() {
	cmake_src_install
}


pkg_postinst() {
	xdg_mimeinfo_database_update
	xdg_desktop_database_update
}

pkg_postrm() {
	xdg_mimeinfo_database_update
	xdg_desktop_database_update
}