# $Id: Portfile 71533 2010-09-15 20:26:12Z ryandesign@macports.org $

PortSystem 1.0

name           mikachanfont
version        8.9
categories     x11 fonts
platforms      darwin
maintainers    nifty.com:pelopor
description    Mikachan-font is Japanese font written by Mikachan
long_description        \
        Mikachan-font is Japanese font.  It was written by Mikachan,and\
        scaned and used font making software.\
        It is possible to display Hiragana, Katakana, Numbers, Alphabets,\
        symbols, Kanji for education, Usual kanji, Kanji of person's name,\
        JIS kanji Level 1, JIS kanji Level 2, IBM expantion kanji.

homepage       http://www001.upp.so-net.ne.jp/mikachan/
master_sites   http://osdn.dl.sourceforge.jp/mikachan/5513/ \
               http://keihanna.dl.sourceforge.jp/mikachan/5513/ \
               http://kyushu-u.dl.sourceforge.jp/mikachan/5513/

use_bzip2      yes
checksums      md5 8ac2b94336e76fa80996d0be70c557de
depends_lib    bin:mkfontdir:mkfontdir
use_configure  no
build          {}
destroot {
	set fontsdir ${destroot}${prefix}/share/fonts/${name}
	xinstall -d -m 755 ${fontsdir} ${destroot}${prefix}/share/doc/${name}
	xinstall -m 644 ${worksrcpath}/fonts/mikachan.ttf ${fontsdir}
	#mkfontscale && mkfontdir
	system "mkfontscale ${fontsdir} && mkfontdir ${fontsdir}"
	#docs
	xinstall -m 644 -W ${worksrcpath} COPYRIGHT ChangeLog README.ja \
		COPYRIGHT.ja README ${destroot}${prefix}/share/doc/${name}
}
