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 /security | |
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 'security')
-rw-r--r-- | security/ruby-acl/Makefile | 36 | ||||
-rw-r--r-- | security/ruby-acl/pkg-plist | 4 |
2 files changed, 19 insertions, 21 deletions
diff --git a/security/ruby-acl/Makefile b/security/ruby-acl/Makefile index 678a571fa5b8..18baddefbc56 100644 --- a/security/ruby-acl/Makefile +++ b/security/ruby-acl/Makefile @@ -15,29 +15,27 @@ DIST_SUBDIR= ruby MAINTAINER= knu@FreeBSD.org USE_RUBY= yes -USE_RUBY_RDTOOL= yes -do-build: -.if !defined(NOPORTDOCS) -.for f in acl.rd acl.rd.ja - @cd ${WRKSRC}/doc; \ - ${RUBY_RD2} ${f} > ${f:S/.rd/.html/} -.endfor -.endif +NO_BUILD= yess + +RUBY_RD_FILES= doc/acl.rd doc/ja/acl.rd.ja + +post-extract: + ${MKDIR} ${WRKSRC}/doc/ja + ${MV} ${WRKSRC}/README ${WRKSRC}/doc/ + ${MV} ${WRKSRC}/README.ja ${WRKSRC}/doc/*.ja ${WRKSRC}/doc/ja/ do-install: - @cd ${WRKSRC}; \ - ${RUBY} install.rb + @cd ${WRKSRC}; ${RUBY} install.rb + +post-install: doc-install + +.include <bsd.port.mk> + +doc-install: .if !defined(NOPORTDOCS) ${MKDIR} ${RUBY_MODEXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/acltest.rb ${RUBY_MODEXAMPLESDIR} - ${MKDIR} ${RUBY_MODDOCDIR}/ja -.for f in README doc/acl.rd doc/acl.html - ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR} -.endfor -.for f in README.ja doc/acl.rd.ja doc/acl.html.ja - ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ja -.endfor + ${MKDIR} ${RUBY_MODDOCDIR} + ${CP} -R ${WRKSRC}/doc/* ${RUBY_MODDOCDIR}/ .endif - -.include <bsd.port.mk> diff --git a/security/ruby-acl/pkg-plist b/security/ruby-acl/pkg-plist index 916bf89eb9d0..700782ea6071 100644 --- a/security/ruby-acl/pkg-plist +++ b/security/ruby-acl/pkg-plist @@ -2,10 +2,10 @@ %%PORTDOCS%%%%RUBY_MODEXAMPLESDIR%%/acltest.rb %%PORTDOCS%%@dirrm %%RUBY_MODEXAMPLESDIR%% %%PORTDOCS%%%%RUBY_MODDOCDIR%%/README -%%PORTDOCS%%%%RUBY_MODDOCDIR%%/acl.html +%%PORTDOCS%%%%RUBY_RD_HTML_FILES%%%%RUBY_MODDOCDIR%%/acl.html %%PORTDOCS%%%%RUBY_MODDOCDIR%%/acl.rd %%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/README.ja -%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/acl.html.ja +%%PORTDOCS%%%%RUBY_RD_HTML_FILES%%%%RUBY_MODDOCDIR%%/ja/acl.ja.html %%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/acl.rd.ja %%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%/ja %%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%% |