diff options
author | Akinori MUSHA <knu@FreeBSD.org> | 2002-12-06 17:17:38 +0000 |
---|---|---|
committer | Akinori MUSHA <knu@FreeBSD.org> | 2002-12-06 17:17:38 +0000 |
commit | 185ceb675cf8b26e316a037b83225c000ff26f23 (patch) | |
tree | 529039d77da5b882444fb862a40d4fea197d5466 /devel/ruby-gemfinder | |
parent | 06b18b4580a6e989c99e4e95831869330142325e (diff) | |
download | ports-185ceb675cf8b26e316a037b83225c000ff26f23.tar.gz ports-185ceb675cf8b26e316a037b83225c000ff26f23.zip |
Notes
Diffstat (limited to 'devel/ruby-gemfinder')
-rw-r--r-- | devel/ruby-gemfinder/Makefile | 25 | ||||
-rw-r--r-- | devel/ruby-gemfinder/pkg-plist | 2 |
2 files changed, 16 insertions, 11 deletions
diff --git a/devel/ruby-gemfinder/Makefile b/devel/ruby-gemfinder/Makefile index ea799f98c3d1..db18572ab345 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 e2f84edb970e..532e66f668f3 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%% |