aboutsummaryrefslogtreecommitdiff
path: root/devel/ruby-mmap
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2002-12-06 17:17:38 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2002-12-06 17:17:38 +0000
commit185ceb675cf8b26e316a037b83225c000ff26f23 (patch)
tree529039d77da5b882444fb862a40d4fea197d5466 /devel/ruby-mmap
parent06b18b4580a6e989c99e4e95831869330142325e (diff)
downloadports-185ceb675cf8b26e316a037b83225c000ff26f23.tar.gz
ports-185ceb675cf8b26e316a037b83225c000ff26f23.zip
Notes
Diffstat (limited to 'devel/ruby-mmap')
-rw-r--r--devel/ruby-mmap/Makefile19
-rw-r--r--devel/ruby-mmap/pkg-plist2
2 files changed, 13 insertions, 8 deletions
diff --git a/devel/ruby-mmap/Makefile b/devel/ruby-mmap/Makefile
index cf6b2271eb62..26d9acc95340 100644
--- a/devel/ruby-mmap/Makefile
+++ b/devel/ruby-mmap/Makefile
@@ -20,25 +20,30 @@ BUILD_DEPENDS= rdoc:${PORTSDIR}/textproc/ruby-rdoc
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
-USE_RUBY_RDTOOL= yes
+
+RUBY_RD_FILES= mmap.rd
INSTALL_TARGET= site-install
-DOCS= Changes README.en mmap.html mmap.rd \
+DOCS= Changes \
+ README.en \
+ ${RUBY_RD_FILES} \
+ ${RUBY_RD_HTML_FILES} \
docs/doc
post-build:
.if !defined(NOPORTDOCS)
- cd ${WRKSRC}; ${RUBY_RD2} mmap.rd > mmap.html
- cd ${WRKSRC}/docs; ${RUBY} b.rb mmap; rdoc mmap.rb
+ cd ${WRKSRC}/docs; ${RUBY} b.rb mmap; ${RUBY_RDOC} mmap.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/devel/ruby-mmap/pkg-plist b/devel/ruby-mmap/pkg-plist
index 01f7113ef980..f174228f331e 100644
--- a/devel/ruby-mmap/pkg-plist
+++ b/devel/ruby-mmap/pkg-plist
@@ -1,7 +1,7 @@
%%RUBY_SITEARCHLIBDIR%%/mmap.so
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/Changes
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/README.en
-%%PORTDOCS%%%%RUBY_MODDOCDIR%%/mmap.html
+%%PORTDOCS%%%%RUBY_RD_HTML_FILES%%%%RUBY_MODDOCDIR%%/mmap.html
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/mmap.rd
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/Mmap.html
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/doc/classes/Mmap.src/M000001.html