diff options
author | knu <knu@FreeBSD.org> | 2002-12-07 01:17:38 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2002-12-07 01:17:38 +0800 |
commit | 9c46f078394d114e50ad01ff921a88b74dda7eb1 (patch) | |
tree | 4810246f6e2ebdc6787c76cd4552ffabb88ae682 /devel/ruby-gemfinder | |
parent | 1900d9b4804ade641a7bbef2252af134e5f2ba8f (diff) | |
download | freebsd-ports-gnome-9c46f078394d114e50ad01ff921a88b74dda7eb1.tar.gz freebsd-ports-gnome-9c46f078394d114e50ad01ff921a88b74dda7eb1.tar.zst freebsd-ports-gnome-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 '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%% |