From cf42fbfb48b42d06fa10b42a5f42aa3b29198435 Mon Sep 17 00:00:00 2001 From: joerg Date: Sat, 24 Dec 2011 23:16:04 +0000 Subject: Restore backwards compatibility removed as part of 1.65, the tree is not ready yet (devel/ZenTest and others) and the tree is frozen. --- lang/ruby/rubyversion.mk | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'lang/ruby/rubyversion.mk') 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/./} -- cgit v1.2.3