# $Id: Portfile,v 1.1 2006/02/23 15:25:38 takanori Exp $

PortSystem        1.0
name              kakasi
version           2.3.4
categories        textproc
maintainers       takanori@opendarwin.org
description       Program that converts Kanji text to other scripts
long_description  KAKASI (Kanji Kana Simple Inverter) is a language processing filter which \
		  converts Kanji characters to Hiragana, Katakana, or Romaji. It may be \
		  helpful for reading Japanese documents.
platforms         darwin
homepage          http://kakasi.namazu.org/
master_sites      http://kakasi.namazu.org/stable/
checksums	  md5 4eff51aafbd56c9635791a20c03efa8f \
		  sha1 ab95a226f301955d2e8ae0d347afbb567e25fbe7 \
		  rmd160 8ed84c5aaa0713484ab070871f555b12ded31802

patch		{
		reinplace "s|-undefined suppress||g" ${worksrcpath}/configure
}
configure.args-append	--with-pic --enable-shared --enable-static --libexecdir=${prefix}/lib

post-destroot	{
		xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/doc

		foreach f {AUTHORS COPYING ChangeLog INSTALL* NEWS ONEWS README* THANKS TODO} {
			eval xinstall -m 644 [glob ${worksrcpath}/${f}] ${destroot}${prefix}/share/doc/${name}
		}
		foreach f {ChangeLog.lib JISYO README.* kakasi.*} {
			eval xinstall -m 644 [glob ${worksrcpath}/doc/${f}] ${destroot}${prefix}/share/doc/${name}/doc
		}
}
