From 9d6ba206bf3cb5dbda728145565384a8465fbbe3 Mon Sep 17 00:00:00 2001 From: taca Date: Sun, 16 Jan 2005 11:48:56 +0000 Subject: Introduce RUBY_HAS_ARCHLIB. RUBY_HAS_ARCHLIB This package contains machine dependent binaries. This macro takes boolean value (yes/no) and if it is yes, the requierd version of Ruby will change to current pkgsrc's version not minimum version like 1.6.8 or 1.8.1. (It would make sence when Ruby package step to 1.8.2 or lator.) --- lang/ruby/rubyversion.mk | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'lang/ruby') diff --git a/lang/ruby/rubyversion.mk b/lang/ruby/rubyversion.mk index 84bb888b139..4ef46a91f5b 100644 --- a/lang/ruby/rubyversion.mk +++ b/lang/ruby/rubyversion.mk @@ -1,4 +1,4 @@ -# $NetBSD: rubyversion.mk,v 1.5 2004/12/04 16:05:06 taca Exp $ +# $NetBSD: rubyversion.mk,v 1.6 2005/01/16 11:48:56 taca Exp $ # .ifndef _RUBYVERSION_MK @@ -66,13 +66,22 @@ _RUBY_VERS_TEENY= ${RUBY_VERSION:C/([0-9]+)\.([0-9]+)\.([0-9]+)/\3/} RUBY_VER= ${_RUBY_VER_MAJOR}${_RUBY_VER_MINOR} # -# RUBY_REQD is minimum required Ruby's version +# RUBY_HAS_ARCHLIB This package contains machine dependent binaries. +# RUBY_REQD Minimum required Ruby's version # +.if defined(RUBY_HAS_ARCHLIB) && empty(RUBY_HAS_ARCHLIB:M[nN][oO]) +.if ${RUBY_VER} == "16" +RUBY_REQD?= ${RUBY16_VERSION} +.elif ${RUBY_VER} == "18" +RUBY_REQD?= ${RUBY18_VERSION} +.endif +.else .if ${RUBY_VER} == "16" RUBY_REQD?= 1.6.8 .elif ${RUBY_VER} == "18" RUBY_REQD?= 1.8.1 .endif +.endif # RUBY_SUFFIX is appended to Ruby's commands; ruby, irb and so on. # -- cgit v1.2.3