summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <andreas.sturmlechner@gmail.com>2015-11-22 19:59:39 +0100
committerMichael Palimaka <kensington@gentoo.org>2015-12-06 20:45:41 +1100
commitffe20f2909f49bc02c315c276510199b6e705882 (patch)
treef75dcf99429d34f600bf0e9d76dfb7e905edb8ef /kde-apps/gwenview
parentkde-apps: Move 15.08.3 kdeartwork and kdegraphics from overlay (diff)
downloadgentoo-ffe20f2909f49bc02c315c276510199b6e705882.tar.gz
gentoo-ffe20f2909f49bc02c315c276510199b6e705882.tar.bz2
gentoo-ffe20f2909f49bc02c315c276510199b6e705882.zip
kde-apps: Move 15.08.3 kdeaccessibility and kdegames from overlay
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'kde-apps/gwenview')
-rw-r--r--kde-apps/gwenview/files/gwenview-15.08.3-fix-libkipi.patch62
1 files changed, 62 insertions, 0 deletions
diff --git a/kde-apps/gwenview/files/gwenview-15.08.3-fix-libkipi.patch b/kde-apps/gwenview/files/gwenview-15.08.3-fix-libkipi.patch
new file mode 100644
index 000000000000..a66eeb3f6b62
--- /dev/null
+++ b/kde-apps/gwenview/files/gwenview-15.08.3-fix-libkipi.patch
@@ -0,0 +1,62 @@
+diff --git a/app/kipiinterface.h b/app/kipiinterface.h
+index d3961e9..f8a2f8e 100644
+--- a/app/kipiinterface.h
++++ b/app/kipiinterface.h
+@@ -26,9 +26,17 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Cambridge, MA 02110-1301, USA
+ #include <kipi/interface.h>
+ #include <kipi/imagecollectionshared.h>
+ #include <kipi/plugin.h>
++#include <libkipi_version.h>
+
+ class QAction;
+
++#ifndef KIPI_VERSION_MAJOR
++#error KIPI_VERSION_MAJOR should be provided.
++#endif
++#if KIPI_VERSION_MAJOR >= 5
++#define GWENVIEW_KIPI_WITH_CREATE_METHODS
++#endif
++
+ namespace Gwenview
+ {
+
+@@ -60,6 +68,12 @@ public:
+
+ bool isLoadingFinished() const;
+
++#ifdef GWENVIEW_KIPI_WITH_CREATE_METHODS
++ virtual KIPI::FileReadWriteLock* createReadWriteLock(const QUrl& url) const;
++ virtual KIPI::MetadataProcessor* createMetadataProcessor() const;
++ virtual KIPI::RawProcessor* createRawProcessor() const;
++#endif
++
+ Q_SIGNALS:
+ void loadingFinished();
+
+diff --git a/app/kipiinterface.cpp b/app/kipiinterface.cpp
+index 8f71700..88a212b 100644
+--- a/app/kipiinterface.cpp
++++ b/app/kipiinterface.cpp
+@@ -457,4 +457,22 @@ void KIPIInterface::slotDirectoryChanged()
+ emit currentAlbumChanged(true);
+ }
+
++#ifdef GWENVIEW_KIPI_WITH_CREATE_METHODS
++KIPI::FileReadWriteLock* KIPIInterface::createReadWriteLock(const QUrl& url) const
++{
++ return NULL;
++}
++
++KIPI::MetadataProcessor* KIPIInterface::createMetadataProcessor() const
++{
++ return NULL;
++}
++
++KIPI::RawProcessor* KIPIInterface::createRawProcessor() const
++{
++ return NULL;
++}
++#endif
++
++
+ } //namespace