# $Id: Portfile,v 1.1 2005/03/27 21:17:08 mww Exp $

PortSystem 1.0

name              sazanami-font
version           20040629
categories        x11 fonts
maintainers       pelopor@nifty.com
description       Japanese proportional True Type 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:XFree86 bin:mkfontscale:XFree86
configure         {}
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} 
}
