aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2003-08-18 11:41:58 +0800
committerknu <knu@FreeBSD.org>2003-08-18 11:41:58 +0800
commit3a98d0aaceb0a39fc05504b661eb14826896a2ee (patch)
tree6d23f467d10a23d4ffafc5254f9871cb62230628 /Mk
parent2ba5e48b75490e0f00cf996f706a736340f7b39c (diff)
downloadfreebsd-ports-gnome-3a98d0aaceb0a39fc05504b661eb14826896a2ee.tar.gz
freebsd-ports-gnome-3a98d0aaceb0a39fc05504b661eb14826896a2ee.tar.zst
freebsd-ports-gnome-3a98d0aaceb0a39fc05504b661eb14826896a2ee.zip
Add RUBY18_ONLY to PLIST_SUB.
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.ruby.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/Mk/bsd.ruby.mk b/Mk/bsd.ruby.mk
index 9c8c73171d25..821162dedc2b 100644
--- a/Mk/bsd.ruby.mk
+++ b/Mk/bsd.ruby.mk
@@ -251,6 +251,12 @@ PLIST_SUB+= RUBY_VERSION="${RUBY_VERSION}" \
RUBY_DEFAULT_SUFFIX="${RUBY_DEFAULT_SUFFIX}" \
${PLIST_RUBY_DIRS:S,DIR="${LOCALBASE}/,DIR=",}
+.if ${RUBY_VER} >= 1.8
+PLIST_SUB+= RUBY18_ONLY=""
+.else
+PLIST_SUB+= RUBY18_ONLY="@comment "
+.endif
+
# require check
.if defined(RUBY_REQUIRE)
USE_RUBY= yes