summaryrefslogtreecommitdiff
path: root/graphics/ruby-image_size
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2002-12-06 17:17:38 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2002-12-06 17:17:38 +0000
commit185ceb675cf8b26e316a037b83225c000ff26f23 (patch)
tree529039d77da5b882444fb862a40d4fea197d5466 /graphics/ruby-image_size
parentFinish 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 'graphics/ruby-image_size')
-rw-r--r--graphics/ruby-image_size/Makefile26
-rw-r--r--graphics/ruby-image_size/pkg-plist4
2 files changed, 15 insertions, 15 deletions
diff --git a/graphics/ruby-image_size/Makefile b/graphics/ruby-image_size/Makefile
index 9e53d1bff802..23936a69d29c 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 bd050d2bd058..27c45616a960 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%%