summaryrefslogtreecommitdiffstats
path: root/japanese/ruby-romkan
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2002-12-06 17:17:38 +0000
committerknu <knu@FreeBSD.org>2002-12-06 17:17:38 +0000
commit9c46f078394d114e50ad01ff921a88b74dda7eb1 (patch)
tree4810246f6e2ebdc6787c76cd4552ffabb88ae682 /japanese/ruby-romkan
parent1900d9b4804ade641a7bbef2252af134e5f2ba8f (diff)
downloadFreeBSD-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 'japanese/ruby-romkan')
-rw-r--r--japanese/ruby-romkan/Makefile29
-rw-r--r--japanese/ruby-romkan/pkg-plist4
2 files changed, 18 insertions, 15 deletions
diff --git a/japanese/ruby-romkan/Makefile b/japanese/ruby-romkan/Makefile
index 216dba9..510a8ef 100644
--- a/japanese/ruby-romkan/Makefile
+++ b/japanese/ruby-romkan/Makefile
@@ -15,26 +15,31 @@ DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
USE_RUBY= yes
-USE_RUBY_RDTOOL= yes
+
+NO_BUILD= yes
EXAMPLES_JA= test.rb test.sh
-DOCS_EN= ChangeLog romkan.en.html romkan.en.rd
-DOCS_JA= romkan.ja.html romkan.ja.rd
+
+RUBY_RD_FILES= romkan.en.rd romkan.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}
.include <bsd.port.pre.mk>
PKGNAMEPREFIX:= ${PKGNAMEPREFIX}${RUBY_PKGNAMEPREFIX}
-do-build:
-.if !defined(NOPORTDOCS)
-.for f in romkan.en.rd romkan.ja.rd
- @cd ${WRKSRC}; \
- ${RUBY_RD2} ${f} > ${f:R}.html
-.endfor
-.endif
-
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/romkan.rb ${RUBY_SITELIBDIR}/
+
+post-install: doc-install
+
+.include <bsd.port.post.mk>
+
+doc-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${RUBY_MODEXAMPLESDIR}/ja
.for f in ${EXAMPLES_JA}
@@ -48,5 +53,3 @@ do-install:
${INSTALL_SCRIPT} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ja/
.endfor
.endif
-
-.include <bsd.port.post.mk>
diff --git a/japanese/ruby-romkan/pkg-plist b/japanese/ruby-romkan/pkg-plist
index 3a83a04..6f8c39d 100644
--- a/japanese/ruby-romkan/pkg-plist
+++ b/japanese/ruby-romkan/pkg-plist
@@ -4,9 +4,9 @@
%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%/ja
%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ChangeLog
-%%PORTDOCS%%%%RUBY_MODDOCDIR%%/romkan.en.html
+%%PORTDOCS%%%%RUBY_RD_HTML_FILES%%%%RUBY_MODDOCDIR%%/romkan.en.html
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/romkan.en.rd
-%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/romkan.ja.html
+%%PORTDOCS%%%%RUBY_RD_HTML_FILES%%%%RUBY_MODDOCDIR%%/ja/romkan.ja.html
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/romkan.ja.rd
%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%/ja
%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%
OpenPOWER on IntegriCloud