aboutsummaryrefslogtreecommitdiff
path: root/graphics/ruby-libexif
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 /graphics/ruby-libexif
parent06b18b4580a6e989c99e4e95831869330142325e (diff)
downloadports-185ceb675cf8b26e316a037b83225c000ff26f23.tar.gz
ports-185ceb675cf8b26e316a037b83225c000ff26f23.zip
Notes
Diffstat (limited to 'graphics/ruby-libexif')
-rw-r--r--graphics/ruby-libexif/Makefile23
-rw-r--r--graphics/ruby-libexif/pkg-plist4
2 files changed, 13 insertions, 14 deletions
diff --git a/graphics/ruby-libexif/Makefile b/graphics/ruby-libexif/Makefile
index 749125c3ec27..37f7e7109087 100644
--- a/graphics/ruby-libexif/Makefile
+++ b/graphics/ruby-libexif/Makefile
@@ -19,21 +19,22 @@ LIB_DEPENDS= exif.8:${PORTSDIR}/graphics/libexif
USE_RUBY= yes
USE_RUBY_EXTCONF= yes
-USE_RUBY_RDTOOL= yes
INSTALL_TARGET= site-install
-DOCS_EN= ChangeLog README exif.rd.en exif.en.html
-DOCS_JA= exif.rd.ja exif.ja.html
+RUBY_RD_FILES= exif.rd.en exif.rd.ja
-.if !defined(NOPORTDOCS)
-post-build:
-.for lang in en ja
- cd ${WRKSRC}; ${RUBY_RD2} exif.rd.${lang} > exif.${lang}.html
-.endfor
-.endif
+DOCS_EN= ChangeLog README \
+ ${RUBY_RD_FILES:M*.rd.en} \
+ ${RUBY_RD_HTML_FILES:M*.en.html}
+DOCS_JA= ${RUBY_RD_FILES:M*.rd.ja} \
+ ${RUBY_RD_HTML_FILES:M*.ja.html}
+
+post-install: doc-install
-post-install:
+.include <bsd.port.mk>
+
+doc-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${RUBY_MODDOCDIR}/ja
.for f in ${DOCS_EN}
@@ -43,5 +44,3 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_MODDOCDIR}/ja/
.endfor
.endif
-
-.include <bsd.port.mk>
diff --git a/graphics/ruby-libexif/pkg-plist b/graphics/ruby-libexif/pkg-plist
index 81df550ac323..9dbc0195c4f6 100644
--- a/graphics/ruby-libexif/pkg-plist
+++ b/graphics/ruby-libexif/pkg-plist
@@ -1,9 +1,9 @@
%%RUBY_SITEARCHLIBDIR%%/exif.so
-%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/exif.ja.html
+%%PORTDOCS%%%%RUBY_RD_HTML_FILES%%%%RUBY_MODDOCDIR%%/ja/exif.ja.html
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ja/exif.rd.ja
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/ChangeLog
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/README
-%%PORTDOCS%%%%RUBY_MODDOCDIR%%/exif.en.html
+%%PORTDOCS%%%%RUBY_RD_HTML_FILES%%%%RUBY_MODDOCDIR%%/exif.en.html
%%PORTDOCS%%%%RUBY_MODDOCDIR%%/exif.rd.en
%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%/ja
%%PORTDOCS%%@dirrm %%RUBY_MODDOCDIR%%