summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
Diffstat (limited to 'textproc')
-rw-r--r--textproc/ruby-rdtool/Makefile15
-rw-r--r--textproc/ruby-rdtool/pkg-plist1
2 files changed, 10 insertions, 6 deletions
diff --git a/textproc/ruby-rdtool/Makefile b/textproc/ruby-rdtool/Makefile
index 36d17062f4ba..fe442dc129f9 100644
--- a/textproc/ruby-rdtool/Makefile
+++ b/textproc/ruby-rdtool/Makefile
@@ -16,11 +16,8 @@ MAINTAINER= knu@FreeBSD.org
BUILD_DEPENDS= ${DEPEND_RUBY_AMSTD} \
racc:${PORTSDIR}/devel/ruby-racc \
- ${RUBY_SITELIBDIR}/strscan.rb:${PORTSDIR}/devel/ruby-strscan \
- ${RUBY_SITELIBDIR}/optparse.rb:${PORTSDIR}/devel/ruby-optparse
-RUN_DEPENDS= ${RUBY_SITELIBDIR}/racc/parser.rb:${PORTSDIR}/devel/ruby-racc-runtime \
- ${RUBY_SITELIBDIR}/strscan.rb:${PORTSDIR}/devel/ruby-strscan \
${RUBY_SITELIBDIR}/optparse.rb:${PORTSDIR}/devel/ruby-optparse
+RUN_DEPENDS= ${RUBY_SITELIBDIR}/optparse.rb:${PORTSDIR}/devel/ruby-optparse
USE_RUBY= yes
@@ -32,6 +29,14 @@ XEMACSLISPDIR= ${PREFIX}/lib/xemacs/site-lisp
DOCS_EN= README.html doc/rd-draft.rd doc/rd-draft.html
DOCS_JA= README.ja.html doc/rd-draft.rd.ja doc/rd-draft.ja.html
+.include <bsd.port.pre.mk>
+
+.if ${RUBY_VER} < 1.7
+BUILD_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/strscan.so:${PORTSDIR}/lang/ruby16-shim-ruby18
+RUN_DEPENDS+= ${RUBY_SITELIBDIR}/racc/parser.rb:${PORTSDIR}/lang/ruby16-shim-ruby18 \
+ ${RUBY_SITEARCHLIBDIR}/strscan.so:${PORTSDIR}/lang/ruby16-shim-ruby18
+.endif
+
do-configure:
@cd ${WRKSRC}; \
${SETENV} ${CONFIGURE_ENV} ${RUBY} rdtoolconf.rb
@@ -69,4 +74,4 @@ post-install:
.endif
@${CAT} ${PKGMESSAGE}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/textproc/ruby-rdtool/pkg-plist b/textproc/ruby-rdtool/pkg-plist
index a72b59230714..d1bddff95c1d 100644
--- a/textproc/ruby-rdtool/pkg-plist
+++ b/textproc/ruby-rdtool/pkg-plist
@@ -37,7 +37,6 @@ bin/rmi2html.rb
@dirrm %%RUBY_SITELIBDIR%%/rd
%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/rd/dot.rd2rc
%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%/rd
-%%PORTDOCS%%@comment %%RUBY_DOCDIR%%/amstd/ja/amstd-ja.html
%%PORTDOCS%%%%RUBY_DOCDIR%%/rd/README.html
%%PORTDOCS%%%%RUBY_DOCDIR%%/rd/rd-draft.html
%%PORTDOCS%%%%RUBY_DOCDIR%%/rd/rd-draft.rd