Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/exiv2/, media-gfx/exiv2/files/
Date: Sat, 14 Oct 2017 07:57:58
Message-Id: 1507967727.3d87a84e9efadd125720c7caf8b5045948353547.asturm@gentoo
1 commit: 3d87a84e9efadd125720c7caf8b5045948353547
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 14 07:55:27 2017 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 14 07:55:27 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d87a84e
7
8 media-gfx/exiv2: Fix !multilib_is_native_abi build
9
10 Gentoo-bug: 634178
11 Package-Manager: Portage-2.3.11, Repoman-2.3.3
12
13 media-gfx/exiv2/exiv2-0.26_p20171013.ebuild | 2 +
14 .../exiv2/files/exiv2-0.26_p20171013-cmake.patch | 47 ++++++++++++++++++++++
15 2 files changed, 49 insertions(+)
16
17 diff --git a/media-gfx/exiv2/exiv2-0.26_p20171013.ebuild b/media-gfx/exiv2/exiv2-0.26_p20171013.ebuild
18 index 92035195fe4..9aa6302ffd0 100644
19 --- a/media-gfx/exiv2/exiv2-0.26_p20171013.ebuild
20 +++ b/media-gfx/exiv2/exiv2-0.26_p20171013.ebuild
21 @@ -41,6 +41,8 @@ DEPEND="${RDEPEND}
22
23 DOCS=( README.md doc/ChangeLog doc/cmd.txt )
24
25 +PATCHES=( "${FILESDIR}/${P}-cmake.patch" )
26 +
27 pkg_setup() {
28 use doc && python-any-r1_pkg_setup
29 }
30
31 diff --git a/media-gfx/exiv2/files/exiv2-0.26_p20171013-cmake.patch b/media-gfx/exiv2/files/exiv2-0.26_p20171013-cmake.patch
32 new file mode 100644
33 index 00000000000..c10f125415b
34 --- /dev/null
35 +++ b/media-gfx/exiv2/files/exiv2-0.26_p20171013-cmake.patch
36 @@ -0,0 +1,47 @@
37 +From 57883ee664260f5a1b382575e7477ad34c86ce7d Mon Sep 17 00:00:00 2001
38 +From: Andreas Sturmlechner <andreas.sturmlechner@×××××.com>
39 +Date: Fri, 13 Oct 2017 18:54:11 +0200
40 +Subject: [PATCH] Fix build with EXIV2_BUILD_EXIV2_COMMAND=OFF
41 +
42 +---
43 + src/CMakeLists.txt | 17 ++++++++++++-----
44 + 1 file changed, 12 insertions(+), 5 deletions(-)
45 +
46 +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
47 +index fe49a0a6..f75cbf1b 100644
48 +--- a/src/CMakeLists.txt
49 ++++ b/src/CMakeLists.txt
50 +@@ -291,21 +291,28 @@ if(EXIV2_BUILD_EXIV2_COMMAND)
51 + if ( BUILD_SHARED_LIBS )
52 + target_compile_definitions(exiv2 PRIVATE EXV_HAVE_DLL )
53 + endif()
54 ++ # modify source lists to suit environment
55 ++
56 ++ # TODO This should not be needed here! we need to fix the previous TODO
57 ++ target_include_directories(exiv2 PRIVATE ${CMAKE_SOURCE_DIR}/include/)
58 ++
59 ++ if(NOT EXV_HAVE_TIMEGM )
60 ++ target_sources(exiv2 PRIVATE localtime.c)
61 ++ endif()
62 ++
63 ++ if (MSVC)
64 ++ target_sources(exiv2 PRIVATE getopt_win32.c)
65 ++ endif()
66 + install(TARGETS exiv2 RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
67 + endif()
68 +
69 +-# TODO This should not be needed here! we need to fix the previous TODO
70 +-target_include_directories(exiv2 PRIVATE ${CMAKE_SOURCE_DIR}/include/)
71 +-
72 + # modify source lists to suit environment
73 + if(NOT EXV_HAVE_TIMEGM )
74 + target_sources(exiv2lib PRIVATE localtime.c)
75 +- target_sources(exiv2 PRIVATE localtime.c)
76 + endif()
77 +
78 + if (MSVC)
79 + target_sources(exiv2lib PRIVATE getopt_win32.c)
80 +- target_sources(exiv2 PRIVATE getopt_win32.c)
81 + endif()
82 +
83 + # ******************************************************************************