summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2005-01-16 11:48:56 +0000
committertaca <taca@pkgsrc.org>2005-01-16 11:48:56 +0000
commit449c9cf5ce3fd2d7f84242d1db898d574c3667b0 (patch)
treea4620bed6d4174bb7499adbfd922352fae0b7697 /lang
parentd73e60c9da24d5583e6ab4d7b32bf8ac5ec20818 (diff)
downloadpkgsrc-449c9cf5ce3fd2d7f84242d1db898d574c3667b0.tar.gz
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.)
Diffstat (limited to 'lang')
-rw-r--r--lang/ruby/rubyversion.mk13
1 files changed, 11 insertions, 2 deletions
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.
#