Description: remove reading version of libgit2 from the embedded copy
 since it has been stripped out
 This is essentially reverting the following commit from upstream:
 https://github.com/libgit2/rugged/commit/fa914748108b3c834928681ddc84556ed3790ce0.patch
Author: Cédric Boutillier <boutil@debian.org>
Last-Update: 2015-09-013

Index: ruby-rugged/ext/rugged/extconf.rb
===================================================================
--- ruby-rugged.orig/ext/rugged/extconf.rb
+++ ruby-rugged/ext/rugged/extconf.rb
@@ -31,26 +31,11 @@ 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"
+  try_compile(<<-SRC) or abort "libgit2 version is not compatible"
 #include <git2/version.h>
 
-#if LIBGIT2_VER_MAJOR != #{major} || LIBGIT2_VER_MINOR != #{minor}
+#if LIBGIT2_SOVERSION != 24
 #error libgit2 version is not compatible
 #endif
   SRC
