summaryrefslogtreecommitdiff
path: root/lang/ruby/modules.mk
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2012-03-20 06:14:30 +0000
committertaca <taca@pkgsrc.org>2012-03-20 06:14:30 +0000
commitfd24f21365389f7fb7d2735f3f4e35f63923b736 (patch)
treef27165109022651faf75fd13e009db5cac81b4ce /lang/ruby/modules.mk
parent8bda9fec69ffe8397693f8cc1bbb7b50e44e8709 (diff)
downloadpkgsrc-fd24f21365389f7fb7d2735f3f4e35f63923b736.tar.gz
* Move some rails related part from gem.mk to module.mk.
* Require rdoc 2.5.0 and later with Ruby on Rails version 3.1 and later.
Diffstat (limited to 'lang/ruby/modules.mk')
-rw-r--r--lang/ruby/modules.mk13
1 files changed, 12 insertions, 1 deletions
diff --git a/lang/ruby/modules.mk b/lang/ruby/modules.mk
index 2f954008124..dfd625667ca 100644
--- a/lang/ruby/modules.mk
+++ b/lang/ruby/modules.mk
@@ -1,8 +1,12 @@
-# $NetBSD: modules.mk,v 1.32 2012/03/17 13:53:01 taca Exp $
+# $NetBSD: modules.mk,v 1.33 2012/03/20 06:14:30 taca Exp $
.if !defined(_RUBY_MODULE_MK)
_RUBY_MODULE_MK= # defined
+.if defined(RUBY_RAILS_SUPPORTED)
+USE_TOOLS+= expr
+.endif
+
.include "../../lang/ruby/rubyversion.mk"
#
@@ -16,6 +20,13 @@ DEPENDS+= ruby${RUBY_VER}-base>=${RUBY_VERSION}:../../lang/${RUBY_BASE}
.include "../../lang/ruby/buildlink3.mk"
.endif
+.if defined(RUBY_RAILS_SUPPORTED)
+.include "../../lang/ruby/rails.mk"
+.if ${RUBY_RAILS} > 3
+RUBY_RDOC_REQD?= 2.5.0
+.endif
+.endif
+
#
# rdoc version
#