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 /archivers | |
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 'archivers')
-rw-r--r-- | archivers/ruby-bz2/Makefile | 19 | ||||
-rw-r--r-- | archivers/ruby-bz2/pkg-plist | 2 |
2 files changed, 13 insertions, 8 deletions
diff --git a/archivers/ruby-bz2/Makefile b/archivers/ruby-bz2/Makefile index 90ef8fafc830..b943d4aa0bd7 100644 --- a/archivers/ruby-bz2/Makefile +++ b/archivers/ruby-bz2/Makefile @@ -17,25 +17,30 @@ MAINTAINER= knu@FreeBSD.org USE_RUBY= yes USE_RUBY_EXTCONF= yes USE_RUBY_RDOC= yes -USE_RUBY_RDTOOL= yes INSTALL_TARGET= site-install -DOCS= Changes README.en bz2.html bz2.rd \ +RUBY_RD_FILES= bz2.rd + +DOCS= Changes \ + README.en \ + ${RUBY_RD_FILES} \ + ${RUBY_RD_HTML_FILES} \ docs/doc post-build: .if !defined(NOPORTDOCS) - cd ${WRKSRC}; ${RUBY_RD2} bz2.rd > bz2.html - cd ${WRKSRC}/docs; ${RUBY} b.rb bz2; rdoc bz2.rb + cd ${WRKSRC}/docs; ${RUBY} b.rb bz2; ${RUBY_RDOC} bz2.rb .endif -post-install: +post-install: doc-install + +.include <bsd.port.mk> + +doc-install: .if !defined(NOPORTDOCS) ${MKDIR} ${RUBY_MODDOCDIR} .for f in ${DOCS} ${CP} -R ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ .endfor .endif - -.include <bsd.port.mk> diff --git a/archivers/ruby-bz2/pkg-plist b/archivers/ruby-bz2/pkg-plist index 236211dc6ebf..80320d176fe7 100644 --- a/archivers/ruby-bz2/pkg-plist +++ b/archivers/ruby-bz2/pkg-plist @@ -1,7 +1,7 @@ %%RUBY_SITEARCHLIBDIR%%/bz2.so %%PORTDOCS%%%%RUBY_MODDOCDIR%%/Changes %%PORTDOCS%%%%RUBY_MODDOCDIR%%/README.en -%%PORTDOCS%%%%RUBY_MODDOCDIR%%/bz2.html +%%PORTDOCS%%%%RUBY_RD_HTML_FILES%%%%RUBY_MODDOCDIR%%/bz2.html %%PORTDOCS%%%%RUBY_MODDOCDIR%%/bz2.rd %%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/BZ2.html %%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/BZ2.src/M000001.html |