# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $ PortSystem 1.0 name kochi-substitute version 20030809 categories x11 fonts maintainers nifty.com:pelopor 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:mkfontdir bin:mkfontscale:mkfontscale 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} }