summaryrefslogtreecommitdiff
path: root/lang/ruby
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2014-05-21 03:08:34 +0000
committertaca <taca@pkgsrc.org>2014-05-21 03:08:34 +0000
commit57a969314ce4ca9c3d6affa206ec488c6a63975f (patch)
tree430701a318af7e55de916311b2838344bbbd62da /lang/ruby
parent9d2bd35c59fa8ee5a82a9c8fb8f0ef01aa8238a3 (diff)
downloadpkgsrc-57a969314ce4ca9c3d6affa206ec488c6a63975f.tar.gz
Instead of comparing _RUBY_VERSION_REQD to "211", compare "18" or "193".
Diffstat (limited to 'lang/ruby')
-rw-r--r--lang/ruby/rubyversion.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/lang/ruby/rubyversion.mk b/lang/ruby/rubyversion.mk
index 4cb13e214c8..7292c66818c 100644
--- a/lang/ruby/rubyversion.mk
+++ b/lang/ruby/rubyversion.mk
@@ -1,4 +1,4 @@
-# $NetBSD: rubyversion.mk,v 1.118 2014/05/17 11:34:35 obache Exp $
+# $NetBSD: rubyversion.mk,v 1.119 2014/05/21 03:08:34 taca Exp $
#
# This file determines which Ruby version is used as a dependency for
@@ -203,10 +203,10 @@ _RUBYVERSION_MK= # defined
.if defined(PKGNAME_REQD)
. if !empty(PKGNAME_REQD:Mruby[0-9][0-9][0-9]-*) || !empty(PKGNAME_REQD:Mruby[0-9][0-9]-*)
_RUBY_VERSION_REQD:= ${PKGNAME_REQD:C/ruby([0-9][0-9]+)-.*/\1/}
-. if ${_RUBY_VERSION_REQD} != "211"
-RUBY_VERSION_REQD?= ${PKGNAME_REQD:C/ruby([0-9][0-9]+)-.*/\1/}
-. else
+. if ${_RUBY_VERSION_REQD} == "18" || ${_RUBY_VERSION_REQD} == "193"
RUBY_VERSION_REQD?= ${PKGNAME_REQD:C/ruby([0-9][0-9])[0-9]-.*/\1/}
+. else
+RUBY_VERSION_REQD?= ${PKGNAME_REQD:C/ruby([0-9][0-9]+)-.*/\1/}
. endif
. endif
.endif