diff options
author | knu <knu@FreeBSD.org> | 2002-12-06 17:17:38 +0000 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2002-12-06 17:17:38 +0000 |
commit | 9c46f078394d114e50ad01ff921a88b74dda7eb1 (patch) | |
tree | 4810246f6e2ebdc6787c76cd4552ffabb88ae682 /graphics/ruby-image_size | |
parent | 1900d9b4804ade641a7bbef2252af134e5f2ba8f (diff) | |
download | FreeBSD-ports-9c46f078394d114e50ad01ff921a88b74dda7eb1.zip FreeBSD-ports-9c46f078394d114e50ad01ff921a88b74dda7eb1.tar.gz |
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 'graphics/ruby-image_size')
-rw-r--r-- | graphics/ruby-image_size/Makefile | 26 | ||||
-rw-r--r-- | graphics/ruby-image_size/pkg-plist | 4 |
2 files changed, 15 insertions, 15 deletions
diff --git a/graphics/ruby-image_size/Makefile b/graphics/ruby-image_size/Makefile index 9e53d1b..23936a6 100644 --- a/graphics/ruby-image_size/Makefile +++ b/graphics/ruby-image_size/Makefile @@ -17,31 +17,31 @@ DIST_SUBDIR= ruby MAINTAINER= knu@FreeBSD.org USE_RUBY= yes -USE_RUBY_RDTOOL= yes WRKSRC= ${WRKDIR}/${PORTNAME} -DOCS= readme.en.html -DOCS_JA= readme.ja.rd readme.ja.html +NO_BUILD= yes -do-build: -.if !defined(NOPORTDOCS) - @cd ${WRKSRC}; \ - ${RUBY_RD2} image_size.rb > readme.en.html - @cd ${WRKSRC}; \ - ${RUBY_RD2} readme.ja.rd > readme.ja.html -.endif +RUBY_RD_FILES= image_size.rb readme.ja.rd + +DOCS_EN= ${RUBY_RD_HTML_FILES:N*.ja.html} +DOCS_JA= ${RUBY_RD_FILES:M*.ja.rd} \ + ${RUBY_RD_HTML_FILES:M*.ja.html} do-install: ${INSTALL_DATA} ${WRKSRC}/image_size.rb ${RUBY_SITELIBDIR}/ + +post-install: doc-install + +.include <bsd.port.mk> + +doc-install: .if !defined(NOPORTDOCS) ${MKDIR} ${RUBY_MODDOCDIR}/ja -.for f in ${DOCS} +.for f in ${DOCS_EN} ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ .endfor .for f in ${DOCS_JA} ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ja/ .endfor .endif - -.include <bsd.port.mk> diff --git a/graphics/ruby-image_size/pkg-plist b/graphics/ruby-image_size/pkg-plist index bd050d2..27c4561 100644 --- a/graphics/ruby-image_size/pkg-plist +++ b/graphics/ruby-image_size/pkg-plist @@ -1,6 +1,6 @@ %%RUBY_SITELIBDIR%%/image_size.rb -%%PORTDOCS%%%%RUBY_MODDOCDIR%%/readme.en.html +%%PORTDOCS%%%%RUBY_RD_HTML_FILES%%%%RUBY_MODDOCDIR%%/image_size.html %%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/readme.ja.rd -%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/readme.ja.html +%%PORTDOCS%%%%RUBY_RD_HTML_FILES%%%%RUBY_MODDOCDIR%%/ja/readme.ja.html %%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%/ja %%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%% |