aboutsummaryrefslogtreecommitdiff
path: root/textproc/ruby-sary
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/ruby-sary')
-rw-r--r--textproc/ruby-sary/Makefile23
-rw-r--r--textproc/ruby-sary/pkg-plist8
2 files changed, 15 insertions, 16 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>
diff --git a/textproc/ruby-sary/pkg-plist b/textproc/ruby-sary/pkg-plist
index 996ea25602fd..c19df584e113 100644
--- a/textproc/ruby-sary/pkg-plist
+++ b/textproc/ruby-sary/pkg-plist
@@ -1,13 +1,13 @@
bin/rsary.rb
%%RUBY_SITEARCHLIBDIR%%/sary.so
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ChangeLog
-%%PORTDOCS%%%%RUBY_MODDOCDIR%%/README.en.html
+%%PORTDOCS%%%%RUBY_RD_HTML_FILES%%%%RUBY_MODDOCDIR%%/README.en.html
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/README.en.rd
-%%PORTDOCS%%%%RUBY_MODDOCDIR%%/Reference.en.html
+%%PORTDOCS%%%%RUBY_RD_HTML_FILES%%%%RUBY_MODDOCDIR%%/Reference.en.html
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/Reference.en.rd
-%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/README.ja.html
+%%PORTDOCS%%%%RUBY_RD_HTML_FILES%%%%RUBY_MODDOCDIR%%/ja/README.ja.html
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/README.ja.rd
-%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/Reference.ja.html
+%%PORTDOCS%%%%RUBY_RD_HTML_FILES%%%%RUBY_MODDOCDIR%%/ja/Reference.ja.html
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/Reference.ja.rd
%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%/ja
%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%