# $Id: Portfile,v 1.1 2005/03/27 20:16:11 mww Exp $

PortSystem 1.0

name           mikachanfont
version        8.9
categories     x11 fonts
maintainers    pelopor@nifty.com
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:XFree86 bin:mkfontscale:XFree86
configure      {}
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}
}
