diff options
author | taca <taca@pkgsrc.org> | 2011-12-24 03:30:10 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2011-12-24 03:30:10 +0000 |
commit | fa5716799b2dcd98a12812ae87a115fcf7acde04 (patch) | |
tree | cc8d78b478ac8da25fcfbc45f127430923c6c282 /lang | |
parent | cb7935ee21499dcc731e73bbcf41d7a8dfd519f3 (diff) | |
download | pkgsrc-fa5716799b2dcd98a12812ae87a115fcf7acde04.tar.gz |
* Remove backward compatibility handling for RUBY_VER; pkglint dosen't like it.
* Add one more PRINT_PLIST_AWK for GEM_HOME.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/ruby/rubyversion.mk | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/lang/ruby/rubyversion.mk b/lang/ruby/rubyversion.mk index 1ec21af4c4b..b91ccf0e882 100644 --- a/lang/ruby/rubyversion.mk +++ b/lang/ruby/rubyversion.mk @@ -1,4 +1,4 @@ -# $NetBSD: rubyversion.mk,v 1.64 2011/11/08 15:18:31 taca Exp $ +# $NetBSD: rubyversion.mk,v 1.65 2011/12/24 03:30:10 taca Exp $ # # This file determines which Ruby version is used as a dependency for @@ -232,13 +232,6 @@ 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/./} @@ -570,5 +563,7 @@ PRINT_PLIST_AWK+= /^${RUBY_SYSRIDIR:S|/|\\/|g}\// \ { next; } PRINT_PLIST_AWK+= /\/${RUBY_NAME}/ \ { sub(/${RUBY_NAME}/, "$${RUBY_NAME}"); } +PRINT_PLIST_AWK+= /^${GEM_HOME:S|/|\\/|g:S|.|\\.|g}/ \ + { gsub(/${GEM_HOME:S|/|\\/|g}/, "$${GEM_HOME}"); } .endif # _RUBY_MK |