diff options
author | Akinori MUSHA <knu@FreeBSD.org> | 2002-12-06 17:17:38 +0000 |
---|---|---|
committer | Akinori MUSHA <knu@FreeBSD.org> | 2002-12-06 17:17:38 +0000 |
commit | 185ceb675cf8b26e316a037b83225c000ff26f23 (patch) | |
tree | 529039d77da5b882444fb862a40d4fea197d5466 /devel/ruby-cvs | |
parent | Finish 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 'devel/ruby-cvs')
-rw-r--r-- | devel/ruby-cvs/Makefile | 24 | ||||
-rw-r--r-- | devel/ruby-cvs/pkg-plist | 6 |
2 files changed, 17 insertions, 13 deletions
diff --git a/devel/ruby-cvs/Makefile b/devel/ruby-cvs/Makefile index 262ad66b8706..25b07fcd6b1f 100644 --- a/devel/ruby-cvs/Makefile +++ b/devel/ruby-cvs/Makefile @@ -19,23 +19,29 @@ MAINTAINER= knu@FreeBSD.org RUN_DEPENDS= ${RUBY_SITEARCHLIBDIR}/flex.so:${PORTSDIR}/devel/ruby-flex_rb USE_RUBY= yes -USE_RUBY_RDTOOL= yes +NO_BUILD= yes + +RUBY_RD_FILES= cvs.rb diff.rb tempdir.rb RUBY_SHEBANG_FILES= ${WRKSRC}/viztree ${WRKSRC}/reviz/reviz WRKSRC= ${WRKDIR}/ruby-${PORTNAME} -DOCS= README TODO cvs.html diff.html tempdir.html +DOCS= README TODO ${RUBY_RD_HTML_FILES} -do-build: -.if !defined(NOPORTDOCS) - cd ${WRKSRC}; ${RUBY_RD2} lib/cvs.rb > cvs.html - cd ${WRKSRC}; ${RUBY_RD2} lib/diff.rb > diff.html - cd ${WRKSRC}; ${RUBY_RD2} lib/tempdir.rb > tempdir.html -.endif +post-extract: +.for f in ${RUBY_RD_FILES} + cd ${WRKSRC}; ${LN} -sf lib/${f} +.endfor do-install: ${CP} -R ${WRKSRC}/lib/* ${RUBY_SITELIBDIR}/ + +post-install: doc-install + +.include <bsd.port.mk> + +doc-install: .if !defined(NOPORTDOCS) ${MKDIR} ${RUBY_MODEXAMPLESDIR}/reviz ${INSTALL_DATA} ${WRKSRC}/viztree ${RUBY_MODEXAMPLESDIR}/ @@ -45,5 +51,3 @@ do-install: ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ .endfor .endif - -.include <bsd.port.mk> diff --git a/devel/ruby-cvs/pkg-plist b/devel/ruby-cvs/pkg-plist index c1c6ef1002d1..40128e4eb71e 100644 --- a/devel/ruby-cvs/pkg-plist +++ b/devel/ruby-cvs/pkg-plist @@ -34,7 +34,7 @@ %%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%% %%PORTDOCS%%%%RUBY_MODDOCDIR%%/README %%PORTDOCS%%%%RUBY_MODDOCDIR%%/TODO -%%PORTDOCS%%%%RUBY_MODDOCDIR%%/cvs.html -%%PORTDOCS%%%%RUBY_MODDOCDIR%%/diff.html -%%PORTDOCS%%%%RUBY_MODDOCDIR%%/tempdir.html +%%PORTDOCS%%%%RUBY_RD_HTML_FILES%%%%RUBY_MODDOCDIR%%/cvs.html +%%PORTDOCS%%%%RUBY_RD_HTML_FILES%%%%RUBY_MODDOCDIR%%/diff.html +%%PORTDOCS%%%%RUBY_RD_HTML_FILES%%%%RUBY_MODDOCDIR%%/tempdir.html %%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%% |