1 |
commit: 6853625c9ea324021f861e92b2aa94349ecc9240 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jun 23 20:53:41 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jun 23 20:57:29 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6853625c |
7 |
|
8 |
media-gfx/exiv2: Fix cmake module, link targets, use libssh-config |
9 |
|
10 |
Package-Manager: Portage-2.3.67, Repoman-2.3.15 |
11 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
12 |
|
13 |
media-gfx/exiv2/exiv2-0.27.1-r1.ebuild | 108 +++++++++++++++++++ |
14 |
.../exiv2/files/exiv2-0.27.1-private-libs.patch | 59 ++++++++++ |
15 |
.../exiv2-0.27.1-restore-0.25-behaviour.patch | 119 +++++++++++++++++++++ |
16 |
.../exiv2-0.27.1-system-cmakemoduledir1.patch | 41 +++++++ |
17 |
.../exiv2-0.27.1-system-cmakemoduledir2.patch | 28 +++++ |
18 |
.../files/exiv2-0.27.1-system-libssh-config.patch | 93 ++++++++++++++++ |
19 |
6 files changed, 448 insertions(+) |
20 |
|
21 |
diff --git a/media-gfx/exiv2/exiv2-0.27.1-r1.ebuild b/media-gfx/exiv2/exiv2-0.27.1-r1.ebuild |
22 |
new file mode 100644 |
23 |
index 00000000000..8ffcb2c29e9 |
24 |
--- /dev/null |
25 |
+++ b/media-gfx/exiv2/exiv2-0.27.1-r1.ebuild |
26 |
@@ -0,0 +1,108 @@ |
27 |
+# Copyright 1999-2019 Gentoo Authors |
28 |
+# Distributed under the terms of the GNU General Public License v2 |
29 |
+ |
30 |
+EAPI=7 |
31 |
+ |
32 |
+if [[ ${PV} = *9999 ]]; then |
33 |
+ EGIT_REPO_URI="https://github.com/Exiv2/exiv2.git" |
34 |
+ inherit git-r3 |
35 |
+else |
36 |
+ SRC_URI="https://exiv2.org/builds/${P}-Source.tar.gz" |
37 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-solaris ~x86-solaris" |
38 |
+fi |
39 |
+ |
40 |
+PYTHON_COMPAT=( python2_7 python3_{5,6,7} ) |
41 |
+inherit cmake-multilib python-any-r1 |
42 |
+ |
43 |
+DESCRIPTION="EXIF, IPTC and XMP metadata C++ library and command line utility" |
44 |
+HOMEPAGE="https://www.exiv2.org/" |
45 |
+ |
46 |
+LICENSE="GPL-2" |
47 |
+SLOT="0/27" |
48 |
+IUSE="doc examples nls +png webready +xmp" |
49 |
+ |
50 |
+BDEPEND=" |
51 |
+ doc? ( |
52 |
+ ${PYTHON_DEPS} |
53 |
+ app-doc/doxygen |
54 |
+ dev-libs/libxslt |
55 |
+ media-gfx/graphviz |
56 |
+ virtual/pkgconfig |
57 |
+ ) |
58 |
+ nls? ( sys-devel/gettext ) |
59 |
+" |
60 |
+DEPEND=" |
61 |
+ >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] |
62 |
+ nls? ( >=virtual/libintl-0-r1[${MULTILIB_USEDEP}] ) |
63 |
+ png? ( sys-libs/zlib[${MULTILIB_USEDEP}] ) |
64 |
+ webready? ( |
65 |
+ net-libs/libssh[${MULTILIB_USEDEP}] |
66 |
+ net-misc/curl[${MULTILIB_USEDEP}] |
67 |
+ ) |
68 |
+ xmp? ( dev-libs/expat[${MULTILIB_USEDEP}] ) |
69 |
+" |
70 |
+RDEPEND="${DEPEND}" |
71 |
+ |
72 |
+DOCS=( README.md doc/ChangeLog doc/cmd.txt ) |
73 |
+ |
74 |
+S="${S}-Source" |
75 |
+ |
76 |
+PATCHES=( |
77 |
+ "${FILESDIR}"/${P}-system-cmakemoduledir{1,2}.patch |
78 |
+ "${FILESDIR}"/${P}-private-libs.patch |
79 |
+ "${FILESDIR}"/${P}-restore-0.25-behaviour.patch |
80 |
+ "${FILESDIR}"/${P}-system-libssh-config.patch |
81 |
+) |
82 |
+ |
83 |
+pkg_setup() { |
84 |
+ use doc && python-any-r1_pkg_setup |
85 |
+} |
86 |
+ |
87 |
+src_prepare() { |
88 |
+ # FIXME @upstream: |
89 |
+ einfo "Converting doc/cmd.txt to UTF-8" |
90 |
+ iconv -f LATIN1 -t UTF-8 doc/cmd.txt > doc/cmd.txt.tmp || die |
91 |
+ mv -f doc/cmd.txt.tmp doc/cmd.txt || die |
92 |
+ |
93 |
+ cmake-utils_src_prepare |
94 |
+ |
95 |
+ sed -e "/^include.*compilerFlags/s/^/#DONT /" -i CMakeLists.txt || die |
96 |
+} |
97 |
+ |
98 |
+multilib_src_configure() { |
99 |
+ local mycmakeargs=( |
100 |
+ -DEXIV2_BUILD_SAMPLES=NO |
101 |
+ -DEXIV2_BUILD_PO=$(usex nls) |
102 |
+ -DEXIV2_ENABLE_NLS=$(usex nls) |
103 |
+ -DEXIV2_ENABLE_PNG=$(usex png) |
104 |
+ -DEXIV2_ENABLE_CURL=$(usex webready) |
105 |
+ -DEXIV2_ENABLE_SSH=$(usex webready) |
106 |
+ -DEXIV2_ENABLE_WEBREADY=$(usex webready) |
107 |
+ -DEXIV2_ENABLE_XMP=$(usex xmp) |
108 |
+ $(multilib_is_native_abi || echo -DEXIV2_BUILD_EXIV2_COMMAND=NO) |
109 |
+ $(multilib_is_native_abi && echo -DEXIV2_BUILD_DOC=$(usex doc)) |
110 |
+ -DCMAKE_INSTALL_DOCDIR="${EPREFIX}"/usr/share/doc/${PF}/html |
111 |
+ ) |
112 |
+ |
113 |
+ cmake-utils_src_configure |
114 |
+} |
115 |
+ |
116 |
+multilib_src_compile() { |
117 |
+ cmake-utils_src_compile |
118 |
+ |
119 |
+ if multilib_is_native_abi; then |
120 |
+ use doc && eninja doc |
121 |
+ fi |
122 |
+} |
123 |
+ |
124 |
+multilib_src_install_all() { |
125 |
+ use xmp && DOCS+=( doc/{COPYING-XMPSDK,README-XMP,cmdxmp.txt} ) |
126 |
+ |
127 |
+ einstalldocs |
128 |
+ find "${D}" -name '*.la' -delete || die |
129 |
+ |
130 |
+ if use examples; then |
131 |
+ docinto examples |
132 |
+ dodoc samples/*.cpp |
133 |
+ fi |
134 |
+} |
135 |
|
136 |
diff --git a/media-gfx/exiv2/files/exiv2-0.27.1-private-libs.patch b/media-gfx/exiv2/files/exiv2-0.27.1-private-libs.patch |
137 |
new file mode 100644 |
138 |
index 00000000000..c99a19098ae |
139 |
--- /dev/null |
140 |
+++ b/media-gfx/exiv2/files/exiv2-0.27.1-private-libs.patch |
141 |
@@ -0,0 +1,59 @@ |
142 |
+From f05d100579effd7459fd0715b26239d4cd2c9bcc Mon Sep 17 00:00:00 2001 |
143 |
+From: =?UTF-8?q?Luis=20D=C3=ADaz=20M=C3=A1s?= <piponazo@×××××.com> |
144 |
+Date: Sat, 4 May 2019 16:14:15 +0200 |
145 |
+Subject: [PATCH] CURL lib and include directories private for exiv2lib |
146 |
+ |
147 |
+(cherry picked from commit 5d64a0b11c5a45dd9d58c56e946301f3f98942a7) |
148 |
+--- |
149 |
+ samples/CMakeLists.txt | 14 ++++++++++++++ |
150 |
+ src/CMakeLists.txt | 10 +++++----- |
151 |
+ 2 files changed, 19 insertions(+), 5 deletions(-) |
152 |
+ |
153 |
+diff --git a/samples/CMakeLists.txt b/samples/CMakeLists.txt |
154 |
+index a82403e3b..c3f4722df 100644 |
155 |
+--- a/samples/CMakeLists.txt |
156 |
++++ b/samples/CMakeLists.txt |
157 |
+@@ -96,6 +96,20 @@ endif() |
158 |
+ add_executable(conntest conntest.cpp) |
159 |
+ list(APPEND APPLICATIONS conntest) |
160 |
+ |
161 |
++if (EXIV2_ENABLE_WEBREADY) |
162 |
++ if( EXIV2_ENABLE_CURL ) |
163 |
++ target_include_directories(conntest SYSTEM PRIVATE ${CURL_INCLUDE_DIR} ) |
164 |
++ target_link_libraries(conntest PRIVATE ${CURL_LIBRARIES}) |
165 |
++ if (USING_CONAN) |
166 |
++ target_compile_definitions(conntest PRIVATE ${CONAN_COMPILE_DEFINITIONS_LIBCURL}) |
167 |
++ target_link_libraries(conntest PRIVATE ${CONAN_EXE_LINKER_FLAGS_LIBCURL}) |
168 |
++ if (NOT APPLE) |
169 |
++ target_link_libraries(conntest PRIVATE CONAN_PKG::OpenSSL) |
170 |
++ endif() |
171 |
++ endif() |
172 |
++ endif() |
173 |
++endif() |
174 |
++ |
175 |
+ # ****************************************************************************** |
176 |
+ # remotetest application |
177 |
+ add_executable(remotetest remotetest.cpp) |
178 |
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt |
179 |
+index 976327775..d0e989d26 100644 |
180 |
+--- a/src/CMakeLists.txt |
181 |
++++ b/src/CMakeLists.txt |
182 |
+@@ -179,13 +179,13 @@ if (EXIV2_ENABLE_WEBREADY) |
183 |
+ endif() |
184 |
+ |
185 |
+ if( EXIV2_ENABLE_CURL ) |
186 |
+- target_include_directories(exiv2lib SYSTEM PUBLIC ${CURL_INCLUDE_DIR} ) |
187 |
+- target_link_libraries(exiv2lib PUBLIC ${CURL_LIBRARIES}) |
188 |
++ target_include_directories(exiv2lib SYSTEM PRIVATE ${CURL_INCLUDE_DIR} ) |
189 |
++ target_link_libraries(exiv2lib PRIVATE ${CURL_LIBRARIES}) |
190 |
+ if (USING_CONAN) |
191 |
+- target_compile_definitions(exiv2lib PUBLIC ${CONAN_COMPILE_DEFINITIONS_LIBCURL}) |
192 |
+- target_link_libraries(exiv2lib PUBLIC ${CONAN_EXE_LINKER_FLAGS_LIBCURL}) |
193 |
++ target_compile_definitions(exiv2lib PRIVATE ${CONAN_COMPILE_DEFINITIONS_LIBCURL}) |
194 |
++ target_link_libraries(exiv2lib PRIVATE ${CONAN_EXE_LINKER_FLAGS_LIBCURL}) |
195 |
+ if (NOT APPLE) |
196 |
+- target_link_libraries(exiv2lib PUBLIC CONAN_PKG::OpenSSL) |
197 |
++ target_link_libraries(exiv2lib PRIVATE CONAN_PKG::OpenSSL) |
198 |
+ endif() |
199 |
+ endif() |
200 |
+ endif() |
201 |
|
202 |
diff --git a/media-gfx/exiv2/files/exiv2-0.27.1-restore-0.25-behaviour.patch b/media-gfx/exiv2/files/exiv2-0.27.1-restore-0.25-behaviour.patch |
203 |
new file mode 100644 |
204 |
index 00000000000..2aa4d3a826f |
205 |
--- /dev/null |
206 |
+++ b/media-gfx/exiv2/files/exiv2-0.27.1-restore-0.25-behaviour.patch |
207 |
@@ -0,0 +1,119 @@ |
208 |
+From db870755b928cca7411a092ce12292afe9c4fa36 Mon Sep 17 00:00:00 2001 |
209 |
+From: clanmills <robin@×××××××××.com> |
210 |
+Date: Thu, 9 May 2019 11:26:29 +0100 |
211 |
+Subject: [PATCH] fix #818. Restore 0.25 behaviour of `$ exiv2 -g image ...` |
212 |
+ to apply grep to keys. |
213 |
+ |
214 |
+--- |
215 |
+ src/actions.cpp | 2 +- |
216 |
+ src/exiv2.1 | 50 +++++++++++++++++-------- |
217 |
+ tests/bugfixes/github/test_issue_818.py | 32 ++++++++++++++++ |
218 |
+ 3 files changed, 67 insertions(+), 17 deletions(-) |
219 |
+ create mode 100644 tests/bugfixes/github/test_issue_818.py |
220 |
+ |
221 |
+diff --git a/src/actions.cpp b/src/actions.cpp |
222 |
+index 34a7a80d5..68260186d 100644 |
223 |
+--- a/src/actions.cpp |
224 |
++++ b/src/actions.cpp |
225 |
+@@ -243,7 +243,7 @@ namespace Action { |
226 |
+ int rc = 0; |
227 |
+ Exiv2::PrintStructureOption option = Exiv2::kpsNone ; |
228 |
+ switch (Params::instance().printMode_) { |
229 |
+- case Params::pmSummary: rc = printSummary(); break; |
230 |
++ case Params::pmSummary: rc = Params::instance().greps_.empty() ? printSummary() : printList(); break; |
231 |
+ case Params::pmList: rc = printList(); break; |
232 |
+ case Params::pmComment: rc = printComment(); break; |
233 |
+ case Params::pmPreview: rc = printPreviewList(); break; |
234 |
+diff --git a/src/exiv2.1 b/src/exiv2.1 |
235 |
+index 4f6f3b51b..048f09af7 100644 |
236 |
+--- a/src/exiv2.1 |
237 |
++++ b/src/exiv2.1 |
238 |
+@@ -2,7 +2,7 @@ |
239 |
+ .\" First parameter, NAME, should be all caps |
240 |
+ .\" Second parameter, SECTION, should be 1-8, maybe w/ subsection |
241 |
+ .\" other parameters are allowed: see man(7), man(1) |
242 |
+-.TH EXIV2 1 "Apr 25, 2019" |
243 |
++.TH EXIV2 1 "May 8, 2019" |
244 |
+ .\" Please adjust this date whenever revising the manpage. |
245 |
+ .\" |
246 |
+ .\" Some roff macros, for reference: |
247 |
+@@ -222,19 +222,30 @@ Show unknown tags (default is to suppress tags which don't have a name). |
248 |
+ Only keys which match the given key (grep). |
249 |
+ .br |
250 |
+ Multiple \fB\-g\fP options |
251 |
+-can be used to grep info for several keys. Example: |
252 |
++can be used to filter info to less keys. Example: |
253 |
+ exiv2 -v -V -g webready -g time. |
254 |
++The default exiv2 command prints a "summary report" which is quite short. When you use -g without a -pmod option, you do not get a summary report and in effect you get -g pattern -pa image ... |
255 |
+ |
256 |
+ .nf |
257 |
+-exiv2 \-g Date \-pt R.jpg |
258 |
+-Exif.Image.DateTime Ascii 20 2012:08:07 16:01:05 |
259 |
+-Exif.Photo.DateTimeOriginal Ascii 20 2011:09:18 16:25:48 |
260 |
+-Exif.Photo.DateTimeDigitized Ascii 20 2011:09:18 16:25:48 |
261 |
++$ bin/exiv2 -g Date http://clanmills.com/Stonehenge.jpg |
262 |
++Exif.Image.DateTime Ascii 20 2015:07:16 20:25:28 |
263 |
++Exif.Photo.DateTimeOriginal Ascii 20 2015:07:16 15:38:54 |
264 |
++Exif.Photo.DateTimeDigitized Ascii 20 2015:07:16 15:38:54 |
265 |
++Exif.NikonWt.DateDisplayFormat Byte 1 Y/M/D |
266 |
++Exif.GPSInfo.GPSDateStamp Ascii 11 2015:07:16 |
267 |
++Xmp.xmp.ModifyDate XmpText 25 2015-07-16T20:25:28+01:00 |
268 |
+ |
269 |
+ .fi |
270 |
+--g (--grep) is only applied to keys. It is not generally applied to all output such as the default -ps report. |
271 |
++You may use -pmod filters to further filter output. For example: |
272 |
++.nf |
273 |
++ |
274 |
++$ bin/exiv2 -px -g Date http://clanmills.com/Stonehenge.jpg |
275 |
++Xmp.xmp.ModifyDate XmpText 25 2015-07-16T20:25:28+01:00 |
276 |
+ |
277 |
+-The key may finish with the optional modifier /i to indicated case insensitive. |
278 |
++.fi |
279 |
++The option -g (--grep) applies to keys and not values. |
280 |
++ |
281 |
++The key may finish with the optional modifier /i to indicate case insensitive. |
282 |
+ .TP |
283 |
+ .B \-K \fIkey\fP |
284 |
+ Only report data for given key. |
285 |
+@@ -243,8 +254,8 @@ Multiple \fB\-K\fP options can be used to report more than a single key. |
286 |
+ |
287 |
+ .nf |
288 |
+ exiv2 \-K Exif.Photo.DateTimeDigitized -K Exif.Photo.DateTimeOriginal \-pt R.jpg |
289 |
+-Exif.Photo.DateTimeOriginal Ascii 20 2011:09:18 16:25:48 |
290 |
+-Exif.Photo.DateTimeDigitized Ascii 20 2011:09:18 16:25:48 |
291 |
++Exif.Photo.DateTimeOriginal Ascii 20 2011:09:18 16:25:48 |
292 |
++Exif.Photo.DateTimeDigitized Ascii 20 2011:09:18 16:25:48 |
293 |
+ .fi |
294 |
+ .TP |
295 |
+ .B \-n \fIenc\fP |
296 |
+@@ -594,17 +605,24 @@ You obtain the lensID for your camera with the command: |
297 |
+ .nf |
298 |
+ .sp 1 |
299 |
+ $ exiv2 -pv --grep lens/i http://clanmills.com/Stonehenge.jpg |
300 |
+-0x0083 Nikon3 LensType Byte 1 14 |
301 |
+-0x0084 Nikon3 Lens Rational 4 180/10 2500/10 35/10 63/10 |
302 |
+-0x008b Nikon3 LensFStops Undefined 4 55 1 12 0 |
303 |
+-0x000c NikonLd3 LensIDNumber Byte 1 146 <--- This number |
304 |
+-0x000d NikonLd3 LensFStops Byte 1 55 |
305 |
++0x0083 Nikon3 LensType Byte 1 14 |
306 |
++0x0084 Nikon3 Lens Rational 4 180/10 2500/10 35/10 63/10 |
307 |
++0x008b Nikon3 LensFStops Undefined 4 55 1 12 0 |
308 |
++0x000c NikonLd3 LensIDNumber Byte 1 146 <--- This number |
309 |
++0x000d NikonLd3 LensFStops Byte 1 55 |
310 |
+ .br |
311 |
+ .ne 40 |
312 |
+ .SH EXAMPLES |
313 |
+ .TP |
314 |
+ exiv2 *.jpg |
315 |
+-Prints a summary of the Exif information for all JPEG files in the directory. |
316 |
++Prints a summary of the Exif information for all JPEG files in the directory. The summary report is rather brief and presentation does not use the Family.Group.Tag convention. |
317 |
++ |
318 |
++If you use --grep pattern, the default becomes -pa. See -g/grep above. |
319 |
++ |
320 |
++.nf |
321 |
++$ exiv2 -g Date http://clanmills.com/Stonehenge.jpg |
322 |
++ |
323 |
++.fi |
324 |
+ .TP |
325 |
+ exiv2 \-pi image.jpg |
326 |
+ Prints the IPTC metadata of the image. |
327 |
|
328 |
diff --git a/media-gfx/exiv2/files/exiv2-0.27.1-system-cmakemoduledir1.patch b/media-gfx/exiv2/files/exiv2-0.27.1-system-cmakemoduledir1.patch |
329 |
new file mode 100644 |
330 |
index 00000000000..77a68437502 |
331 |
--- /dev/null |
332 |
+++ b/media-gfx/exiv2/files/exiv2-0.27.1-system-cmakemoduledir1.patch |
333 |
@@ -0,0 +1,41 @@ |
334 |
+From 78676b2a025023ab3de2d094e0798ed64ef7df97 Mon Sep 17 00:00:00 2001 |
335 |
+From: Robin Mills <robin@×××××××××.com> |
336 |
+Date: Sat, 27 Apr 2019 11:18:22 +0100 |
337 |
+Subject: [PATCH] Fix #798 |
338 |
+ |
339 |
+--- |
340 |
+ README.md | 2 +- |
341 |
+ releasenotes/CYGWIN/ReadMe.txt | 17 +---------------- |
342 |
+ releasenotes/Darwin/ReadMe.txt | 6 ++---- |
343 |
+ releasenotes/Linux/ReadMe.txt | 2 +- |
344 |
+ releasenotes/MinGW/ReadMe.txt | 2 +- |
345 |
+ releasenotes/msvc/ReadMe.txt | 2 +- |
346 |
+ src/CMakeLists.txt | 2 +- |
347 |
+ 7 files changed, 8 insertions(+), 25 deletions(-) |
348 |
+ |
349 |
+diff --git a/README.md b/README.md |
350 |
+index 6e9f50a94..92cca39e6 100644 |
351 |
+--- a/README.md |
352 |
++++ b/README.md |
353 |
+@@ -189,7 +189,7 @@ project(exifprint VERSION 0.0.1 LANGUAGES CXX) |
354 |
+ set(CMAKE_CXX_STANDARD 11) |
355 |
+ set(CMAKE_CXX_EXTENSIONS OFF) |
356 |
+ |
357 |
+-find_package(exiv2 REQUIRED CONFIG NAMES exiv2) # search ${CMAKE_INSTALL_PREFIX}/lib/exiv2/cmake/ |
358 |
++find_package(exiv2 REQUIRED CONFIG NAMES exiv2) # search ${CMAKE_INSTALL_PREFIX}/lib/cmake/exiv2 |
359 |
+ add_executable(exifprint ../samples/exifprint.cpp) # compile this |
360 |
+ target_link_libraries(exifprint exiv2lib) # link exiv2lib |
361 |
+ |
362 |
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt |
363 |
+index 340870048..976327775 100644 |
364 |
+--- a/src/CMakeLists.txt |
365 |
++++ b/src/CMakeLists.txt |
366 |
+@@ -239,7 +239,7 @@ install(FILES |
367 |
+ ${CMAKE_BINARY_DIR}/exiv2lib_export.h |
368 |
+ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/exiv2) |
369 |
+ |
370 |
+-install(EXPORT exiv2Config DESTINATION "${CMAKE_INSTALL_LIBDIR}/exiv2/cmake") |
371 |
++install(EXPORT exiv2Config DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/exiv2") |
372 |
+ |
373 |
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/exiv2ConfigVersion.cmake DESTINATION "${CMAKE_INSTALL_LIBDIR}/exiv2/cmake") |
374 |
+ |
375 |
|
376 |
diff --git a/media-gfx/exiv2/files/exiv2-0.27.1-system-cmakemoduledir2.patch b/media-gfx/exiv2/files/exiv2-0.27.1-system-cmakemoduledir2.patch |
377 |
new file mode 100644 |
378 |
index 00000000000..1770449564a |
379 |
--- /dev/null |
380 |
+++ b/media-gfx/exiv2/files/exiv2-0.27.1-system-cmakemoduledir2.patch |
381 |
@@ -0,0 +1,28 @@ |
382 |
+From 6819f2ac456c57291f94cc1f4db13ce134eed468 Mon Sep 17 00:00:00 2001 |
383 |
+From: Andreas Sturmlechner <asturm@g.o> |
384 |
+Date: Sun, 23 Jun 2019 19:32:29 +0200 |
385 |
+Subject: [PATCH] Fix install path of exiv2ConfigVersion.cmake |
386 |
+ |
387 |
+This seems to have been caused by duplicate work between master branch |
388 |
+and 0.27-maintenance branch, as commit 3b48249eeb350301dfb3efa3ba6f7d7b162455be |
389 |
+had already got that right. |
390 |
+--- |
391 |
+ src/CMakeLists.txt | 2 +- |
392 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
393 |
+ |
394 |
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt |
395 |
+index 1d0ccee4..05ce4e14 100644 |
396 |
+--- a/src/CMakeLists.txt |
397 |
++++ b/src/CMakeLists.txt |
398 |
+@@ -245,7 +245,7 @@ install(FILES |
399 |
+ |
400 |
+ install(EXPORT exiv2Config DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/exiv2") |
401 |
+ |
402 |
+-install(FILES ${CMAKE_CURRENT_BINARY_DIR}/exiv2ConfigVersion.cmake DESTINATION "${CMAKE_INSTALL_LIBDIR}/exiv2/cmake") |
403 |
++install(FILES ${CMAKE_CURRENT_BINARY_DIR}/exiv2ConfigVersion.cmake DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/exiv2") |
404 |
+ |
405 |
+ # ****************************************************************************** |
406 |
+ # exiv2 application |
407 |
+-- |
408 |
+2.22.0 |
409 |
+ |
410 |
|
411 |
diff --git a/media-gfx/exiv2/files/exiv2-0.27.1-system-libssh-config.patch b/media-gfx/exiv2/files/exiv2-0.27.1-system-libssh-config.patch |
412 |
new file mode 100644 |
413 |
index 00000000000..555314ae932 |
414 |
--- /dev/null |
415 |
+++ b/media-gfx/exiv2/files/exiv2-0.27.1-system-libssh-config.patch |
416 |
@@ -0,0 +1,93 @@ |
417 |
+From e85ce17fc91e11eff26c6f5a89125505b7db5fd3 Mon Sep 17 00:00:00 2001 |
418 |
+From: Andreas Sturmlechner <asturm@g.o> |
419 |
+Date: Sun, 23 Jun 2019 19:50:01 +0200 |
420 |
+Subject: [PATCH 1/2] Switch to libssh's own libssh-config.cmake |
421 |
+ |
422 |
+This is provided by libssh since 2013. |
423 |
+--- |
424 |
+ cmake/findDependencies.cmake | 2 +- |
425 |
+ src/CMakeLists.txt | 4 ++-- |
426 |
+ 2 files changed, 3 insertions(+), 3 deletions(-) |
427 |
+ |
428 |
+diff --git a/cmake/findDependencies.cmake b/cmake/findDependencies.cmake |
429 |
+index 12d47525..52760185 100644 |
430 |
+--- a/cmake/findDependencies.cmake |
431 |
++++ b/cmake/findDependencies.cmake |
432 |
+@@ -20,7 +20,7 @@ if( EXIV2_ENABLE_WEBREADY ) |
433 |
+ endif() |
434 |
+ |
435 |
+ if( EXIV2_ENABLE_SSH ) |
436 |
+- find_package( SSH REQUIRED) |
437 |
++ find_package(libssh CONFIG REQUIRED) |
438 |
+ endif( ) |
439 |
+ endif( ) |
440 |
+ |
441 |
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt |
442 |
+index 1d0ccee4..b532fc7b 100644 |
443 |
+--- a/src/CMakeLists.txt |
444 |
++++ b/src/CMakeLists.txt |
445 |
+@@ -174,8 +174,8 @@ target_include_directories(exiv2lib_int PUBLIC |
446 |
+ if (EXIV2_ENABLE_WEBREADY) |
447 |
+ |
448 |
+ if( EXIV2_ENABLE_SSH ) |
449 |
+- target_include_directories(exiv2lib SYSTEM PUBLIC ${SSH_INCLUDE_DIR} ) |
450 |
+- target_link_libraries( exiv2lib PUBLIC ${SSH_LIBRARIES}) |
451 |
++ target_include_directories(exiv2lib SYSTEM PUBLIC ${LIBSSH_INCLUDE_DIR}) |
452 |
++ target_link_libraries(exiv2lib PUBLIC ${LIBSSH_LIBRARIES}) |
453 |
+ endif() |
454 |
+ |
455 |
+ if( EXIV2_ENABLE_CURL ) |
456 |
+-- |
457 |
+2.22.0 |
458 |
+ |
459 |
+ |
460 |
+From 89d8160a410c2c526ad021fd456accc709cae520 Mon Sep 17 00:00:00 2001 |
461 |
+From: Andreas Sturmlechner <asturm@g.o> |
462 |
+Date: Sun, 23 Jun 2019 19:50:44 +0200 |
463 |
+Subject: [PATCH 2/2] Drop now obsolete FindSSH.cmake |
464 |
+ |
465 |
+--- |
466 |
+ cmake/FindSSH.cmake | 31 ------------------------------- |
467 |
+ 1 file changed, 31 deletions(-) |
468 |
+ delete mode 100644 cmake/FindSSH.cmake |
469 |
+ |
470 |
+diff --git a/cmake/FindSSH.cmake b/cmake/FindSSH.cmake |
471 |
+deleted file mode 100644 |
472 |
+index 2a6fa378..00000000 |
473 |
+--- a/cmake/FindSSH.cmake |
474 |
++++ /dev/null |
475 |
+@@ -1,31 +0,0 @@ |
476 |
+-# - Find libssh |
477 |
+-# Find the native SSH headers and libraries. |
478 |
+-# |
479 |
+-# SSH_INCLUDE_DIRS - where to find libssh.h, etc. |
480 |
+-# SSH_LIBRARIES - List of libraries when using libssh. |
481 |
+-# SSH_FOUND - True if libssh found. |
482 |
+-# |
483 |
+-# Redistribution and use is allowed according to the terms of the BSD license. |
484 |
+-# For details see the accompanying COPYING-CMAKE-SCRIPTS file. |
485 |
+- |
486 |
+-# Look for the header file. |
487 |
+-FIND_PATH(SSH_INCLUDE_DIR NAMES libssh/libssh.h) |
488 |
+- |
489 |
+-# Look for the library. |
490 |
+-FIND_LIBRARY(SSH_LIBRARY NAMES ssh libssh) |
491 |
+- |
492 |
+-# handle the QUIETLY and REQUIRED arguments and set SSH_FOUND to TRUE if |
493 |
+-# all listed variables are TRUE |
494 |
+-INCLUDE(FindPackageHandleStandardArgs) |
495 |
+-FIND_PACKAGE_HANDLE_STANDARD_ARGS(SSH DEFAULT_MSG SSH_LIBRARY SSH_INCLUDE_DIR) |
496 |
+- |
497 |
+-# Copy the results to the output variables. |
498 |
+-IF(SSH_FOUND) |
499 |
+- SET(SSH_LIBRARIES ${SSH_LIBRARY}) |
500 |
+- SET(SSH_INCLUDE_DIRS ${SSH_INCLUDE_DIR}) |
501 |
+-ELSE(SSH_FOUND) |
502 |
+- SET(SSH_LIBRARIES) |
503 |
+- SET(SSH_INCLUDE_DIRS) |
504 |
+-ENDIF(SSH_FOUND) |
505 |
+- |
506 |
+-MARK_AS_ADVANCED(SSH_INCLUDE_DIR SSH_LIBRARY) |
507 |
+-- |
508 |
+2.22.0 |
509 |
+ |