[tracker/evo] build: Support build with evolution 2.91.6 and later
- From: Jürg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/evo] build: Support build with evolution 2.91.6 and later
- Date: Wed, 30 Mar 2011 14:54:46 +0000 (UTC)
commit f4b59c0cf25c412bd4e30c912acad90ef6626ba2
Author: Jürg Billeter <j bitron ch>
Date: Wed Mar 30 16:44:51 2011 +0200
build: Support build with evolution 2.91.6 and later
Fixes GB#645934.
configure.ac | 34 ++++++++++++++++++++++------------
1 files changed, 22 insertions(+), 12 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 27391d8..0ceb38c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -348,11 +348,9 @@ PKG_CHECK_MODULES(TRACKER_MINER_FS, [$TRACKER_MINER_FS_REQUIRED])
TRACKER_MINER_FS_LIBS="$TRACKER_MINER_FS_LIBS -lz -lm"
# Check requirements for tracker-miner-evolution
-evolution_plugin_name="evolution-plugin"
-
TRACKER_MINER_EVOLUTION_REQUIRED="glib-2.0 >= $GLIB_REQUIRED
- evolution-shell >= $EVO_SHELL_REQUIRED
- evolution-plugin >= $EVO_REQUIRED
+ evolution-shell-3.0
+ evolution-plugin-3.0
evolution-data-server-1.2 >= $EDS_REQUIRED
camel-1.2 >= $CAMEL_REQUIRED"
@@ -360,6 +358,26 @@ PKG_CHECK_MODULES(TRACKER_MINER_EVOLUTION, [$TRACKER_MINER_EVOLUTION_REQUIRED],
[have_tracker_miner_evolution=yes],
[have_tracker_miner_evolution=no])
+if test "x$have_tracker_miner_evolution" = "xyes"; then
+ evolution_plugin_name="evolution-plugin-3.0"
+
+ AC_DEFINE(EVOLUTION_SHELL_2_91, 1, [Use new evolution-shell API])
+else
+ evolution_plugin_name="evolution-plugin"
+
+
+ TRACKER_MINER_EVOLUTION_REQUIRED="glib-2.0 >= $GLIB_REQUIRED
+ evolution-shell >= $EVO_SHELL_REQUIRED
+ evolution-plugin >= $EVO_REQUIRED
+ evolution-data-server-1.2 >= $EDS_REQUIRED
+ camel-1.2 >= $CAMEL_REQUIRED"
+
+ PKG_CHECK_MODULES(TRACKER_MINER_EVOLUTION, [$TRACKER_MINER_EVOLUTION_REQUIRED],
+ [have_tracker_miner_evolution=yes],
+ [have_tracker_miner_evolution=no])
+
+fi
+
# Check requirements for tracker-miner-rss
TRACKER_MINER_RSS_REQUIRED="glib-2.0 >= $GLIB_REQUIRED
libgrss-0 >= $LIBGRSS_REQUIRED"
@@ -1114,10 +1132,6 @@ fi
if test "x$have_tracker_miner_evolution" = "xyes"; then
- PKG_CHECK_MODULES(MINER_EVOLUTION_SHELL, evolution-shell > 2.91,
- [miner_evolution_2_91=yes],
- [miner_evolution_2_91=no])
-
AC_ARG_WITH([evolution_plugin_dir],
AS_HELP_STRING([--with-evolution-plugin-dir],
[path to Evolution plugin directory]))
@@ -1130,10 +1144,6 @@ if test "x$have_tracker_miner_evolution" = "xyes"; then
if test -z $tracker_miner_evolution_install_dir; then
AC_MSG_ERROR([Couldn't find evolution plugin dir, consider using --with-evolution-plugin-dir.])
fi
-
- if test "x$miner_evolution_2_91" = "xyes"; then
- AC_DEFINE(EVOLUTION_SHELL_2_91, 1, [Use new evolution-shell API])
- fi
fi
TRACKER_MINER_EVOLUTION_INSTALL_DIR=$tracker_miner_evolution_install_dir
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]