aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/ruby-rdtool
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2002-06-09 02:23:55 +0800
committerknu <knu@FreeBSD.org>2002-06-09 02:23:55 +0800
commit944160e12845b60fc7e00bbe6502bbf8082aae86 (patch)
tree50b1f080c308d8fae6ad34ddb92cb1a0d2912f75 /textproc/ruby-rdtool
parent51e100292eec292f91b094a4513c7e39741a1c2d (diff)
downloadfreebsd-ports-gnome-944160e12845b60fc7e00bbe6502bbf8082aae86.tar.gz
freebsd-ports-gnome-944160e12845b60fc7e00bbe6502bbf8082aae86.tar.zst
freebsd-ports-gnome-944160e12845b60fc7e00bbe6502bbf8082aae86.zip
devel/ruby-racc-runtime and devel/ruby-strscan have been replaced with
lang/ruby16-shim-ruby18.
Diffstat (limited to 'textproc/ruby-rdtool')
-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