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 /print/ruby-pdflib | |
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 'print/ruby-pdflib')
-rw-r--r-- | print/ruby-pdflib/Makefile | 26 | ||||
-rw-r--r-- | print/ruby-pdflib/pkg-plist | 4 |
2 files changed, 13 insertions, 17 deletions
diff --git a/print/ruby-pdflib/Makefile b/print/ruby-pdflib/Makefile index 1655da5e68ab..59a8a344de99 100644 --- a/print/ruby-pdflib/Makefile +++ b/print/ruby-pdflib/Makefile @@ -22,30 +22,28 @@ LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \ USE_RUBY= yes USE_RUBY_EXTCONF= yes -USE_RUBY_RDTOOL= yes WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} INSTALL_TARGET= site-install +RUBY_RD_FILES= pdflib-api.rd pdflib-api-jp.rd + DOCS_EN= ChangeLog README \ - ${RD_DOCS_EN} ${RD_DOCS_EN:S/.rd/.html/} + ${RUBY_RD_FILES:N*-jp.rd} \ + ${RUBY_RD_HTML_FILES:N*-jp.html} DOCS_JA= ChangeLog.jp README.jp \ - ${RD_DOCS_JA} ${RD_DOCS_JA:S/.rd/.html/} -RD_DOCS_EN= pdflib-api.rd -RD_DOCS_JA= pdflib-api-jp.rd + ${RUBY_RD_FILES:M*-jp.rd} \ + ${RUBY_RD_HTML_FILES:M*-jp.html} + EXAMPLES_EN= hello.rb pdfclock.rb pdfgraph.rb \ pdfimage.rb text2pdf.rb EXAMPLES_JA= jtext2pdf.rb -post-build: -.if !defined(NOPORTDOCS) -.for f in ${RD_DOCS_EN} ${RD_DOCS_JA} - cd ${WRKSRC}; \ - ${RUBY_RD2} ${f} > ${f:S/.rd/.html/} -.endfor -.endif +post-install: doc-install -post-install: +.include <bsd.port.mk> + +doc-install: .if !defined(NOPORTDOCS) ${MKDIR} ${RUBY_MODEXAMPLESDIR}/ja .for f in ${EXAMPLES_EN} @@ -62,5 +60,3 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ja/ .endfor .endif - -.include <bsd.port.mk> diff --git a/print/ruby-pdflib/pkg-plist b/print/ruby-pdflib/pkg-plist index 29020613836a..d8a6805009fc 100644 --- a/print/ruby-pdflib/pkg-plist +++ b/print/ruby-pdflib/pkg-plist @@ -1,11 +1,11 @@ %%RUBY_SITEARCHLIBDIR%%/pdflib.so %%PORTDOCS%%%%RUBY_MODDOCDIR%%/ChangeLog %%PORTDOCS%%%%RUBY_MODDOCDIR%%/README -%%PORTDOCS%%%%RUBY_MODDOCDIR%%/pdflib-api.html +%%PORTDOCS%%%%RUBY_RD_HTML_FILES%%%%RUBY_MODDOCDIR%%/pdflib-api.html %%PORTDOCS%%%%RUBY_MODDOCDIR%%/pdflib-api.rd %%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/ChangeLog.jp %%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/README.jp -%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/pdflib-api-jp.html +%%PORTDOCS%%%%RUBY_RD_HTML_FILES%%%%RUBY_MODDOCDIR%%/ja/pdflib-api-jp.html %%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/pdflib-api-jp.rd %%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%/ja %%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%% |