a project to simplify installation of open source software
on Mac OS X and Darwin
# $Id: Portfile 23053 2007-03-23 20:35:47Z pipping@macports.org $
PortSystem 1.0
name kochi-substitute
version 20030809
categories x11 fonts
maintainers pelopor@nifty.com
description Free Japanese TrueType fonts named 'Kochi Mincho' and \
'Kochi Gothic'
long_description ${description}
homepage http://wiki.fdiary.net/font/?kochi-alternative
master_sites http://osdn.dl.sourceforge.jp/efont/5411/ \
http://keihanna.dl.sourceforge.jp/efont/5411/ \
http://kyushu-u.dl.sourceforge.jp/efont/5411/
use_bzip2 yes
checksums md5 c4b14e287cf2b1688c649e2274e128b3
depends_lib bin:mkfontdir:XFree86 bin:mkfontscale:XFree86
use_configure no
build {}
destroot {
set fontsdir ${destroot}${prefix}/share/fonts/${name}
xinstall -m 755 -d ${fontsdir} ${destroot}/${prefix}/share/doc/
xinstall -m 644 ${worksrcpath}/kochi-mincho-subst.ttf ${fontsdir}
xinstall -m 644 ${worksrcpath}/kochi-gothic-subst.ttf ${fontsdir}
#mkfontscale && mkfontdir
system "mkfontscale ${fontsdir} && mkfontdir ${fontsdir}"
#docs
file copy ${worksrcpath}/docs ${destroot}/${prefix}/share/doc/${name}
xinstall -m 644 -W ${worksrcpath} COPYING README.ja Changelog \
${destroot}/${prefix}/share/doc/${name}
}