aboutsummaryrefslogtreecommitdiffstats
path: root/net/ruby-drb
diff options
context:
space:
mode:
authorknu <knu@FreeBSD.org>2002-12-07 01:17:38 +0800
committerknu <knu@FreeBSD.org>2002-12-07 01:17:38 +0800
commit9c46f078394d114e50ad01ff921a88b74dda7eb1 (patch)
tree4810246f6e2ebdc6787c76cd4552ffabb88ae682 /net/ruby-drb
parent1900d9b4804ade641a7bbef2252af134e5f2ba8f (diff)
downloadfreebsd-ports-graphics-9c46f078394d114e50ad01ff921a88b74dda7eb1.tar.gz
freebsd-ports-graphics-9c46f078394d114e50ad01ff921a88b74dda7eb1.tar.zst
freebsd-ports-graphics-9c46f078394d114e50ad01ff921a88b74dda7eb1.zip
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 'net/ruby-drb')
-rw-r--r--net/ruby-drb/Makefile36
-rw-r--r--net/ruby-drb/pkg-plist14
2 files changed, 19 insertions, 31 deletions
diff --git a/net/ruby-drb/Makefile b/net/ruby-drb/Makefile
index 9a42b37197b..2706f3e3df3 100644
--- a/net/ruby-drb/Makefile
+++ b/net/ruby-drb/Makefile
@@ -18,42 +18,30 @@ MAINTAINER= knu@FreeBSD.org
RUN_DEPENDS= ${RUBY_SITELIBDIR}/acl.rb:${PORTSDIR}/security/ruby-acl
USE_RUBY= yes
-USE_RUBY_RDTOOL= yes
+
+NO_BUILD= yes
+
+RUBY_RD_FILES= doc/*.rd doc/ja/*.rd.ja
post-extract:
${MKDIR} ${WRKSRC}/acl/doc ${WRKSRC}/acl/lib ${WRKSRC}/acl/runit
cd ${WRKSRC}; for f in */acl*; do ${MV} $$f ${WRKSRC}/acl/$$f; done
${MKDIR} ${WRKSRC}/sample/ja
${MV} ${WRKSRC}/sample/*.ja ${WRKSRC}/sample/ja/
-
-post-patch:
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC}/doc; for f in drb-ref.rd*; do \
- ${MV} $$f $$f.orig; \
- ( ${ECHO_CMD} '=begin'; ${CAT} $$f.orig; ${ECHO_CMD} '=end' ) > $$f; \
- ${RM} $$f.orig; \
- done
-.endif
-
-do-build:
-.if !defined(NOPORTDOCS)
- cd ${WRKSRC}/doc; for f in *.rd; do \
- ${RUBY_RD2} $$f > `${ECHO_CMD} $$f | ${SED} 's/\.rd$$/.html/'`; \
- done
- cd ${WRKSRC}/doc; for f in *.rd.ja; do \
- ${RUBY_RD2} $$f > `${ECHO_CMD} $$f | ${SED} 's/\.rd.ja$$/.ja.html/'`; \
- done
${MKDIR} ${WRKSRC}/doc/ja
- cd ${WRKSRC}/doc; ${MV} *.rd.ja *.ja.html ja/
-.endif
+ ${MV} ${WRKSRC}/doc/*.ja ${WRKSRC}/doc/ja/
do-install:
${CP} -R ${WRKSRC}/lib/* ${RUBY_SITELIBDIR}/
+
+post-install: doc-install
+
+.include <bsd.port.mk>
+
+doc-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${RUBY_MODEXAMPLESDIR}
${CP} -R ${WRKSRC}/sample/* ${RUBY_MODEXAMPLESDIR}/
- ${MKDIR} ${RUBY_MODDOCDIR}/ja
+ ${MKDIR} ${RUBY_MODDOCDIR}
${CP} -R ${WRKSRC}/doc/* ${RUBY_MODDOCDIR}/
.endif
-
-.include <bsd.port.mk>
diff --git a/net/ruby-drb/pkg-plist b/net/ruby-drb/pkg-plist
index 055a6f5bb85..cae66c8f021 100644
--- a/net/ruby-drb/pkg-plist
+++ b/net/ruby-drb/pkg-plist
@@ -45,18 +45,18 @@
%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%/ja
%%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%%
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/changelog.rd
-%%PORTDOCS%%%%RUBY_MODDOCDIR%%/changelog.html
+%%PORTDOCS%%%%RUBY_RD_HTML_FILES%%%%RUBY_MODDOCDIR%%/changelog.html
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/drb-ref.rd
-%%PORTDOCS%%%%RUBY_MODDOCDIR%%/drb-ref.html
+%%PORTDOCS%%%%RUBY_RD_HTML_FILES%%%%RUBY_MODDOCDIR%%/drb-ref.html
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/security.rd
-%%PORTDOCS%%%%RUBY_MODDOCDIR%%/security.html
-%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/drb-ref.ja.html
+%%PORTDOCS%%%%RUBY_RD_HTML_FILES%%%%RUBY_MODDOCDIR%%/security.html
+%%PORTDOCS%%%%RUBY_RD_HTML_FILES%%%%RUBY_MODDOCDIR%%/ja/drb-ref.ja.html
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/drb-ref.rd.ja
-%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/mutexm.ja.html
+%%PORTDOCS%%%%RUBY_RD_HTML_FILES%%%%RUBY_MODDOCDIR%%/ja/mutexm.ja.html
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/mutexm.rd.ja
-%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/security.ja.html
+%%PORTDOCS%%%%RUBY_RD_HTML_FILES%%%%RUBY_MODDOCDIR%%/ja/security.ja.html
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/security.rd.ja
-%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/tuplespace-ref.ja.html
+%%PORTDOCS%%%%RUBY_RD_HTML_FILES%%%%RUBY_MODDOCDIR%%/ja/tuplespace-ref.ja.html
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/tuplespace-ref.rd.ja
%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%/ja
%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%