Blame vim-7.3-rubyversion.patch

Karsten Hopp 197132
diff -up vim73/src/configure.in.rubyversion vim73/src/configure.in
Karsten Hopp 197132
--- vim73/src/configure.in.rubyversion	2013-05-08 16:21:11.067927960 +0200
Karsten Hopp 197132
+++ vim73/src/configure.in	2013-05-08 16:31:05.854534820 +0200
Karsten Hopp 197132
@@ -1490,7 +1490,10 @@ if test "$enable_rubyinterp" = "yes" -o
Karsten Hopp 197132
         if test -d "$rubyhdrdir/$rubyarch"; then
Karsten Hopp 197132
           RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyhdrdir/$rubyarch"
Karsten Hopp 197132
         fi
Karsten Hopp 197132
-        rubyversion=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG[['ruby_version']].gsub(/\./, '')[[0,2]]"`
Karsten Hopp 197132
+        rubymajor=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG[['MAJOR']]"`
Karsten Hopp 197132
+        rubyminor=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG[['MINOR']]"`
Karsten Hopp 197132
+        rubyversion="$rubymajor$rubyminor"
Karsten Hopp 197132
+        # rubyversion=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG[['ruby_version']].gsub(/\./, '')[[0,2]]"`
Karsten Hopp 197132
         RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion"
Karsten Hopp 197132
 	rubylibs=`$vi_cv_path_ruby -r rbconfig -e "print $ruby_rbconfig::CONFIG[['LIBS']]"`
Karsten Hopp 197132
 	if test "X$rubylibs" != "X"; then