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

PortSystem 1.0

name              sazanami-font
version           20040629
categories        x11 fonts
platforms         darwin
maintainers       nifty.com:pelopor
description       Japanese proportional TrueType font
long_description  ${description}
homepage          http://wiki.fdiary.net/font/?sazanami
master_sites      http://osdn.dl.sourceforge.jp/efont/10087/ \
                  http://keihanna.dl.sourceforge.jp/efont/10087/ \
                  http://kyushu-u.dl.sourceforge.jp/efont/10087/
distname          sazanami-${version}
use_bzip2         yes
checksums         md5 ceef10579a75c92483171f3bd7f77df2
depends_lib       bin:mkfontdir:mkfontdir
use_configure     no
build             {}
destroot {
	set fontsdir ${destroot}${prefix}/share/fonts/sazanami
	xinstall -d -m 755 ${destroot}${prefix}/share/doc/ ${fontsdir}
	xinstall -m 644 ${worksrcpath}/sazanami-mincho.ttf ${fontsdir}
	xinstall -m 644 ${worksrcpath}/sazanami-gothic.ttf ${fontsdir}
	#mkfontscale && mkfontdir
	system "mkfontscale ${fontsdir} && mkfontdir ${fontsdir}"
	#docs
	file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name} 
	xinstall -m 644 ${worksrcpath}/README \
		${destroot}${prefix}/share/doc/${name} 
}
