packages: vim/vim.spec, vim/7.2.357 (NEW), vim/7.2.358 (NEW), vim/7.2.359 (...

arekm arekm at pld-linux.org
Sun Mar 14 21:45:51 CET 2010


Author: arekm                        Date: Sun Mar 14 20:45:51 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- up to 7.2.394; ruby1.9 support seems to be in new patches

---- Files affected:
packages/vim:
   vim.spec (1.499 -> 1.500) , 7.2.357 (NONE -> 1.1)  (NEW), 7.2.358 (NONE -> 1.1)  (NEW), 7.2.359 (NONE -> 1.1)  (NEW), 7.2.360 (NONE -> 1.1)  (NEW), 7.2.361 (NONE -> 1.1)  (NEW), 7.2.362 (NONE -> 1.1)  (NEW), 7.2.363 (NONE -> 1.1)  (NEW), 7.2.364 (NONE -> 1.1)  (NEW), 7.2.365 (NONE -> 1.1)  (NEW), 7.2.366 (NONE -> 1.1)  (NEW), 7.2.367 (NONE -> 1.1)  (NEW), 7.2.368 (NONE -> 1.1)  (NEW), 7.2.369 (NONE -> 1.1)  (NEW), 7.2.370 (NONE -> 1.1)  (NEW), 7.2.371 (NONE -> 1.1)  (NEW), 7.2.372 (NONE -> 1.1)  (NEW), 7.2.373 (NONE -> 1.1)  (NEW), 7.2.374 (NONE -> 1.1)  (NEW), 7.2.375 (NONE -> 1.1)  (NEW), 7.2.376 (NONE -> 1.1)  (NEW), 7.2.377 (NONE -> 1.1)  (NEW), 7.2.378 (NONE -> 1.1)  (NEW), 7.2.379 (NONE -> 1.1)  (NEW), 7.2.380 (NONE -> 1.1)  (NEW), 7.2.381 (NONE -> 1.1)  (NEW), 7.2.382 (NONE -> 1.1)  (NEW), 7.2.383 (NONE -> 1.1)  (NEW), 7.2.384 (NONE -> 1.1)  (NEW), 7.2.385 (NONE -> 1.1)  (NEW), 7.2.386 (NONE -> 1.1)  (NEW), 7.2.387 (NONE -> 1.1)  (NEW), 7.2.388 (NONE -> 1.1)  (NEW),
  7.2.389 (NONE -> 1.1)  (NEW), 7.2.390 (NONE -> 1.1)  (NEW), 7.2.391 (NONE -> 1.1)  (NEW), 7.2.392 (NONE -> 1.1)  (NEW), 7.2.393 (NONE -> 1.1)  (NEW), 7.2.394 (NONE -> 1.1)  (NEW), vim-ruby1.9.patch (1.2 -> NONE)  (REMOVED)

---- Diffs:

================================================================
Index: packages/vim/vim.spec
diff -u packages/vim/vim.spec:1.499 packages/vim/vim.spec:1.500
--- packages/vim/vim.spec:1.499	Mon Mar  1 13:47:38 2010
+++ packages/vim/vim.spec	Sun Mar 14 21:45:44 2010
@@ -14,7 +14,7 @@
 %bcond_without	home_etc	# without home_etc support
 
 %define		ver		7.2
-%define		patchlevel	356
+%define		patchlevel	394
 Summary:	Vi IMproved - a Vi clone
 Summary(de.UTF-8):	VIsual editor iMproved
 Summary(es.UTF-8):	Editor visual incrementado
@@ -27,7 +27,7 @@
 Summary(uk.UTF-8):	Visual editor IMproved - Єдино Вірний Редактор :)
 Name:		vim
 Version:	%{ver}.%{patchlevel}
-Release:	4
+Release:	1
 Epoch:		4
 License:	Charityware
 Group:		Applications/Editors/Vim
@@ -102,7 +102,6 @@
 Patch113:	%{name}-locales.patch
 Patch114:	%{name}-rtdir.patch
 Patch115:	%{name}-ft-mib.patch
-Patch116:	%{name}-ruby1.9.patch
 URL:		http://www.vim.org/
 BuildRequires:	acl-devel
 BuildRequires:	autoconf
@@ -714,7 +713,6 @@
 %patch113 -p1
 %patch114 -p1
 %patch115 -p1
-%patch116 -p1
 
 cp -a %{SOURCE20} runtime/syntax
 cp -a %{SOURCE22} runtime/syntax
@@ -1357,6 +1355,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.500  2010/03/14 20:45:44  arekm
+- up to 7.2.394; ruby1.9 support seems to be in new patches
+
 Revision 1.499  2010/03/01 12:47:38  baggins
 - rel 4
 - ruby 1.9 has headers in proper place

================================================================
Index: packages/vim/7.2.357
diff -u /dev/null packages/vim/7.2.357:1.1
--- /dev/null	Sun Mar 14 21:45:51 2010
+++ packages/vim/7.2.357	Sun Mar 14 21:45:44 2010
@@ -0,0 +1,49 @@
+To: vim-dev at vim.org
+Subject: Patch 7.2.357
+Fcc: outbox
+From: Bram Moolenaar <Bram at moolenaar.net>
+Mime-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+------------
+
+Patch 7.2.357
+Problem:    When changing 'fileformat' from/to "mac" and there is a CR in the
+	    text the display is wrong.
+Solution:   Redraw the text when 'fileformat' is changed. (Ben Schmidt)
+Files:	    src/option.c
+
+
+*** ../vim-7.2.356/src/option.c	2010-01-27 15:57:17.000000000 +0100
+--- src/option.c	2010-02-11 16:57:19.000000000 +0100
+***************
+*** 5867,5872 ****
+--- 5867,5876 ----
+  #endif
+  	    /* update flag in swap file */
+  	    ml_setflags(curbuf);
++ 	    /* Redraw needed when switching to/from "mac": a CR in the text
++ 	     * will be displayed differently. */
++ 	    if (get_fileformat(curbuf) == EOL_MAC || *oldval == 'm')
++ 		redraw_curbuf_later(NOT_VALID);
+  	}
+      }
+  
+*** ../vim-7.2.356/src/version.c	2010-02-03 18:14:41.000000000 +0100
+--- src/version.c	2010-02-11 17:01:36.000000000 +0100
+***************
+*** 683,684 ****
+--- 683,686 ----
+  {   /* Add new patch number below this line */
++ /**/
++     357,
+  /**/
+
+-- 
+From the classified section of a city newspaper:
+Dog for sale: eats anything and is fond of children.
+
+ /// Bram Moolenaar -- Bram at Moolenaar.net -- http://www.Moolenaar.net   \\\
+///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
+\\\        download, build and distribute -- http://www.A-A-P.org        ///
+ \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

================================================================
Index: packages/vim/7.2.358
diff -u /dev/null packages/vim/7.2.358:1.1
--- /dev/null	Sun Mar 14 21:45:51 2010
+++ packages/vim/7.2.358	Sun Mar 14 21:45:44 2010
@@ -0,0 +1,78 @@
+To: vim-dev at vim.org
+Subject: Patch 7.2.358
+Fcc: outbox
+From: Bram Moolenaar <Bram at moolenaar.net>
+Mime-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+------------
+
+Patch 7.2.358
+Problem:    Compiler warnings on VMS. (Zoltan Arpadffy)
+Solution:   Pass array itself instead its address.  Return a value.
+Files:	    src/gui_gtk_x11.c, src/os_unix.c
+
+
+*** ../vim-7.2.357/src/gui_gtk_x11.c	2009-11-03 18:13:36.000000000 +0100
+--- src/gui_gtk_x11.c	2010-02-11 18:00:28.000000000 +0100
+***************
+*** 6190,6196 ****
+  		int pcc[MAX_MCO];
+  
+  		/* TODO: use the composing characters */
+! 		c = utfc_ptr2char_len(p, &pcc, len - (p - s));
+  		if (c >= 0x10000)	/* show chars > 0xffff as ? */
+  		    c = 0xbf;
+  		buf[textlen].byte1 = c >> 8;
+--- 6190,6196 ----
+  		int pcc[MAX_MCO];
+  
+  		/* TODO: use the composing characters */
+! 		c = utfc_ptr2char_len(p, pcc, len - (p - s));
+  		if (c >= 0x10000)	/* show chars > 0xffff as ? */
+  		    c = 0xbf;
+  		buf[textlen].byte1 = c >> 8;
+*** ../vim-7.2.357/src/os_unix.c	2009-07-22 13:27:50.000000000 +0200
+--- src/os_unix.c	2010-02-11 18:10:20.000000000 +0100
+***************
+*** 1471,1476 ****
+--- 1471,1479 ----
+  {
+      /* This function should not return, it causes exit().  Longjump instead. */
+      LONGJMP(lc_jump_env, 1);
++ #  ifdef VMS
++     return 0;  /* avoid the compiler complains about missing return value */
++ #  endif
+  }
+  # endif
+  
+***************
+*** 1490,1495 ****
+--- 1493,1501 ----
+  
+      /* This function should not return, it causes exit().  Longjump instead. */
+      LONGJMP(x_jump_env, 1);
++ # ifdef VMS
++     return 0;  /* avoid the compiler complains about missing return value */
++ # endif
+  }
+  #endif
+  
+*** ../vim-7.2.357/src/version.c	2010-02-11 17:02:04.000000000 +0100
+--- src/version.c	2010-02-11 18:10:45.000000000 +0100
+***************
+*** 683,684 ****
+--- 683,686 ----
+  {   /* Add new patch number below this line */
++ /**/
++     358,
+  /**/
+
+-- 
+hundred-and-one symptoms of being an internet addict:
+221. Your wife melts your keyboard in the oven.
+
+ /// Bram Moolenaar -- Bram at Moolenaar.net -- http://www.Moolenaar.net   \\\
+///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
+\\\        download, build and distribute -- http://www.A-A-P.org        ///
+ \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

================================================================
Index: packages/vim/7.2.359
diff -u /dev/null packages/vim/7.2.359:1.1
--- /dev/null	Sun Mar 14 21:45:51 2010
+++ packages/vim/7.2.359	Sun Mar 14 21:45:44 2010
@@ -0,0 +1,68 @@
+To: vim-dev at vim.org
+Subject: Patch 7.2.359
+Fcc: outbox
+From: Bram Moolenaar <Bram at moolenaar.net>
+Mime-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+------------
+
+Patch 7.2.359
+Problem:    Crash when using the Netbeans join command.
+Solution:   Make sure the ml_flush_line() function is not used recursively.
+	    (Xavier de Gaye)
+Files:	    src/memline.c
+
+
+*** ../vim-7.2.358/src/memline.c	2009-11-17 17:13:03.000000000 +0100
+--- src/memline.c	2010-02-11 18:47:48.000000000 +0100
+***************
+*** 3087,3098 ****
+--- 3087,3105 ----
+      int		start;
+      int		count;
+      int		i;
++     static int  entered = FALSE;
+  
+      if (buf->b_ml.ml_line_lnum == 0 || buf->b_ml.ml_mfp == NULL)
+  	return;		/* nothing to do */
+  
+      if (buf->b_ml.ml_flags & ML_LINE_DIRTY)
+      {
++ 	/* This code doesn't work recursively, but Netbeans may call back here
++ 	 * when obtaining the cursor position. */
++ 	if (entered)
++ 	    return;
++ 	entered = TRUE;
++ 
+  	lnum = buf->b_ml.ml_line_lnum;
+  	new_line = buf->b_ml.ml_line_ptr;
+  
+***************
+*** 3160,3165 ****
+--- 3167,3174 ----
+  	    }
+  	}
+  	vim_free(new_line);
++ 
++ 	entered = FALSE;
+      }
+  
+      buf->b_ml.ml_line_lnum = 0;
+*** ../vim-7.2.358/src/version.c	2010-02-11 18:19:32.000000000 +0100
+--- src/version.c	2010-02-11 18:53:55.000000000 +0100
+***************
+*** 683,684 ****
+--- 683,686 ----
+  {   /* Add new patch number below this line */
++ /**/
++     359,
+  /**/
+
+-- 
+Your fault: core dumped
+
+ /// Bram Moolenaar -- Bram at Moolenaar.net -- http://www.Moolenaar.net   \\\
+///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
+\\\        download, build and distribute -- http://www.A-A-P.org        ///
+ \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

================================================================
Index: packages/vim/7.2.360
diff -u /dev/null packages/vim/7.2.360:1.1
--- /dev/null	Sun Mar 14 21:45:51 2010
+++ packages/vim/7.2.360	Sun Mar 14 21:45:44 2010
@@ -0,0 +1,96 @@
+To: vim-dev at vim.org
+Subject: Patch 7.2.360
+Fcc: outbox
+From: Bram Moolenaar <Bram at moolenaar.net>
+Mime-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+------------
+
+Patch 7.2.360
+Problem:    Ruby on MS-Windows: can't use sockets.
+Solution:   Call NtInitialize() during initialization. (Ariya Mizutani)
+Files:	    src/if_ruby.c
+
+
+*** ../vim-7.2.359/src/if_ruby.c	2009-05-22 18:20:23.000000000 +0200
+--- src/if_ruby.c	2010-02-17 15:04:00.000000000 +0100
+***************
+*** 48,53 ****
+--- 48,58 ----
+  # endif
+  #endif
+  
++ /* suggested by Ariya Mizutani */
++ #if (_MSC_VER == 1200)
++ # undef _WIN32_WINNT
++ #endif
++ 
+  #include <ruby.h>
+  
+  #undef EXTERN
+***************
+*** 132,137 ****
+--- 137,143 ----
+  #define ruby_errinfo			(*dll_ruby_errinfo)
+  #define ruby_init			dll_ruby_init
+  #define ruby_init_loadpath		dll_ruby_init_loadpath
++ #define NtInitialize			dll_NtInitialize
+  #if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 18
+  # define rb_w32_snprintf		dll_rb_w32_snprintf
+  #endif
+***************
+*** 186,191 ****
+--- 192,198 ----
+  static VALUE *dll_ruby_errinfo;
+  static void (*dll_ruby_init) (void);
+  static void (*dll_ruby_init_loadpath) (void);
++ static void (*dll_NtInitialize) (int*, char***);
+  #if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 18
+  static int (*dll_rb_w32_snprintf)(char*, size_t, const char*, ...);
+  #endif
+***************
+*** 248,253 ****
+--- 255,261 ----
+      {"ruby_errinfo", (RUBY_PROC*)&dll_ruby_errinfo},
+      {"ruby_init", (RUBY_PROC*)&dll_ruby_init},
+      {"ruby_init_loadpath", (RUBY_PROC*)&dll_ruby_init_loadpath},
++     {"NtInitialize", (RUBY_PROC*)&dll_NtInitialize},
+  #if defined(DYNAMIC_RUBY_VER) && DYNAMIC_RUBY_VER >= 18
+      {"rb_w32_snprintf", (RUBY_PROC*)&dll_rb_w32_snprintf},
+  #endif
+***************
+*** 414,419 ****
+--- 422,433 ----
+  	if (ruby_enabled(TRUE))
+  	{
+  #endif
++ #ifdef _WIN32
++ 	    /* suggested by Ariya Mizutani */
++ 	    int argc = 1;
++ 	    char *argv[] = {"gvim.exe"};
++ 	    NtInitialize(&argc, &argv);
++ #endif
+  	    ruby_init();
+  	    ruby_init_loadpath();
+  	    ruby_io_init();
+*** ../vim-7.2.359/src/version.c	2010-02-11 18:54:38.000000000 +0100
+--- src/version.c	2010-02-17 15:10:22.000000000 +0100
+***************
+*** 683,684 ****
+--- 683,686 ----
+  {   /* Add new patch number below this line */
++ /**/
++     360,
+  /**/
+
+-- 
+"After a few years of marriage a man can look right at a woman
+without seeing her and a woman can see right through a man
+without looking at him."
+ - Helen Rowland
+
+ /// Bram Moolenaar -- Bram at Moolenaar.net -- http://www.Moolenaar.net   \\\
+///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
+\\\        download, build and distribute -- http://www.A-A-P.org        ///
+ \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

================================================================
Index: packages/vim/7.2.361
diff -u /dev/null packages/vim/7.2.361:1.1
--- /dev/null	Sun Mar 14 21:45:51 2010
+++ packages/vim/7.2.361	Sun Mar 14 21:45:44 2010
@@ -0,0 +1,763 @@
+To: vim-dev at vim.org
+Subject: Patch 7.2.361
+Fcc: outbox
+From: Bram Moolenaar <Bram at moolenaar.net>
+Mime-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+------------
+
+Patch 7.2.361
+Problem:    Ruby 1.9 is not supported.
+Solution:   Add Ruby 1.9 support. (Msaki Suketa)
+Files:	    src/Makefile, src/auto/configure, src/configure.in, src/if_ruby.c
+
+
+*** ../vim-7.2.360/src/Makefile	2010-02-17 15:12:22.000000000 +0100
+--- src/Makefile	2010-02-17 16:21:01.000000000 +0100
+***************
+*** 395,401 ****
+  
+  # RUBY
+  # Uncomment this when you want to include the Ruby interface.
+! #CONF_OPT_RUBY = --enable-rubyinterp
+  
+  # MZSCHEME
+  # Uncomment this when you want to include the MzScheme interface.
+--- 395,403 ----
+  
+  # RUBY
+  # Uncomment this when you want to include the Ruby interface.
+! # Note: you need the development package (e.g., ruby1.9.1-dev on Ubuntu).
+! # CONF_OPT_RUBY = --enable-rubyinterp
+! # CONF_OPT_RUBY = --enable-rubyinterp --with-ruby-command=ruby1.9.1
+  
+  # MZSCHEME
+  # Uncomment this when you want to include the MzScheme interface.
+*** ../vim-7.2.360/src/auto/configure	2009-12-16 17:14:08.000000000 +0100
+--- src/auto/configure	2010-02-17 16:08:59.000000000 +0100
+***************
+*** 793,798 ****
+--- 793,799 ----
+  enable_tclinterp
+  with_tclsh
+  enable_rubyinterp
++ with_ruby_command
+  enable_cscope
+  enable_workshop
+  enable_netbeans
+***************
+*** 1503,1508 ****
+--- 1504,1510 ----
+    --with-plthome=PLTHOME   Use PLTHOME.
+    --with-python-config-dir=PATH  Python's config directory
+    --with-tclsh=PATH       which tclsh to use (default: tclsh8.0)
++   --with-ruby-command=RUBY  name of the Ruby command (default: ruby)
+    --with-x                use the X Window System
+    --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
+    --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
+***************
+*** 5703,5711 ****
+  { $as_echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
+  $as_echo "$enable_rubyinterp" >&6; }
+  if test "$enable_rubyinterp" = "yes"; then
+  
+!   # Extract the first word of "ruby", so it can be a program name with args.
+! set dummy ruby; ac_word=$2
+  { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+  $as_echo_n "checking for $ac_word... " >&6; }
+  if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
+--- 5705,5725 ----
+  { $as_echo "$as_me:$LINENO: result: $enable_rubyinterp" >&5
+  $as_echo "$enable_rubyinterp" >&6; }
+  if test "$enable_rubyinterp" = "yes"; then
++   { $as_echo "$as_me:$LINENO: checking --with-ruby-command argument" >&5
++ $as_echo_n "checking --with-ruby-command argument... " >&6; }
+  
+! # Check whether --with-ruby-command was given.
+! if test "${with_ruby_command+set}" = set; then
+!   withval=$with_ruby_command; RUBY_CMD="$withval"; { $as_echo "$as_me:$LINENO: result: $RUBY_CMD" >&5
+! $as_echo "$RUBY_CMD" >&6; }
+! else
+!   RUBY_CMD="ruby"; { $as_echo "$as_me:$LINENO: result: defaulting to $RUBY_CMD" >&5
+! $as_echo "defaulting to $RUBY_CMD" >&6; }
+! fi
+! 
+! 
+!   # Extract the first word of "$RUBY_CMD", so it can be a program name with args.
+! set dummy $RUBY_CMD; ac_word=$2
+  { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
+  $as_echo_n "checking for $ac_word... " >&6; }
+  if test "${ac_cv_path_vi_cv_path_ruby+set}" = set; then
+***************
+*** 5752,5762 ****
+  $as_echo "OK" >&6; }
+        { $as_echo "$as_me:$LINENO: checking Ruby header files" >&5
+  $as_echo_n "checking Ruby header files... " >&6; }
+!       rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
+        if test "X$rubyhdrdir" != "X"; then
+  	{ $as_echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
+  $as_echo "$rubyhdrdir" >&6; }
+  	RUBY_CFLAGS="-I$rubyhdrdir"
+  	rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
+  	if test "X$rubylibs" != "X"; then
+  	  RUBY_LIBS="$rubylibs"
+--- 5766,5782 ----
+  $as_echo "OK" >&6; }
+        { $as_echo "$as_me:$LINENO: checking Ruby header files" >&5
+  $as_echo_n "checking Ruby header files... " >&6; }
+!       rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG["rubyhdrdir"] || Config::CONFIG["archdir"] || $hdrdir' 2>/dev/null`
+        if test "X$rubyhdrdir" != "X"; then
+  	{ $as_echo "$as_me:$LINENO: result: $rubyhdrdir" >&5
+  $as_echo "$rubyhdrdir" >&6; }
+  	RUBY_CFLAGS="-I$rubyhdrdir"
++         rubyarch=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["arch"]'`
++         if test -d "$rubyhdrdir/$rubyarch"; then
++           RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyhdrdir/$rubyarch"
++         fi
++         rubyversion=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["ruby_version"].gsub(/\./, "")[0,2]'`
++         RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion"
+  	rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG["LIBS"]'`
+  	if test "X$rubylibs" != "X"; then
+  	  RUBY_LIBS="$rubylibs"
+***************
+*** 5793,5800 ****
+  _ACEOF
+  
+        else
+! 	{ $as_echo "$as_me:$LINENO: result: not found" >&5
+! $as_echo "not found" >&6; }
+        fi
+      else
+        { $as_echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
+--- 5813,5820 ----
+  _ACEOF
+  
+        else
+! 	{ $as_echo "$as_me:$LINENO: result: not found; disabling Ruby" >&5
+! $as_echo "not found; disabling Ruby" >&6; }
+        fi
+      else
+        { $as_echo "$as_me:$LINENO: result: too old; need Ruby version 1.6.0 or later" >&5
+*** ../vim-7.2.360/src/configure.in	2009-12-16 17:14:08.000000000 +0100
+--- src/configure.in	2010-02-17 16:00:58.000000000 +0100
+***************
+*** 949,965 ****
+  	[enable_rubyinterp="no"])
+  AC_MSG_RESULT($enable_rubyinterp)
+  if test "$enable_rubyinterp" = "yes"; then
+    AC_SUBST(vi_cv_path_ruby)
+!   AC_PATH_PROG(vi_cv_path_ruby, ruby)
+    if test "X$vi_cv_path_ruby" != "X"; then
+      AC_MSG_CHECKING(Ruby version)
+      if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
+        AC_MSG_RESULT(OK)
+        AC_MSG_CHECKING(Ruby header files)
+!       rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG[["archdir"]] || $hdrdir' 2>/dev/null`
+        if test "X$rubyhdrdir" != "X"; then
+  	AC_MSG_RESULT($rubyhdrdir)
+  	RUBY_CFLAGS="-I$rubyhdrdir"
+  	rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG[["LIBS"]]'`
+  	if test "X$rubylibs" != "X"; then
+  	  RUBY_LIBS="$rubylibs"
+--- 949,975 ----
+  	[enable_rubyinterp="no"])
+  AC_MSG_RESULT($enable_rubyinterp)
+  if test "$enable_rubyinterp" = "yes"; then
++   AC_MSG_CHECKING(--with-ruby-command argument)
++   AC_ARG_WITH(ruby-command, [  --with-ruby-command=RUBY  name of the Ruby command (default: ruby)],
++ 	RUBY_CMD="$withval"; AC_MSG_RESULT($RUBY_CMD),
++ 	RUBY_CMD="ruby"; AC_MSG_RESULT(defaulting to $RUBY_CMD))
+    AC_SUBST(vi_cv_path_ruby)
+!   AC_PATH_PROG(vi_cv_path_ruby, $RUBY_CMD)
+    if test "X$vi_cv_path_ruby" != "X"; then
+      AC_MSG_CHECKING(Ruby version)
+      if $vi_cv_path_ruby -e '(VERSION rescue RUBY_VERSION) >= "1.6.0" or exit 1' >/dev/null 2>/dev/null; then
+        AC_MSG_RESULT(OK)
+        AC_MSG_CHECKING(Ruby header files)
+!       rubyhdrdir=`$vi_cv_path_ruby -r mkmf -e 'print Config::CONFIG[["rubyhdrdir"]] || Config::CONFIG[["archdir"]] || $hdrdir' 2>/dev/null`
+        if test "X$rubyhdrdir" != "X"; then
+  	AC_MSG_RESULT($rubyhdrdir)
+  	RUBY_CFLAGS="-I$rubyhdrdir"
++         rubyarch=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG[["arch"]]'`
++         if test -d "$rubyhdrdir/$rubyarch"; then
++           RUBY_CFLAGS="$RUBY_CFLAGS -I$rubyhdrdir/$rubyarch"
++         fi
++         rubyversion=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG[["ruby_version"]].gsub(/\./, "")[[0,2]]'`
++         RUBY_CFLAGS="$RUBY_CFLAGS -DRUBY_VERSION=$rubyversion"
+  	rubylibs=`$vi_cv_path_ruby -r rbconfig -e 'print Config::CONFIG[["LIBS"]]'`
+  	if test "X$rubylibs" != "X"; then
+  	  RUBY_LIBS="$rubylibs"
+***************
+*** 997,1003 ****
+  	RUBY_PRO="if_ruby.pro"
+  	AC_DEFINE(FEAT_RUBY)
+        else
+! 	AC_MSG_RESULT(not found, disabling Ruby)
+        fi
+      else
+        AC_MSG_RESULT(too old; need Ruby version 1.6.0 or later)
+--- 1007,1013 ----
+  	RUBY_PRO="if_ruby.pro"
+  	AC_DEFINE(FEAT_RUBY)
+        else
+! 	AC_MSG_RESULT(not found; disabling Ruby)
+        fi
+      else
+        AC_MSG_RESULT(too old; need Ruby version 1.6.0 or later)
+*** ../vim-7.2.360/src/if_ruby.c	2010-02-17 15:11:35.000000000 +0100
+--- src/if_ruby.c	2010-02-17 16:08:47.000000000 +0100
+***************
+*** 54,59 ****
+--- 54,62 ----
+  #endif
+  
+  #include <ruby.h>
++ #if defined(RUBY_VERSION) && RUBY_VERSION >= 19
++ # include <ruby/encoding.h>
++ #endif
+  
+  #undef EXTERN
+  #undef _
+***************
+*** 65,70 ****
+--- 68,95 ----
+  # define __OPENTRANSPORTPROVIDERS__
+  #endif
+  
<<Diff was trimmed, longer than 597 lines>>

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/vim/vim.spec?r1=1.499&r2=1.500&f=u



More information about the pld-cvs-commit mailing list