summaryrefslogtreecommitdiffstats
path: root/source/ap/vim/patches/7.3.620
blob: 5890f15f9566caba216d426d90ab09427d4b2919 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
To: vim_dev@googlegroups.com
Subject: Patch 7.3.620
Fcc: outbox
From: Bram Moolenaar <Bram@moolenaar.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
------------

Patch 7.3.620
Problem:    Building with recent Ruby on Win32 doesn't work.
Solution:   Add a separate argument for the API version. (Yasuhiro Matsumoto)
Files:	    src/Make_ming.mak, src/Make_mvc.mak


*** ../vim-7.3.619/src/Make_ming.mak	2012-07-06 13:40:44.000000000 +0200
--- src/Make_ming.mak	2012-08-02 17:02:34.000000000 +0200
***************
*** 260,266 ****
  #	  DYNAMIC_RUBY=yes (to load the Ruby DLL dynamically)
  #	  RUBY_VER=[Ruby version, eg 16, 17] (default is 16)
  #	  RUBY_VER_LONG=[Ruby version, eg 1.6, 1.7] (default is 1.6)
! #	    You must set RUBY_VER_LONG when change RUBY_VER.
  #RUBY=c:/ruby
  ifdef RUBY
  ifndef DYNAMIC_RUBY
--- 260,268 ----
  #	  DYNAMIC_RUBY=yes (to load the Ruby DLL dynamically)
  #	  RUBY_VER=[Ruby version, eg 16, 17] (default is 16)
  #	  RUBY_VER_LONG=[Ruby version, eg 1.6, 1.7] (default is 1.6)
! #	    You must set RUBY_VER_LONG when changing RUBY_VER.
! #	    You must set RUBY_API_VER version to RUBY_VER_LONG.
! #	    Don't set ruby API version to RUBY_VER like 191.
  #RUBY=c:/ruby
  ifdef RUBY
  ifndef DYNAMIC_RUBY
***************
*** 273,278 ****
--- 275,283 ----
  ifndef RUBY_VER_LONG
  RUBY_VER_LONG = 1.6
  endif
+ ifndef RUBY_API_VER
+ RUBY_API_VER = $(subst .,,$(RUBY_VER_LONG))
+ endif
  
  ifndef RUBY_PLATFORM
  ifeq ($(RUBY_VER), 16)
***************
*** 288,296 ****
  
  ifndef RUBY_INSTALL_NAME
  ifeq ($(RUBY_VER), 16)
! RUBY_INSTALL_NAME = mswin32-ruby$(RUBY_VER)
  else
! RUBY_INSTALL_NAME = msvcrt-ruby$(RUBY_VER)
  endif
  endif
  
--- 293,301 ----
  
  ifndef RUBY_INSTALL_NAME
  ifeq ($(RUBY_VER), 16)
! RUBY_INSTALL_NAME = mswin32-ruby$(RUBY_API_VER)
  else
! RUBY_INSTALL_NAME = msvcrt-ruby$(RUBY_API_VER)
  endif
  endif
  
*** ../vim-7.3.619/src/Make_mvc.mak	2012-02-22 16:01:53.000000000 +0100
--- src/Make_mvc.mak	2012-08-02 17:42:31.000000000 +0200
***************
*** 63,68 ****
--- 63,70 ----
  #	  RUBY_VER=[Ruby version, eg 16, 17] (default is 18)
  #	  RUBY_VER_LONG=[Ruby version, eg 1.6, 1.7] (default is 1.8)
  #	    You must set RUBY_VER_LONG when change RUBY_VER.
+ #	    You must set RUBY_API_VER to RUBY_VER_LONG.
+ #	    Don't set ruby API version to RUBY_VER like 191.
  #
  #	Tcl interface:
  #	  TCL=[Path to Tcl directory]
***************
*** 807,834 ****
  !ifndef RUBY_VER_LONG
  RUBY_VER_LONG = 1.8
  !endif
  
  !if $(RUBY_VER) >= 18
  !ifndef RUBY_PLATFORM
  RUBY_PLATFORM = i386-mswin32
  !endif
  !ifndef RUBY_INSTALL_NAME
! RUBY_INSTALL_NAME = msvcrt-ruby$(RUBY_VER)
  !endif
  !else
  !ifndef RUBY_PLATFORM
  RUBY_PLATFORM = i586-mswin32
  !endif
  !ifndef RUBY_INSTALL_NAME
! RUBY_INSTALL_NAME = mswin32-ruby$(RUBY_VER)
  !endif
  !endif # $(RUBY_VER) >= 18
  
  !message Ruby requested (version $(RUBY_VER)) - root dir is "$(RUBY)"
  CFLAGS = $(CFLAGS) -DFEAT_RUBY
  RUBY_OBJ = $(OUTDIR)\if_ruby.obj
! !if $(RUBY_VER) >= 190
! RUBY_INC = /I "$(RUBY)\include\ruby-$(RUBY_VER_LONG)\$(RUBY_PLATFORM)" /I "$(RUBY)\include\ruby-$(RUBY_VER_LONG)"
  !else
  RUBY_INC = /I "$(RUBY)\lib\ruby\$(RUBY_VER_LONG)\$(RUBY_PLATFORM)"
  !endif
--- 813,843 ----
  !ifndef RUBY_VER_LONG
  RUBY_VER_LONG = 1.8
  !endif
+ !ifndef RUBY_API_VER
+ RUBY_API_VER = $(RUBY_VER_LONG:.=)
+ !endif
  
  !if $(RUBY_VER) >= 18
  !ifndef RUBY_PLATFORM
  RUBY_PLATFORM = i386-mswin32
  !endif
  !ifndef RUBY_INSTALL_NAME
! RUBY_INSTALL_NAME = msvcrt-ruby$(RUBY_API_VER)
  !endif
  !else
  !ifndef RUBY_PLATFORM
  RUBY_PLATFORM = i586-mswin32
  !endif
  !ifndef RUBY_INSTALL_NAME
! RUBY_INSTALL_NAME = mswin32-ruby$(RUBY_API_VER)
  !endif
  !endif # $(RUBY_VER) >= 18
  
  !message Ruby requested (version $(RUBY_VER)) - root dir is "$(RUBY)"
  CFLAGS = $(CFLAGS) -DFEAT_RUBY
  RUBY_OBJ = $(OUTDIR)\if_ruby.obj
! !if $(RUBY_VER) >= 19
! RUBY_INC = /I "$(RUBY)\lib\ruby\$(RUBY_VER_LONG)\$(RUBY_PLATFORM)" /I "$(RUBY)\include\ruby-$(RUBY_VER_LONG)" /I "$(RUBY)\include\ruby-$(RUBY_VER_LONG)\$(RUBY_PLATFORM)"
  !else
  RUBY_INC = /I "$(RUBY)\lib\ruby\$(RUBY_VER_LONG)\$(RUBY_PLATFORM)"
  !endif
*** ../vim-7.3.619/src/version.c	2012-08-02 12:31:40.000000000 +0200
--- src/version.c	2012-08-02 21:20:28.000000000 +0200
***************
*** 716,717 ****
--- 716,719 ----
  {   /* Add new patch number below this line */
+ /**/
+     620,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
199. You read this entire list of symptoms, looking for something
     that doesn't describe you.

 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///