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 /devel/ruby-bsearch | |
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 'devel/ruby-bsearch')
-rw-r--r-- | devel/ruby-bsearch/Makefile | 25 | ||||
-rw-r--r-- | devel/ruby-bsearch/pkg-plist | 4 |
2 files changed, 15 insertions, 14 deletions
diff --git a/devel/ruby-bsearch/Makefile b/devel/ruby-bsearch/Makefile index 5fc0539b517b..54b53110b4fe 100644 --- a/devel/ruby-bsearch/Makefile +++ b/devel/ruby-bsearch/Makefile @@ -16,21 +16,24 @@ DIST_SUBDIR= ruby MAINTAINER= knu@FreeBSD.org USE_RUBY= yes -USE_RUBY_RDTOOL= yes -DOCS_EN= ChangeLog bsearch.en.html bsearch.en.rd -DOCS_JA= bsearch.ja.html bsearch.ja.rd +NO_BUILD= yes -do-build: -.if !defined(NOPORTDOCS) -.for f in bsearch.en.rd bsearch.ja.rd - @cd ${WRKSRC}; \ - ${RUBY_RD2} ${f} > ${f:R}.html -.endfor -.endif +RUBY_RD_FILES= bsearch.en.rd bsearch.ja.rd +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} do-install: ${INSTALL_SCRIPT} ${WRKSRC}/bsearch.rb ${RUBY_SITELIBDIR}/ + +post-install: doc-install + +.include <bsd.port.mk> + +doc-install: .if !defined(NOPORTDOCS) ${MKDIR} ${RUBY_MODDOCDIR}/ja .for f in ${DOCS_EN} @@ -40,5 +43,3 @@ do-install: ${INSTALL_SCRIPT} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ja/ .endfor .endif - -.include <bsd.port.mk> diff --git a/devel/ruby-bsearch/pkg-plist b/devel/ruby-bsearch/pkg-plist index 11b0c3c4dc9f..59b938ce76a9 100644 --- a/devel/ruby-bsearch/pkg-plist +++ b/devel/ruby-bsearch/pkg-plist @@ -1,8 +1,8 @@ %%RUBY_SITELIBDIR%%/bsearch.rb %%PORTDOCS%%%%RUBY_MODDOCDIR%%/ChangeLog -%%PORTDOCS%%%%RUBY_MODDOCDIR%%/bsearch.en.html +%%PORTDOCS%%%%RUBY_RD_HTML_FILES%%%%RUBY_MODDOCDIR%%/bsearch.en.html %%PORTDOCS%%%%RUBY_MODDOCDIR%%/bsearch.en.rd -%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/bsearch.ja.html +%%PORTDOCS%%%%RUBY_RD_HTML_FILES%%%%RUBY_MODDOCDIR%%/ja/bsearch.ja.html %%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/bsearch.ja.rd %%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%/ja %%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%% |