* [gentoo-commits] gentoo-x86 commit in kde-misc/krename/files: 4.0.0-fix_exiv2_support.patch
@ 2009-10-20 17:05 Tomas Chvatal (scarabeus)
0 siblings, 0 replies; only message in thread
From: Tomas Chvatal (scarabeus) @ 2009-10-20 17:05 UTC (permalink / raw
To: gentoo-commits
scarabeus 09/10/20 17:05:14
Added: 4.0.0-fix_exiv2_support.patch
Log:
Add patch for exiv2.
(Portage version: 2.2_rc46/cvs/Linux x86_64)
Revision Changes Path
1.1 kde-misc/krename/files/4.0.0-fix_exiv2_support.patch
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-misc/krename/files/4.0.0-fix_exiv2_support.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-misc/krename/files/4.0.0-fix_exiv2_support.patch?rev=1.1&content-type=text/plain
Index: 4.0.0-fix_exiv2_support.patch
===================================================================
diff -urN krename-4.0.1.old/CMakeLists.txt krename-4.0.1/CMakeLists.txt
--- krename-4.0.1.old/CMakeLists.txt 2009-10-20 18:51:45.000000000 +0200
+++ krename-4.0.1/CMakeLists.txt 2009-10-20 18:59:12.000000000 +0200
@@ -34,6 +34,7 @@
macro_log_feature(EXIV2_FOUND "Exiv2" "A library to access image metadata" "http://www.exiv2.org" FALSE "")
IF(EXIV2_FOUND)
+ ADD_DEFINITIONS( -DWITH_EXIV2 )
MESSAGE("-- The exiv2 library was found. KRename will be built with exiv2 support.")
ELSE(EXIV2_FOUND)
MESSAGE("-- The exiv2 library was not found. KRename will not be built with exiv2 support.")
diff -urN krename-4.0.1.old/src/CMakeLists.txt krename-4.0.1/src/CMakeLists.txt
--- krename-4.0.1.old/src/CMakeLists.txt 2009-10-20 18:51:45.000000000 +0200
+++ krename-4.0.1/src/CMakeLists.txt 2009-10-20 18:55:35.000000000 +0200
@@ -25,7 +25,6 @@
batchrenamer.cpp
customdialog.cpp
datetimeplugin.cpp
- exiv2plugin.cpp
exthistorycombo.cpp
filedialogextwidget.cpp
fileplugin.cpp
@@ -51,6 +50,13 @@
translitplugin.cpp
)
+IF ( EXIV2_FOUND )
+ SET(krename_SRCS
+ ${krename_SRCS}
+ exiv2plugin.cpp
+ )
+ENDIF ( EXIV2_FOUND )
+
IF ( TAGLIB_FOUND )
SET(krename_SRCS
${krename_SRCS}
diff -urN krename-4.0.1.old/src/pluginloader.cpp krename-4.0.1/src/pluginloader.cpp
--- krename-4.0.1.old/src/pluginloader.cpp 2009-10-20 18:51:45.000000000 +0200
+++ krename-4.0.1/src/pluginloader.cpp 2009-10-20 18:58:44.000000000 +0200
@@ -21,7 +21,9 @@
#include "plugin.h"
#include "datetimeplugin.h"
+#ifdef WITH_EXIV2
#include "exiv2plugin.h"
+#endif
#include "fileplugin.h"
#include "increasecounterplugin.h"
#include "permissionsplugin.h"
@@ -125,7 +127,7 @@
#ifndef _WIN32
m_plugins.append( new DateTimePlugin( this ) );
#endif // _WIN32
-#ifdef HAVE_EXIV2
+#ifdef WITH_EXIV2
m_plugins.append( new Exiv2Plugin( this ) );
#endif // HAVE_EXIV2
m_plugins.append( new IncreaseCounterPlugin( this ) );
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-10-20 17:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-20 17:05 [gentoo-commits] gentoo-x86 commit in kde-misc/krename/files: 4.0.0-fix_exiv2_support.patch Tomas Chvatal (scarabeus)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox