summaryrefslogtreecommitdiff
path: root/lang/ruby
diff options
context:
space:
mode:
authortaca <taca>2004-12-04 16:05:06 +0000
committertaca <taca>2004-12-04 16:05:06 +0000
commit67784a4279961cafb9b0c08170e6fbfcdd27e947 (patch)
tree295327f01945b3adfcd2803d7e3b4017f85d1b22 /lang/ruby
parent8455d66163108b7b7338375e83ed7d1af28844bb (diff)
downloadpkgsrc-67784a4279961cafb9b0c08170e6fbfcdd27e947.tar.gz
- Introduce RUBY_DLEXT which is used to replace suffix of Ruby's
extention library. It will be used for Darwin support. - Change RUBY_VERSION_LIST from space separated list to comma separated list.
Diffstat (limited to 'lang/ruby')
-rw-r--r--lang/ruby/rubyversion.mk16
1 files changed, 13 insertions, 3 deletions
diff --git a/lang/ruby/rubyversion.mk b/lang/ruby/rubyversion.mk
index ec4c9f8cf12..84bb888b139 100644
--- a/lang/ruby/rubyversion.mk
+++ b/lang/ruby/rubyversion.mk
@@ -1,4 +1,4 @@
-# $NetBSD: rubyversion.mk,v 1.4 2004/12/01 15:30:16 taca Exp $
+# $NetBSD: rubyversion.mk,v 1.5 2004/12/04 16:05:06 taca Exp $
#
.ifndef _RUBYVERSION_MK
@@ -41,7 +41,7 @@ RUBY_VERSION_SUPPORTED?= 16 18
# RUBY_VERSION_LIST defines the list of ${RUBY_VER} which is known to
# this framework.
#
-RUBY_VERSION_LIST= 16 18
+RUBY_VERSION_LIST= 16,18
# RUBY_NOVERSION should be set to "Yes" if the package dosen't depend on
# any specific version of ruby command. In this case, package's
@@ -119,6 +119,15 @@ RUBY_ARCH?= ${LOWER_ARCH}-${LOWER_OPSYS}-gnu
.endif
#
+# RUBY_DLEXT is suffix of extention library.
+#
+.if ${OPSYS} == "Darwin"
+RUBY_DLEXT= bundle
+.else
+RUBY_DLEXT= so
+.endif
+
+#
# common PATH
#
RUBY_LIBDIR?= ${LOCALBASE}/lib/ruby/${RUBY_VER_DIR}
@@ -146,7 +155,8 @@ PLIST_RUBY_DIRS= RUBY_LIBDIR="${RUBY_LIBDIR}" \
RUBY_SITELIBDIR="${RUBY_SITELIBDIR}" \
RUBY_SITEARCHLIBDIR="${RUBY_SITEARCHLIBDIR}" \
RUBY_DOCDIR="${RUBY_DOCDIR}" \
- RUBY_EXAMPLESDIR="${RUBY_EXAMPLESDIR}"
+ RUBY_EXAMPLESDIR="${RUBY_EXAMPLESDIR}" \
+ RUBY_DLEXT="${RUBY_DLEXT}"
PLIST_SUBST+= RUBY_VER="${RUBY_VER}" \
${PLIST_RUBY_DIRS:S,DIR="${LOCALBASE}/,DIR=",}