Description: Build with EDS 3.11.2 API
Author: Stephen Kitt <skitt@debian.org>

--- a/src/mn-evolution-folder-tree-server.gob
+++ b/src/mn-evolution-folder-tree-server.gob
@@ -22,7 +22,11 @@
 #include <libedataserver/eds-version.h>
 #if EDS_CHECK_VERSION(2,91,0)
 #if EDS_CHECK_VERSION(3,3,0)
+#if EDS_CHECK_VERSION(3,11,2)
+#include <libemail-engine/libemail-engine.h>
+#else
 #include <libemail-engine/e-mail-session.h>
+#endif
 #else
 #include <mail/e-mail-session.h>
 #endif
@@ -38,7 +42,11 @@
 #endif
 #if EDS_CHECK_VERSION(3,1,0)
 #if EDS_CHECK_VERSION(3,3,0)
+#if EDS_CHECK_VERSION(3,11,2)
+#include <libemail-engine/libemail-engine.h>
+#else
 #include <libemail-engine/e-mail-folder-utils.h>
+#endif
 #else
 #include <mail/e-mail-folder-utils.h>
 #endif
--- a/src/mn-evolution-plugin.c
+++ b/src/mn-evolution-plugin.c
@@ -28,8 +28,12 @@
 #include <libedataserver/eds-version.h>
 #include <mail/em-event.h>
 #if EDS_CHECK_VERSION(3,3,0)
+#if EDS_CHECK_VERSION(3,11,2)
+#include <libemail-engine/libemail-engine.h>
+#else
 #include <libemail-engine/mail-tools.h>
 #include <libemail-engine/e-mail-folder-utils.h>
+#endif
 #else
 #include <mail/mail-tools.h>
 #include <mail/e-mail-folder-utils.h>
--- a/src/mn-evolution-server.gob
+++ b/src/mn-evolution-server.gob
@@ -40,7 +40,11 @@
 #include <mail/mail-session.h>
 #endif
 #if EDS_CHECK_VERSION(3,3,0)
+#if EDS_CHECK_VERSION(3,11,2)
+#include <libemail-engine/libemail-engine.h>
+#else
 #include <libemail-engine/mail-tools.h>
+#endif
 #else
 #include <mail/mail-tools.h>
 #endif
--- a/jbsrc/lib/src/extras/jb-evolution-plugin.c
+++ b/jbsrc/lib/src/extras/jb-evolution-plugin.c
@@ -42,7 +42,9 @@
   if (! minversion)
     minversion = "2.12";
 
-#if EDS_CHECK_VERSION(3,3,0)
+#if EDS_CHECK_VERSION(3,11,2)
+  packages = g_strdup_printf("evolution-mail-3.0 >= %s libemail-engine", minversion);
+#elif EDS_CHECK_VERSION(3,3,0)
   packages = g_strdup_printf("evolution-plugin-3.0 >= %s libemail-engine", minversion);
 #else
   packages = g_strdup_printf("evolution-plugin-3.0 >= %s", minversion);
@@ -55,10 +57,15 @@
 
   if (! strcmp(jb_variable_get_string("evolution-plugin-dir"), "autodetect"))
     {
-      char *plugindir;
+      char *plugindir, *privlibdir;
 
       jb_message_checking("for the Evolution plugin directory");
+#if EDS_CHECK_VERSION(3,11,2)
+      privlibdir = jb_get_package_variable("evolution-mail-3.0", "privlibdir");
+      plugindir = privlibdir ? g_strdup_printf("%s/plugins", privlibdir) : plugindir;
+#else
       plugindir = jb_get_package_variable("evolution-plugin-3.0", "plugindir");
+#endif
       jb_message_result_string(plugindir ? plugindir : "not found");
 
       if (! plugindir)
