| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: rubyversion.mk,v 1.79 2012/04/22 08:23:00 taca Exp $ | | 1 | # $NetBSD: rubyversion.mk,v 1.80 2012/05/07 07:53:28 taca Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | # This file determines which Ruby version is used as a dependency for | | 4 | # This file determines which Ruby version is used as a dependency for |
5 | # a package. | | 5 | # a package. |
6 | # | | 6 | # |
7 | # | | 7 | # |
8 | # === User-settable variables === | | 8 | # === User-settable variables === |
9 | # | | 9 | # |
10 | # RUBY_VERSION_DEFAULT | | 10 | # RUBY_VERSION_DEFAULT |
11 | # The preferered Ruby version to use. | | 11 | # The preferered Ruby version to use. |
12 | # | | 12 | # |
13 | # Possible values: 18 192 193 | | 13 | # Possible values: 18 192 193 |
14 | # Default: 193 | | 14 | # Default: 193 |
| @@ -210,27 +210,28 @@ RUBY193_PATCHLEVEL= p194 | | | @@ -210,27 +210,28 @@ RUBY193_PATCHLEVEL= p194 |
210 | # current API compatible version; used for version of shared library | | 210 | # current API compatible version; used for version of shared library |
211 | RUBY18_API_VERSION= 1.8.7 | | 211 | RUBY18_API_VERSION= 1.8.7 |
212 | RUBY19_API_VERSION= 1.9.1 | | 212 | RUBY19_API_VERSION= 1.9.1 |
213 | RUBY193_API_VERSION= 1.9.1 | | 213 | RUBY193_API_VERSION= 1.9.1 |
214 | | | 214 | |
215 | # | | 215 | # |
216 | RUBY_VERSION_DEFAULT?= 193 | | 216 | RUBY_VERSION_DEFAULT?= 193 |
217 | | | 217 | |
218 | RUBY_VERSION_SUPPORTED?= 18 192 193 | | 218 | RUBY_VERSION_SUPPORTED?= 18 192 193 |
219 | RUBY_VER?= ${RUBY_VERSION_DEFAULT} | | 219 | RUBY_VER?= ${RUBY_VERSION_DEFAULT} |
220 | | | 220 | |
221 | # If package support only one version, use it. | | 221 | # If package support only one version, use it. |
222 | .if ${RUBY_VERSION_SUPPORTED:[\#]} == 1 | | 222 | .if ${RUBY_VERSION_SUPPORTED:[\#]} == 1 |
223 | RUBY_VER= ${RUBY_VERSION_SUPPORTED} | | 223 | RUBY_VER= ${RUBY_VERSION_SUPPORTED} |
| | | 224 | RUBY_VERSION_DEFAULT= ${RUBY_VERSION_SUPPORTED} |
224 | .endif | | 225 | .endif |
225 | | | 226 | |
226 | .if defined(RUBY_VERSION_REQD) | | 227 | .if defined(RUBY_VERSION_REQD) |
227 | . for rv in ${RUBY_VERSION_SUPPORTED} | | 228 | . for rv in ${RUBY_VERSION_SUPPORTED} |
228 | . if ${rv} == ${RUBY_VERSION_REQD} | | 229 | . if ${rv} == ${RUBY_VERSION_REQD} |
229 | RUBY_VER= ${rv} | | 230 | RUBY_VER= ${rv} |
230 | . endif | | 231 | . endif |
231 | . endfor | | 232 | . endfor |
232 | .endif | | 233 | .endif |
233 | | | 234 | |
234 | .if ${RUBY_VER} == "192" | | 235 | .if ${RUBY_VER} == "192" |
235 | RUBY_VER= 19 | | 236 | RUBY_VER= 19 |
236 | .endif | | 237 | .endif |