summaryrefslogtreecommitdiff
path: root/converters/ruby-romkan/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'converters/ruby-romkan/Makefile')
-rw-r--r--converters/ruby-romkan/Makefile17
1 files changed, 8 insertions, 9 deletions
diff --git a/converters/ruby-romkan/Makefile b/converters/ruby-romkan/Makefile
index 26f5581571e..966f08cfa36 100644
--- a/converters/ruby-romkan/Makefile
+++ b/converters/ruby-romkan/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.11 2008/03/03 05:51:08 jlam Exp $
+# $NetBSD: Makefile,v 1.12 2008/06/19 14:42:24 taca Exp $
DISTNAME= ruby-romkan-0.4
PKGNAME= ${RUBY_PKGPREFIX}-romkan-0.4
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= converters japanese ruby
MASTER_SITES= http://0xcc.net/ruby-romkan/
@@ -13,19 +13,18 @@ COMMENT= Romaji <-> Kana conversion library for Ruby
PKG_DESTDIR_SUPPORT= user-destdir
NO_CONFIGURE= yes
+DOCS= romkan.html romkan.html.ja romkan.en.rd romkan.ja.rd
+INSTALLATION_DIRS= ${RUBY_DOC}/romkan
do-build:
cd ${WRKSRC}; ${RUBY_RD} romkan.en.rd > romkan.html
cd ${WRKSRC}; ${RUBY_RD} romkan.ja.rd > romkan.html.ja
do-install:
- ${INSTALL_DATA_DIR} ${DESTDIR}${RUBY_SITELIBDIR}
- ${INSTALL_DATA} ${WRKSRC}/romkan.rb ${DESTDIR}${RUBY_SITELIBDIR}
- ${INSTALL_DATA_DIR} ${DESTDIR}${RUBY_DOCDIR}/romkan
- ${INSTALL_DATA} ${WRKSRC}/romkan.html ${DESTDIR}${RUBY_DOCDIR}/romkan
- ${INSTALL_DATA} ${WRKSRC}/romkan.html.ja ${DESTDIR}${RUBY_DOCDIR}/romkan
- ${INSTALL_DATA} ${WRKSRC}/romkan.en.rd ${DESTDIR}${RUBY_DOCDIR}/romkan/romkan.rd
- ${INSTALL_DATA} ${WRKSRC}/romkan.ja.rd ${DESTDIR}${RUBY_DOCDIR}/romkan
+ ${INSTALL_DATA} ${WRKSRC}/romkan.rb ${DESTDIR}${PREFIX}/${RUBY_VENDORLIB}
+.for f in ${DOCS}
+ cd ${WRKSRC}; ${INSTALL_DATA} ${f} ${DESTDIR}${PREFIX}/${RUBY_DOC}/romkan
+.endfor
.include "../../lang/ruby/modules.mk"
.include "../../textproc/ruby-rdtool/buildlink3.mk"