Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/kde-sunset:master commit in: kde-apps/libkexiv2/files/, kde-apps/libkexiv2/
Date: Sun, 16 Aug 2020 16:45:21
Message-Id: 1597596288.20ba04676102f3046057353632426af42da72536.asturm@gentoo
1 commit: 20ba04676102f3046057353632426af42da72536
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 16 16:23:49 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 16 16:44:48 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/kde-sunset.git/commit/?id=20ba0467
7
8 kde-apps/libkexiv2: Add support for exiv-0.27
9
10 Thanks-to: Tommy Yu <y <AT> metatoaster.com>
11 Package-Manager: Portage-3.0.2, Repoman-2.3.23
12 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
13
14 kde-apps/libkexiv2/files/exiv-0.27.patch | 21 +++++++++++++++++++++
15 kde-apps/libkexiv2/libkexiv2-4.14.3.ebuild | 6 ++++--
16 2 files changed, 25 insertions(+), 2 deletions(-)
17
18 diff --git a/kde-apps/libkexiv2/files/exiv-0.27.patch b/kde-apps/libkexiv2/files/exiv-0.27.patch
19 new file mode 100644
20 index 00000000..b82370c8
21 --- /dev/null
22 +++ b/kde-apps/libkexiv2/files/exiv-0.27.patch
23 @@ -0,0 +1,21 @@
24 +--- libkexiv2/kexiv2_p.h.orig 2018-12-24 08:09:07.000000000 -0800
25 ++++ libkexiv2/kexiv2_p.h 2018-12-24 08:10:00.000000000 -0800
26 +@@ -85,6 +85,7 @@
27 + #include <exiv2/types.hpp>
28 + #include <exiv2/exif.hpp>
29 + #include <exiv2/xmpsidecar.hpp>
30 ++#include <exiv2/version.hpp>
31 +
32 + // Check if Exiv2 support XMP
33 +
34 +--- libkexiv2/kexiv2exif.cpp.orig 2014-10-06 23:07:22.000000000 -0700
35 ++++ libkexiv2/kexiv2exif.cpp 2018-12-24 08:06:26.000000000 -0800
36 +@@ -986,7 +986,7 @@
37 +
38 + if (pos == d->exifMetadata().end() || pos->count() != 1 || pos->toLong() != 0)
39 + {
40 +- throw Exiv2::Error(1, "Exif.Image.NewSubfileType missing or not set as main image");
41 ++ throw Exiv2::Error(Exiv2::kerErrorMessage, "Exif.Image.NewSubfileType missing or not set as main image");
42 + }
43 +
44 + // Remove sub-IFD tags
45
46 diff --git a/kde-apps/libkexiv2/libkexiv2-4.14.3.ebuild b/kde-apps/libkexiv2/libkexiv2-4.14.3.ebuild
47 index d24a6e11..950ce572 100644
48 --- a/kde-apps/libkexiv2/libkexiv2-4.14.3.ebuild
49 +++ b/kde-apps/libkexiv2/libkexiv2-4.14.3.ebuild
50 @@ -1,4 +1,4 @@
51 -# Copyright 1999-2015 Gentoo Foundation
52 +# Copyright 1999-2020 Gentoo Authors
53 # Distributed under the terms of the GNU General Public License v2
54
55 EAPI=5
56 @@ -10,7 +10,9 @@ KEYWORDS="amd64 ~arm ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux"
57 IUSE="debug +xmp"
58
59 DEPEND="
60 - >=media-gfx/exiv2-0.20:=[xmp=]
61 + >=media-gfx/exiv2-0.27:=[xmp=]
62 virtual/jpeg:0
63 "
64 RDEPEND="${DEPEND}"
65 +
66 +PATCHES=( "${FILESDIR}/exiv-0.27.patch" )