kde-apps/gwenview: Fix build with media-libs/exiv2-0.27.1
authorAndreas Sturmlechner <asturm@gentoo.org>
Sun, 12 May 2019 06:53:57 +0000 (08:53 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Mon, 13 May 2019 00:12:54 +0000 (02:12 +0200)
Closes: https://bugs.gentoo.org/685682
Package-Manager: Portage-2.3.66, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
kde-apps/gwenview/files/gwenview-19.04.1-exiv2-0.27.1.patch [new file with mode: 0644]
kde-apps/gwenview/gwenview-19.04.1.ebuild

diff --git a/kde-apps/gwenview/files/gwenview-19.04.1-exiv2-0.27.1.patch b/kde-apps/gwenview/files/gwenview-19.04.1-exiv2-0.27.1.patch
new file mode 100644 (file)
index 0000000..f95f26c
--- /dev/null
@@ -0,0 +1,34 @@
+From 3f3e9a546fa5e9a335ad3dc9afc805fd4d2809fd Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner <andreas.sturmlechner@gmail.com>
+Date: Sun, 12 May 2019 08:40:53 +0200
+Subject: [PATCH] Fix build with exiv2-0.27.1
+
+Summary: Upstream is moving things around between headers. While they are busy doing that, they recommend including exiv2.hpp.
+
+Reviewers: #gwenview
+
+Tags: #gwenview
+
+Differential Revision: https://phabricator.kde.org/D21148
+---
+ lib/imagemetainfomodel.cpp | 4 +---
+ 1 file changed, 1 insertion(+), 3 deletions(-)
+
+diff --git a/lib/imagemetainfomodel.cpp b/lib/imagemetainfomodel.cpp
+index d7b89ab2..58f1c13d 100644
+--- a/lib/imagemetainfomodel.cpp
++++ b/lib/imagemetainfomodel.cpp
+@@ -33,9 +33,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ #include <KFormat>
+ // Exiv2
+-#include <exiv2/exif.hpp>
+-#include <exiv2/image.hpp>
+-#include <exiv2/iptc.hpp>
++#include <exiv2/exiv2.hpp>
+ // Local
+ #ifdef HAVE_FITS
+-- 
+2.21.0
+
index 4bc3b01ee8061f8fce2c9ee707bd5068260ea4bf..d4b54e523ffbe623cb37e2a76b22643500c0c7c9 100644 (file)
@@ -71,6 +71,8 @@ RDEPEND="${COMMON_DEPEND}
        kipi? ( media-plugins/kipi-plugins:5 )
 "
 
+PATCHES=( "${FILESDIR}/${P}-exiv2-0.27.1.patch" )
+
 src_prepare() {
        kde5_src_prepare
        if ! use mpris; then