Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/rawtherapee/
Date: Thu, 26 Sep 2019 15:51:18
Message-Id: 1569512930.8ff12a58497d55cbde453f2de6ec1d8088724dd1.juippis@gentoo
1 commit: 8ff12a58497d55cbde453f2de6ec1d8088724dd1
2 Author: Francesco Riosa <vivo75 <AT> gmail <DOT> com>
3 AuthorDate: Thu Sep 26 10:36:24 2019 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 26 15:48:50 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ff12a58
7
8 media-gfx/rawtherapee: version bump to 5.7
9
10 Signed-off-by: Francesco Riosa <vivo75 <AT> gmail.com>
11 Closes: https://bugs.gentoo.org/695408
12 Package-Manager: Portage-2.3.76, Repoman-2.3.17
13 Closes: https://github.com/gentoo/gentoo/pull/13046
14 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
15
16 media-gfx/rawtherapee/Manifest | 1 +
17 media-gfx/rawtherapee/rawtherapee-5.7.ebuild | 72 ++++++++++++++++++++++++++++
18 2 files changed, 73 insertions(+)
19
20 diff --git a/media-gfx/rawtherapee/Manifest b/media-gfx/rawtherapee/Manifest
21 index e45ab3b82ab..7026f26c132 100644
22 --- a/media-gfx/rawtherapee/Manifest
23 +++ b/media-gfx/rawtherapee/Manifest
24 @@ -1 +1,2 @@
25 DIST rawtherapee-5.6.tar.xz 12083264 BLAKE2B a0eb09e98e1041b393ad3aa671641a2a4855379cef6245ca3cca2588ff5f50fedf8becd88bad1ab70f63dfb575f5f22c141040defa10b47268947415999d8e79 SHA512 2c751c7631ea2ef65c334fa0baab16d4c3161fae66487870c476f07f1ea3604a5e28a251fd98d9688cafc088302af7aa6e28e9b27a37f916715708ed5e731f0f
26 +DIST rawtherapee-5.7.tar.xz 12092496 BLAKE2B 40d97d09106d7d2b843376b4c58daac87f99315604bd8e704e1f231c17d01896cd732da2449f84a59ed221fbf6a929a5db8e728977431fdcc07f3d30120b633a SHA512 8101ec66d9be4cab0c0b91336a3f83a32a6220a2f342f1c74d604c15686ee08bc7dbc090232916f13d5436957d800b64b284a8a9d3352f2f721266b07e005162
27
28 diff --git a/media-gfx/rawtherapee/rawtherapee-5.7.ebuild b/media-gfx/rawtherapee/rawtherapee-5.7.ebuild
29 new file mode 100644
30 index 00000000000..48b8dca754d
31 --- /dev/null
32 +++ b/media-gfx/rawtherapee/rawtherapee-5.7.ebuild
33 @@ -0,0 +1,72 @@
34 +# Copyright 1999-2019 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=7
38 +
39 +MY_P=${P/_rc/-rc}
40 +inherit cmake-utils flag-o-matic toolchain-funcs xdg-utils
41 +
42 +DESCRIPTION="A powerful cross-platform raw image processing program"
43 +HOMEPAGE="https://www.rawtherapee.com/"
44 +SRC_URI="https://rawtherapee.com/shared/source/${MY_P}.tar.xz"
45 +
46 +LICENSE="GPL-3"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~x86"
49 +
50 +IUSE="openmp"
51 +
52 +RDEPEND="
53 + dev-libs/expat
54 + dev-libs/libsigc++:2
55 + media-libs/lcms:2
56 + media-libs/lensfun
57 + media-libs/libcanberra[gtk3]
58 + media-libs/libiptcdata
59 + media-libs/libpng:0
60 + media-libs/tiff:0
61 + sci-libs/fftw:3.0
62 + sys-libs/zlib
63 + virtual/jpeg:0
64 + x11-libs/gtk+:3"
65 +DEPEND="${RDEPEND}
66 + dev-cpp/gtkmm:3.0
67 + gnome-base/librsvg"
68 +BDEPEND="virtual/pkgconfig"
69 +
70 +S="${WORKDIR}/${MY_P}"
71 +
72 +pkg_pretend() {
73 + if use openmp ; then
74 + tc-has-openmp || die "Please switch to an openmp compatible compiler"
75 + fi
76 +}
77 +
78 +src_configure() {
79 + # upstream tested that "fast-math" give wrong results, so filter it
80 + # https://bugs.gentoo.org/show_bug.cgi?id=606896#c2
81 + filter-flags -ffast-math
82 + # -Ofast enable "fast-math" both in gcc and clang
83 + replace-flags -Ofast -O3
84 + # In case we add an ebuild for klt we can (i)use that one,
85 + # see http://cecas.clemson.edu/~stb/klt/
86 + local mycmakeargs=(
87 + -DOPTION_OMP=$(usex openmp)
88 + -DDOCDIR=/usr/share/doc/${PF}
89 + -DCREDITSDIR=/usr/share/${PN}
90 + -DLICENCEDIR=/usr/share/${PN}
91 + -DCACHE_NAME_SUFFIX=""
92 + -DWITH_SYSTEM_KLT="off"
93 + )
94 + cmake-utils_src_configure
95 +}
96 +
97 +pkg_postinst() {
98 + xdg_icon_cache_update
99 + xdg_desktop_database_update
100 +}
101 +
102 +pkg_postrm() {
103 + xdg_icon_cache_update
104 + xdg_desktop_database_update
105 +}