pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/ruby Introduce RUBY_HAS_ARCHLIB.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/97a5e1fe9646
branches:  trunk
changeset: 487523:97a5e1fe9646
user:      taca <taca%pkgsrc.org@localhost>
date:      Sun Jan 16 11:48:56 2005 +0000

description:
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:

 lang/ruby/rubyversion.mk |  13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diffs (33 lines):

diff -r 7a1076ace335 -r 97a5e1fe9646 lang/ruby/rubyversion.mk
--- a/lang/ruby/rubyversion.mk  Sun Jan 16 08:59:55 2005 +0000
+++ b/lang/ruby/rubyversion.mk  Sun Jan 16 11:48:56 2005 +0000
@@ -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_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.
 #



Home | Main Index | Thread Index | Old Index