aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/bsd.ruby.mk
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2013-09-19 16:16:43 +0800
committerbapt <bapt@FreeBSD.org>2013-09-19 16:16:43 +0800
commite96411f7bd3a8c50ad224e7597bfabac5d3365fc (patch)
tree05d309c8525dca581e8ee3aab697d460af0220cd /Mk/bsd.ruby.mk
parent6e792276d33efbc93e8d6333669e7def8301851a (diff)
downloadfreebsd-ports-gnome-e96411f7bd3a8c50ad224e7597bfabac5d3365fc.tar.gz
freebsd-ports-gnome-e96411f7bd3a8c50ad224e7597bfabac5d3365fc.tar.zst
freebsd-ports-gnome-e96411f7bd3a8c50ad224e7597bfabac5d3365fc.zip
Introduce the one-true-way to handle multi version ports
This defines a new macros for end users! DEFAULT_VERSIONS. This macros is used to end-users to define what version they want to be the default version for the whole ports tree (for ports allowing that) Syntax is the following: DEFAULT_VERSIONS= perl5=5.18 ruby=2.0 Swith bsd.ruby.mk to use it[1], switch Uses/perl5.mk to use it[2] If you are maintaining settable multi version port, please change it so it uses DEFAULT_VERSIONS. Reviewed by: ruby (swills) [1], perl (az) [2] Approved by: ruby (swills) [1], perl (az) [2]
Diffstat (limited to 'Mk/bsd.ruby.mk')
-rw-r--r--Mk/bsd.ruby.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/Mk/bsd.ruby.mk b/Mk/bsd.ruby.mk
index cdff2eea781b..53bc54af8c6a 100644
--- a/Mk/bsd.ruby.mk
+++ b/Mk/bsd.ruby.mk
@@ -137,7 +137,13 @@ Ruby_Include_MAINTAINER= ruby@FreeBSD.org
# RUBY_ELISPDIR - Installation path for emacs lisp files.
#
-RUBY_DEFAULT_VER?= 1.9
+.include "${PORTSDIR}/Mk/bsd.default-versions.mk"
+
+.if defined(RUBY_DEFAULT_VER)
+WARNING+= "Using RUBY_DEFAULT_VER in make.conf, consider using DEFAULT_VERSION=ruby=${RUBY_DEFAULT_VER}"
+.endif
+
+RUBY_DEFAULT_VER?= ${RUBY_DEFAULT}
RUBY_VER?= ${RUBY_DEFAULT_VER}