summaryrefslogtreecommitdiffstats
path: root/devel/ruby-gemfinder
diff options
context:
space:
mode:
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