Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/rawtherapee/files/, media-gfx/rawtherapee/
Date: Tue, 15 Dec 2015 20:16:52
Message-Id: 1450210590.54bde0d76f9295685225547a1e05d037fb5543e2.pacho@gentoo
1 commit: 54bde0d76f9295685225547a1e05d037fb5543e2
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 15 20:02:04 2015 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 15 20:16:30 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54bde0d7
7
8 media-gfx/rawtherapee: Fix building with latest glibmm/libsigc++ (#568136)
9
10 Package-Manager: portage-2.2.26
11
12 .../rawtherapee/files/rawtherapee-4.2-cxx11.patch | 27 ++++++++++++++++++++++
13 media-gfx/rawtherapee/rawtherapee-4.2.ebuild | 4 ++++
14 2 files changed, 31 insertions(+)
15
16 diff --git a/media-gfx/rawtherapee/files/rawtherapee-4.2-cxx11.patch b/media-gfx/rawtherapee/files/rawtherapee-4.2-cxx11.patch
17 new file mode 100644
18 index 0000000..48acb5f
19 --- /dev/null
20 +++ b/media-gfx/rawtherapee/files/rawtherapee-4.2-cxx11.patch
21 @@ -0,0 +1,27 @@
22 +From 39ef59ddeb7679c71274b1da3faadd395b650c73 Mon Sep 17 00:00:00 2001
23 +From: Adam Reichold <adam.reichold@××××××××.de>
24 +Date: Sun, 29 Nov 2015 11:48:30 +0100
25 +Subject: [PATCH] Build with '-std=c++11' if libsigc++ version 2.5.1 is used as
26 + it does require it.
27 +
28 +---
29 + CMakeLists.txt | 4 ++--
30 + 1 file changed, 2 insertions(+), 2 deletions(-)
31 +
32 +diff --git a/CMakeLists.txt b/CMakeLists.txt
33 +index dd5fcbc..6153484 100644
34 +--- a/CMakeLists.txt
35 ++++ b/CMakeLists.txt
36 +@@ -278,10 +278,10 @@ if (OPTION_OMP)
37 + endif (OPENMP_FOUND)
38 + endif (OPTION_OMP)
39 +
40 +-if(USE_EXPERIMENTAL_LANG_VERSIONS)
41 ++if(USE_EXPERIMENTAL_LANG_VERSIONS OR NOT (SIGC_VERSION VERSION_LESS 2.5.1))
42 + SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu1x")
43 + SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++0x")
44 +-endif (USE_EXPERIMENTAL_LANG_VERSIONS)
45 ++endif ()
46 +
47 + # find out whether we are building out of source
48 + get_filename_component(ABS_SOURCE_DIR "${PROJECT_SOURCE_DIR}" ABSOLUTE)
49
50 diff --git a/media-gfx/rawtherapee/rawtherapee-4.2.ebuild b/media-gfx/rawtherapee/rawtherapee-4.2.ebuild
51 index 6ae07a5..6702661 100644
52 --- a/media-gfx/rawtherapee/rawtherapee-4.2.ebuild
53 +++ b/media-gfx/rawtherapee/rawtherapee-4.2.ebuild
54 @@ -33,6 +33,10 @@ DEPEND="${RDEPEND}
55 app-arch/xz-utils
56 virtual/pkgconfig"
57
58 +PATCHES=(
59 + "${FILESDIR}"/${P}-cxx11.patch # Upstream patch for fixing bug #568136
60 +)
61 +
62 pkg_pretend() {
63 if use openmp ; then
64 tc-has-openmp || die "Please switch to an openmp compatible compiler"