File allow_newer_libgit.patch of Package rubygem-rugged

Index: rugged-0.28.1/ext/rugged/extconf.rb
===================================================================
--- rugged-0.28.1.orig/ext/rugged/extconf.rb
+++ rugged-0.28.1/ext/rugged/extconf.rb
@@ -63,29 +63,29 @@ if arg_config("--use-system-libraries",
 
   dir_config('git2').any? or pkg_config('libgit2')
 
-  major = minor = nil
-
-  File.readlines(File.join(LIBGIT2_DIR, "include", "git2", "version.h")).each do |line|
-    if !major && (matches = line.match(/^#define LIBGIT2_VER_MAJOR ([0-9]+)$/))
-      major = matches[1]
-      next
-    end
-
-    if !minor && (matches = line.match(/^#define LIBGIT2_VER_MINOR ([0-9]+)$/))
-      minor = matches[1]
-      next
-    end
-
-    break if major && minor
-  end
-
-  try_compile(<<-SRC) or abort "libgit2 version is not compatible, expected ~> #{major}.#{minor}.0"
-#include <git2/version.h>
-
-#if LIBGIT2_VER_MAJOR != #{major} || LIBGIT2_VER_MINOR != #{minor}
-#error libgit2 version is not compatible
-#endif
-  SRC
+#  major = minor = nil
+#
+#   File.readlines(File.join(LIBGIT2_DIR, "include", "git2", "version.h")).each do |line|
+#     if !major && (matches = line.match(/^#define LIBGIT2_VER_MAJOR ([0-9]+)$/))
+#       major = matches[1]
+#       next
+#     end
+#
+#     if !minor && (matches = line.match(/^#define LIBGIT2_VER_MINOR ([0-9]+)$/))
+#       minor = matches[1]
+#       next
+#     end
+#
+#     break if major && minor
+#   end
+#
+#   try_compile(<<-SRC) or abort "libgit2 version is not compatible, expected ~> #{major}.#{minor}.0"
+# #include <git2/version.h>
+#
+# #if LIBGIT2_VER_MAJOR != #{major} || LIBGIT2_VER_MINOR != #{minor}
+# #error libgit2 version is not compatible
+# #endif
+#   SRC
 else
   if !find_executable('cmake')
     abort "ERROR: CMake is required to build Rugged."