summaryrefslogtreecommitdiffstats
path: root/Mk/bsd.ruby.mk
diff options
context:
space:
mode:
Diffstat (limited to 'Mk/bsd.ruby.mk')
-rw-r--r--Mk/bsd.ruby.mk10
1 files changed, 8 insertions, 2 deletions
diff --git a/Mk/bsd.ruby.mk b/Mk/bsd.ruby.mk
index aa3e719..62c4c6e 100644
--- a/Mk/bsd.ruby.mk
+++ b/Mk/bsd.ruby.mk
@@ -17,7 +17,7 @@ Ruby_Include_MAINTAINER= knu@FreeBSD.org
# RUBY_VER - (See below)
# RUBY_DEFAULT_VER - Set to (e.g.) "1.8" if you want to refer to "ruby18" just as "ruby".
# RUBY_ARCH - (See below)
-# RUBY_NO_RD_HTML - Define if you don't want HTML files generated from RD files.
+# RUBY_RD_HTML - Define if you want HTML files generated from RD files.
#
# [variables that each port can define]
#
@@ -400,14 +400,20 @@ RUN_DEPENDS+= ${DEPEND_RUBY_AMSTD}
# documents
-.if defined(NOPORTDOCS)
RUBY_NO_RD_HTML= yes
+
+.if defined(RUBY_RD_HTML)
+.undef RUBY_NO_RD_HTML
.endif
.if (${ARCH} == alpha || ${ARCH} == sparc64) && ${RUBY_VER} <= 1.6
RUBY_NO_RD_HTML= yes
.endif
+.if defined(NOPORTDOCS)
+RUBY_NO_RD_HTML= yes
+.endif
+
.if defined(RUBY_RD_FILES) && !defined(RUBY_NO_RD_HTML)
USE_RUBY_RDTOOL= yes
OpenPOWER on IntegriCloud