aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
Diffstat (limited to 'databases')
-rw-r--r--databases/ruby-search-namazu/Makefile27
-rw-r--r--databases/ruby-search-namazu/pkg-plist4
2 files changed, 18 insertions, 13 deletions
diff --git a/databases/ruby-search-namazu/Makefile b/databases/ruby-search-namazu/Makefile
index 3089064d0675..4318f4cf8d6c 100644
--- a/databases/ruby-search-namazu/Makefile
+++ b/databases/ruby-search-namazu/Makefile
@@ -19,21 +19,26 @@ LIB_DEPENDS= nmz.6:${PORTSDIR}/japanese/namazu2
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
-USE_RUBY_RDTOOL= yes
INSTALL_TARGET= site-install
-post-build:
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC}; ${RUBY_RD2} search-namazu.en.rd > search-namazu.en.html
- cd ${WRKSRC}; ${RUBY_RD2} search-namazu.ja.rd > search-namazu.ja.html
-.endif
+RUBY_RD_FILES= search-namazu.en.rd search-namazu.ja.rd
+DOCS_EN= ${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
+
+.include <bsd.port.mk>
+
+doc-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${RUBY_MODDOCDIR}/ja
- ${INSTALL_DATA} ${WRKSRC}/search-namazu.en.* ${RUBY_MODDOCDIR}/
- ${INSTALL_DATA} ${WRKSRC}/search-namazu.ja.* ${RUBY_MODDOCDIR}/ja/
+.for f in ${DOCS_EN}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
+.endfor
+.for f in ${DOCS_JA}
+ ${INSTALL_SCRIPT} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ja/
+.endfor
.endif
-
-.include <bsd.port.mk>
diff --git a/databases/ruby-search-namazu/pkg-plist b/databases/ruby-search-namazu/pkg-plist
index 71d2b3d31dcd..43b26a4db2fc 100644
--- a/databases/ruby-search-namazu/pkg-plist
+++ b/databases/ruby-search-namazu/pkg-plist
@@ -1,8 +1,8 @@
%%RUBY_SITEARCHLIBDIR%%/search/namazu.so
@dirrm %%RUBY_SITEARCHLIBDIR%%/search
-%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/search-namazu.ja.html
+%%PORTDOCS%%%%RUBY_RD_HTML_FILES%%%%RUBY_MODDOCDIR%%/ja/search-namazu.ja.html
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/search-namazu.ja.rd
-%%PORTDOCS%%%%RUBY_MODDOCDIR%%/search-namazu.en.html
+%%PORTDOCS%%%%RUBY_RD_HTML_FILES%%%%RUBY_MODDOCDIR%%/search-namazu.en.html
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/search-namazu.en.rd
%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%/ja
%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%