summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2011-12-24 23:16:04 +0000
committerjoerg <joerg@pkgsrc.org>2011-12-24 23:16:04 +0000
commit440e25d403ae2c1bc753a1307097a88436b8d0cf (patch)
tree1d0e7f051b8d88806e426ca875ec51f50db1ad04 /lang
parent32f275777d70e6e66dfcfcd3764e97304fd8d486 (diff)
downloadpkgsrc-440e25d403ae2c1bc753a1307097a88436b8d0cf.tar.gz
Restore backwards compatibility removed as part of 1.65, the tree is not
ready yet (devel/ZenTest and others) and the tree is frozen.
Diffstat (limited to 'lang')
-rw-r--r--lang/ruby/rubyversion.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/lang/ruby/rubyversion.mk b/lang/ruby/rubyversion.mk
index 0d5cdb5798f..8d0fb25380d 100644
--- a/lang/ruby/rubyversion.mk
+++ b/lang/ruby/rubyversion.mk
@@ -1,4 +1,4 @@
-# $NetBSD: rubyversion.mk,v 1.66 2011/12/24 23:14:15 joerg Exp $
+# $NetBSD: rubyversion.mk,v 1.67 2011/12/24 23:16:04 joerg Exp $
#
# This file determines which Ruby version is used as a dependency for
@@ -232,6 +232,13 @@ RUBY_VER= ${rv}
. endfor
.endif
+# For backward compatibility
+.if ${RUBY_VER} == "1.9" || ${RUBY_VER} == "192"
+RUBY_VER= 19
+.elif ${RUBY_VER} == "1.8"
+RUBY_VER= 18
+.endif
+
.if ${RUBY_VER} == "18"
RUBY_VERSION= ${RUBY18_VERSION}
RUBY_VERSION_FULL= ${RUBY_VERSION}${RUBY_PATCHLEVEL:S/pl/./}