Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/nomacs/
Date: Sun, 04 Oct 2015 14:52:01
Message-Id: 1443968511.fb989d0d6694b579fe859ea17b1d9d29537d9b11.mgorny@gentoo
1 commit: fb989d0d6694b579fe859ea17b1d9d29537d9b11
2 Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
3 AuthorDate: Sun Oct 4 13:09:14 2015 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 4 14:21:51 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb989d0d
7
8 media-gfx/nomacs: Revision bump for compatibility with exiv2-0.25
9
10 Package-Manager: portage-2.2.20.1
11
12 media-gfx/nomacs/nomacs-2.4.4-r1.ebuild | 57 +++++++++++++++++++++++++++++++++
13 1 file changed, 57 insertions(+)
14
15 diff --git a/media-gfx/nomacs/nomacs-2.4.4-r1.ebuild b/media-gfx/nomacs/nomacs-2.4.4-r1.ebuild
16 new file mode 100644
17 index 0000000..d45dba7
18 --- /dev/null
19 +++ b/media-gfx/nomacs/nomacs-2.4.4-r1.ebuild
20 @@ -0,0 +1,57 @@
21 +# Copyright 1999-2015 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +# $Id$
24 +
25 +EAPI=5
26 +
27 +inherit cmake-utils fdo-mime
28 +
29 +DESCRIPTION="Qt4-based image viewer"
30 +HOMEPAGE="http://www.nomacs.org/"
31 +SRC_URI="mirror://sourceforge/${PN}/${P}-source.tar.bz2"
32 +
33 +LICENSE="GPL-3"
34 +SLOT="0"
35 +KEYWORDS="~amd64 ~amd64-linux"
36 +IUSE="opencv raw tiff webp zip"
37 +
38 +REQUIRED_USE="
39 + raw? ( opencv )
40 + tiff? ( opencv )
41 +"
42 +
43 +RDEPEND="
44 + dev-qt/qtcore:4
45 + dev-qt/qtgui:4
46 + >=media-gfx/exiv2-0.25:=[png]
47 + opencv? ( >=media-libs/opencv-2.4:=[qt4] )
48 + raw? ( >=media-libs/libraw-0.14:= )
49 + tiff? ( media-libs/tiff:0 )
50 + webp? ( >=media-libs/libwebp-0.3.1:= )
51 + zip? ( dev-libs/quazip )
52 +"
53 +DEPEND="${RDEPEND}
54 + virtual/pkgconfig
55 +"
56 +
57 +src_configure() {
58 + local mycmakeargs=(
59 + -DENABLE_QT5=OFF
60 + $(cmake-utils_use_enable opencv)
61 + $(cmake-utils_use_enable raw)
62 + $(cmake-utils_use_enable tiff)
63 + $(cmake-utils_use_enable webp)
64 + $(cmake-utils_use_enable zip QUAZIP)
65 + -DUSE_SYSTEM_WEBP=ON
66 + -DUSE_SYSTEM_QUAZIP=ON
67 + )
68 + cmake-utils_src_configure
69 +}
70 +
71 +pkg_postinst() {
72 + fdo-mime_desktop_database_update
73 +}
74 +
75 +pkg_postrm() {
76 + fdo-mime_desktop_database_update
77 +}