summaryrefslogtreecommitdiff
path: root/textproc/ruby-sary/Makefile
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2002-12-06 17:17:38 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2002-12-06 17:17:38 +0000
commit185ceb675cf8b26e316a037b83225c000ff26f23 (patch)
tree529039d77da5b882444fb862a40d4fea197d5466 /textproc/ruby-sary/Makefile
parentFinish repo copy move: remove from old category, link into new, add (diff)
Introduce a knob RUBY_NO_RD_HTML and enable it by default on alpha. This
replaces the non-working NOPORTDOCS workaround and fixes build on the alpha, where rd2 coredumps. Tested on: the axp cluster Approved by: kris
Notes
Notes: svn path=/head/; revision=71402
Diffstat (limited to 'textproc/ruby-sary/Makefile')
-rw-r--r--textproc/ruby-sary/Makefile23
1 files changed, 11 insertions, 12 deletions
diff --git a/textproc/ruby-sary/Makefile b/textproc/ruby-sary/Makefile
index f2ed6de3cc84..dbfe48b49334 100644
--- a/textproc/ruby-sary/Makefile
+++ b/textproc/ruby-sary/Makefile
@@ -19,24 +19,25 @@ LIB_DEPENDS= sary.8:${PORTSDIR}/textproc/sary
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
-USE_RUBY_RDTOOL= yes
RUBY_WITH_PTHREAD= yes
INSTALL_TARGET= site-install
-DOCS_EN= ChangeLog *.en.*
-DOCS_JA= *.ja.*
+RUBY_RD_FILES= *.en.rd *.ja.rd
-post-build:
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC}; for f in *.rd; do \
- ${RUBY_RD2} $$f > $${f%.rd}.html; \
- done
-.endif
+DOCS_EN= ChangeLog \
+ ${RUBY_RD_FILES:M*.en.rd} \
+ ${RUBY_RD_HTML_FILES:M*.en.html}
+DOCS_JA= ${RUBY_RD_FILES:M*.ja.rd} \
+ ${RUBY_RD_HTML_FILES:M*.ja.html}
-post-install:
+post-install: doc-install
${INSTALL_SCRIPT} ${WRKSRC}/rsary.rb ${PREFIX}/bin/
+
+.include <bsd.port.mk>
+
+doc-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${RUBY_MODDOCDIR}/ja
.for f in ${DOCS_EN}
@@ -46,5 +47,3 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ja/
.endfor
.endif
-
-.include <bsd.port.mk>