? simplepie_libraries_api_v1.patch
Index: parser_simplepie/parser_simplepie.install
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/feedapi/parser_simplepie/Attic/parser_simplepie.install,v
retrieving revision 1.1.2.6.2.8
diff -u -p -r1.1.2.6.2.8 parser_simplepie.install
--- parser_simplepie/parser_simplepie.install	2 Jul 2009 16:25:27 -0000	1.1.2.6.2.8
+++ parser_simplepie/parser_simplepie.install	21 Sep 2009 18:01:25 -0000
@@ -16,7 +16,12 @@ function parser_simplepie_requirements($
   switch ($phase) {
     case 'install' :
     case 'runtime' :
-      $path = dirname(__FILE__) .'/simplepie.inc';
+      if (module_exists('libraries') && file_exists(libraries_get_path('simplepie') . '/simplepie.inc')) {
+        $path = libraries_get_path('simplepie') . '/simplepie.inc';
+      }
+      else {
+        $path = dirname(__FILE__) .'/simplepie.inc';
+      }
       if (!file_exists($path)) {
         $requirements['parser_simplepie'] = array(
           'title' => $t("FeedAPI SimplePie"),
Index: parser_simplepie/parser_simplepie.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/feedapi/parser_simplepie/parser_simplepie.module,v
retrieving revision 1.6.2.20.2.16
diff -u -p -r1.6.2.20.2.16 parser_simplepie.module
--- parser_simplepie/parser_simplepie.module	2 Jul 2009 16:38:16 -0000	1.6.2.20.2.16
+++ parser_simplepie/parser_simplepie.module	21 Sep 2009 18:01:25 -0000
@@ -213,7 +213,13 @@ function _parser_simplepie_sanitize_cach
  */
 function _parser_simplepie_get_parser($url, $enable_cache = TRUE, $settings = array()) {
   if (!class_exists('SimplePie')) {
-    require_once(drupal_get_path('module', 'parser_simplepie') .'/simplepie.inc');
+    if (module_exists('libraries') && file_exists(libraries_get_path('simplepie') . '/simplepie.inc')) {
+      $path = libraries_get_path('simplepie') . '/simplepie.inc';
+    }
+    else {
+      $path = drupal_get_path('module', 'parser_simplepie') .'/simplepie.inc';
+    }
+    require_once($path);
   }
   $parser = new SimplePie();
   $parser->set_feed_url($url);
