summaryrefslogtreecommitdiff
path: root/lang/ruby24-base/options.mk
diff options
context:
space:
mode:
Diffstat (limited to 'lang/ruby24-base/options.mk')
-rw-r--r--lang/ruby24-base/options.mk16
1 files changed, 16 insertions, 0 deletions
diff --git a/lang/ruby24-base/options.mk b/lang/ruby24-base/options.mk
new file mode 100644
index 00000000000..90ddbd84544
--- /dev/null
+++ b/lang/ruby24-base/options.mk
@@ -0,0 +1,16 @@
+# $NetBSD: options.mk,v 1.1 2017/06/18 13:45:11 taca Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.ruby
+PKG_SUPPORTED_OPTIONS= ruby-build-ri-db
+PKG_SUGGESTED_OPTIONS= ruby-build-ri-db
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mruby-build-ri-db)
+#PRIVILEGED_STAGES+= clean
+RUBY_DYNAMIC_DIRS+= ${RUBY_SYSRIDIR}
+# Use huge memory.
+UNLIMIT_RESOURCES+= datasize
+.else
+CONFIGURE_ARGS+= --enable-install-doc=no
+.endif