diff options
author | knu <knu@FreeBSD.org> | 2002-12-07 01:17:38 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2002-12-07 01:17:38 +0800 |
commit | 9c46f078394d114e50ad01ff921a88b74dda7eb1 (patch) | |
tree | 4810246f6e2ebdc6787c76cd4552ffabb88ae682 /databases | |
parent | 1900d9b4804ade641a7bbef2252af134e5f2ba8f (diff) | |
download | freebsd-ports-gnome-9c46f078394d114e50ad01ff921a88b74dda7eb1.tar.gz freebsd-ports-gnome-9c46f078394d114e50ad01ff921a88b74dda7eb1.tar.zst freebsd-ports-gnome-9c46f078394d114e50ad01ff921a88b74dda7eb1.zip |
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
Diffstat (limited to 'databases')
-rw-r--r-- | databases/ruby-search-namazu/Makefile | 27 | ||||
-rw-r--r-- | databases/ruby-search-namazu/pkg-plist | 4 |
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%% |