summaryrefslogtreecommitdiffstats
path: root/devel/ruby-gemfinder
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 /devel/ruby-gemfinder
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 'devel/ruby-gemfinder')
-rw-r--r--devel/ruby-gemfinder/Makefile25
-rw-r--r--devel/ruby-gemfinder/pkg-plist2
2 files changed, 16 insertions, 11 deletions
diff --git a/devel/ruby-gemfinder/Makefile b/devel/ruby-gemfinder/Makefile
index ea799f9..db18572 100644
--- a/devel/ruby-gemfinder/Makefile
+++ b/devel/ruby-gemfinder/Makefile
@@ -18,26 +18,31 @@ MAINTAINER= knu@FreeBSD.org
RUN_DEPENDS= ${RUBY_LIBDIR}/tk.rb:${PORTSDIR}/x11-toolkits/ruby-tk
USE_RUBY= yes
-USE_RUBY_RDTOOL= yes
+NO_BUILD= yes
+
+RUBY_RD_FILES= gemfinder.rd
RUBY_SHEBANG_FILES= ${WRKSRC}/gemfinder
-DOCS= README gemfinder.html gemfinder.rd
+DOCS= README \
+ ${RUBY_RD_FILES} \
+ ${RUBY_RD_HTML_FILES}
-do-build:
-.if !defined(NOPORTDOCS)
- ${RUBY_RD2} < ${WRKSRC}/gemfinder.rd \
- | ${SED} -e 's/<BODY>/<body bgcolor="#ffffff">/' \
- > ${WRKSRC}/gemfinder.html
-.endif
+post-patch:
+ ${RUBY} -i -pe 'sub(/<BODY>/, "<BODY bgcolor=\"#ffffff\">")' \
+ ${WRKSRC}/gemfinder.rd
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/gemfinder ${PREFIX}/bin/
+
+post-install: doc-install
+
+.include <bsd.port.mk>
+
+doc-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${RUBY_MODDOCDIR}
.for f in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/
.endfor
.endif
-
-.include <bsd.port.mk>
diff --git a/devel/ruby-gemfinder/pkg-plist b/devel/ruby-gemfinder/pkg-plist
index e2f84ed..532e66f 100644
--- a/devel/ruby-gemfinder/pkg-plist
+++ b/devel/ruby-gemfinder/pkg-plist
@@ -1,5 +1,5 @@
bin/gemfinder
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/README
-%%PORTDOCS%%%%RUBY_MODDOCDIR%%/gemfinder.html
+%%PORTDOCS%%%%RUBY_RD_HTML_FILES%%%%RUBY_MODDOCDIR%%/gemfinder.html
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/gemfinder.rd
%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%
OpenPOWER on IntegriCloud