summaryrefslogtreecommitdiff
path: root/lang/ruby
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2015-03-15 14:00:57 +0000
committertaca <taca@pkgsrc.org>2015-03-15 14:00:57 +0000
commitfaefe9835c7d98f467a19d6d84a05cee0ef59997 (patch)
treeb43fd7f9855e199bb734b8cffb6d3b2009dd0164 /lang/ruby
parent97e634a0a296613b41b05ee728c527610a5d7338 (diff)
downloadpkgsrc-faefe9835c7d98f467a19d6d84a05cee0ef59997.tar.gz
Add RUBY_MAJOR_MINOR to use in PLIST.
Diffstat (limited to 'lang/ruby')
-rw-r--r--lang/ruby/rubyversion.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/lang/ruby/rubyversion.mk b/lang/ruby/rubyversion.mk
index 54205b30dbf..70920ec038f 100644
--- a/lang/ruby/rubyversion.mk
+++ b/lang/ruby/rubyversion.mk
@@ -1,4 +1,4 @@
-# $NetBSD: rubyversion.mk,v 1.137 2015/03/08 16:17:01 taca Exp $
+# $NetBSD: rubyversion.mk,v 1.138 2015/03/15 14:00:57 taca Exp $
#
# This file determines which Ruby version is used as a dependency for
@@ -402,6 +402,8 @@ RDOC?= ${PREFIX}/bin/rdoc${RUBY_SUFFIX}
RUBY_ARCH?= ${MACHINE_GNU_ARCH}-${LOWER_OPSYS}${APPEND_ELF}${LOWER_OPSYS_VERSUFFIX}${APPEND_ABI}
+RUBY_MAJOR_MINOR= ${_RUBY_VER_MAJOR}.${_RUBY_VER_MINOR}
+
#
# Ruby shared and static library version handling.
#
@@ -576,7 +578,8 @@ PLIST_SUBST+= RUBY=${RUBY:Q} RUBY_VER=${RUBY_VER:Q} \
RUBY_SHLIBALIAS=${RUBY_SHLIBALIAS:Q} \
RUBY_STATICLIB=${RUBY_STATICLIB:Q} \
RUBY_ARCH=${RUBY_ARCH:Q} \
- ${PLIST_RUBY_DIRS:S,DIR="${PREFIX}/,DIR=",}
+ ${PLIST_RUBY_DIRS:S,DIR="${PREFIX}/,DIR=",} \
+ RUBY_MAJOR_MINOR=${RUBY_MAJOR_MINOR}
#
# make dynamic PLIST