blob: 1c39f6c5fc7096690c747e8c73d7dcf49fc80827 (
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
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-gfx/nomacs/nomacs-2.4.2.ebuild,v 1.2 2015/05/21 13:27:08 ago Exp $
EAPI=5
inherit cmake-utils fdo-mime
DESCRIPTION="Qt4-based image viewer"
HOMEPAGE="http://www.nomacs.org/"
SRC_URI="mirror://sourceforge/${PN}/${P}-source.tar.bz2"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 ~amd64-linux"
IUSE="opencv raw tiff webp zip"
REQUIRED_USE="raw? ( opencv ) tiff? ( opencv )"
RDEPEND="
>=media-gfx/exiv2-0.20[zlib]
>=dev-qt/qtcore-4.7.0:4
>=dev-qt/qtgui-4.7.0:4
opencv? ( >=media-libs/opencv-2.4.0[qt4] )
raw? ( >=media-libs/libraw-0.14 )
tiff? ( media-libs/tiff:0= )
webp? ( >=media-libs/libwebp-0.3.1:= )
zip? ( dev-libs/quazip )
"
DEPEND="${RDEPEND}
virtual/pkgconfig
"
PATCHES=( "${FILESDIR}/${P}-include.patch" )
src_configure() {
local mycmakeargs=(
-DUSE_SYSTEM_WEBP=true
-DUSE_SYSTEM_QUAZIP=true
$(cmake-utils_use_enable opencv)
$(cmake-utils_use_enable raw)
$(cmake-utils_use_enable tiff)
$(cmake-utils_use_enable webp)
$(cmake-utils_use_enable zip QUAZIP)
)
cmake-utils_src_configure
}
pkg_postinst() {
fdo-mime_desktop_database_update
}
pkg_postrm() {
fdo-mime_desktop_database_update
}
|