diff options
author | taca <taca@pkgsrc.org> | 2014-02-04 03:16:44 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2014-02-04 03:16:44 +0000 |
commit | 61503a046eabcd341d9ca9777a3f785173ef3241 (patch) | |
tree | 7df865c9a3ec202249b2f0b447e08128f0c03dff /lang/ruby | |
parent | 2fa5b139c47dd01d1d16bd304c162a6e46f3ce1a (diff) | |
download | pkgsrc-61503a046eabcd341d9ca9777a3f785173ef3241.tar.gz |
Take care for older bmake, tested on old NetBSD 4's make(1).
Noted by wiz@ via private E-mail.
Diffstat (limited to 'lang/ruby')
-rw-r--r-- | lang/ruby/rubyversion.mk | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lang/ruby/rubyversion.mk b/lang/ruby/rubyversion.mk index fe6dc8a6215..079a996e328 100644 --- a/lang/ruby/rubyversion.mk +++ b/lang/ruby/rubyversion.mk @@ -1,4 +1,4 @@ -# $NetBSD: rubyversion.mk,v 1.108 2014/02/02 07:46:16 taca Exp $ +# $NetBSD: rubyversion.mk,v 1.109 2014/02/04 03:16:44 taca Exp $ # # This file determines which Ruby version is used as a dependency for @@ -200,8 +200,10 @@ _RUBYVERSION_MK= # defined .include "../../mk/bsd.prefs.mk" -.if defined(PKGNAME_REQD) && (!empty(PKGNAME_REQD:Mruby[0-9][0-9][0-9]-*) || !empty(PKGNAME_REQD:Mruby[0-9][0-9]-*)) +.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/} +. endif .endif # current supported Ruby's version @@ -226,13 +228,13 @@ RUBY_VERSION_SUPPORTED?= 200 193 18 .if defined(RUBY_VERSION_REQD) . for rv in ${RUBY_VERSION_SUPPORTED} -. if ${rv} == ${RUBY_VERSION_REQD} +. if "${rv}" == ${RUBY_VERSION_REQD} RUBY_VER= ${rv} . endif . endfor .elif !defined(RUBY_VER) . for rv in ${RUBY_VERSION_SUPPORTED} -. if ${rv} == ${RUBY_VERSION_DEFAULT} +. if "${rv}" == ${RUBY_VERSION_DEFAULT} RUBY_VER= ${rv} . endif . endfor |