summaryrefslogtreecommitdiff
path: root/lang/ruby/rubyversion.mk
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
commitcf42fbfb48b42d06fa10b42a5f42aa3b29198435 (patch)
tree1d0e7f051b8d88806e426ca875ec51f50db1ad04 /lang/ruby/rubyversion.mk
parente0a0f499564dbe98dd0150a44e3b736b1c20fe9c (diff)
downloadpkgsrc-cf42fbfb48b42d06fa10b42a5f42aa3b29198435.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/ruby/rubyversion.mk')
-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/./}