#! /bin/sh /usr/share/dpatch/dpatch-run
## 08_disable_evolution_sharp.dpatch by Jo Shields <directhex@apebox.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Strip support for Evolution, as Evolution Sharp sucks

@DPATCH@
diff -urNad gfax-0.7.7~/configure.in gfax-0.7.7/configure.in
--- gfax-0.7.7~/configure.in	2010-01-29 11:42:19.603626175 +0000
+++ gfax-0.7.7/configure.in	2010-01-29 11:42:34.791765521 +0000
@@ -67,7 +67,7 @@
 # Gfax needs Gtk# Gnome# GConf#
 #
 PKG_CHECK_MODULES(GFAX, glib-sharp-2.0 gtk-sharp-2.0 gnome-sharp-2.0 gconf-sharp-2.0 gconf-sharp-peditors-2.0
-	glade-sharp-2.0 evolution-sharp)
+	glade-sharp-2.0)
 AC_SUBST(GFAX_LIBS)
 
 AC_OUTPUT([
diff -urNad gfax-0.7.7~/src/Makefile.am gfax-0.7.7/src/Makefile.am
--- gfax-0.7.7~/src/Makefile.am	2010-01-29 11:42:19.603626175 +0000
+++ gfax-0.7.7/src/Makefile.am	2010-01-29 11:44:59.011134807 +0000
@@ -31,7 +31,6 @@
 	hylafax.cs	\
 	main.cs 		\
 	phonebook.cs 		\
-	evolution.cs 	\
 	sendphonebook.cs 
 	
 
diff -urNad gfax-0.7.7~/src/newphonebook.cs gfax-0.7.7/src/newphonebook.cs
--- gfax-0.7.7~/src/newphonebook.cs	2010-01-29 11:42:19.603626175 +0000
+++ gfax-0.7.7/src/newphonebook.cs	2010-01-29 11:43:56.951136400 +0000
@@ -69,8 +69,8 @@
     
             GfaxRadioButton.Active = true;
               
-	        EvolutionRadioButton.Sensitive = true;
             // turn these off until somewhere near supported
+	        EvolutionRadioButton.Sensitive = false;
 			DatabaseRadioButton.Visible = false;
 	        LDAPRadioButton.Visible = false;
 			
@@ -171,7 +171,7 @@
 		private void on_BookDruidPageStandard_next (object o, Gnome.NextClickedArgs args)
 		{
 			// skip next page if active
-			if (EvolutionRadioButton.Active) {
+			/*if (EvolutionRadioButton.Active) {
 				NewPhoneBookDruid.Page = druidpagestandard12;
 
 				EdsPhoneBooks eds = new EdsPhoneBooks();
@@ -185,7 +185,7 @@
 					iter = store.AppendValues(false, enu.Current);
 					EvolutionTreeView.Model = store;
 				}
-			}
+			}*/
 		}
 	}
 }
diff -urNad gfax-0.7.7~/src/phonebook.cs gfax-0.7.7/src/phonebook.cs
--- gfax-0.7.7~/src/phonebook.cs	2010-01-29 11:42:19.603626175 +0000
+++ gfax-0.7.7/src/phonebook.cs	2010-01-29 11:44:16.233657857 +0000
@@ -314,7 +314,7 @@
 				fp.Close();
 			}
 			
-			if ( p.Type == "evolution" ) {
+			/*if ( p.Type == "evolution" ) {
 				EdsPhoneBooks eds = new EdsPhoneBooks();
 				ArrayList ebooks = new ArrayList();
 				ebooks = eds.GetPhoneBooks();
@@ -325,7 +325,7 @@
 						records = eds.GetContacts((string)enu.Current);
 					}
 				}
-			}
+			}*/
 			
 			return records;
 			
