# $Id: Portfile,v 1.4 2006/07/02 18:58:28 takanori Exp $

PortSystem        1.0
name              nkf
version           2.0.7
categories        textproc
maintainers       takanori@opendarwin.org
description       Network Kanji code conversion Filter
long_description  Nkf  is  a  yet  another kanji code converter among networks, hosts and \
                  terminals.  It converts input kanji code to designated kanji code  such \
                  as 7-bit JIS, MS-kanji (shifted-JIS), utf-8 or EUC.
platforms	  darwin
set sfjpid	  20770
homepage          http://sourceforge.jp/projects/nkf/
master_sites      http://keihanna.dl.sourceforge.jp/nkf/${sfjpid}/ \
		  http://osdn.dl.sourceforge.jp/nkf/${sfjpid}/ \
		  http://qgpop.dl.sourceforge.jp/nkf/${sfjpid}/
distfiles	  ${name}207.tar.gz
checksums	  md5 af11dcd3fe71d67831c020e3bfd5073b \
		  sha1 97ee0920a5cd935acd08ca789c7b8c810a594311 \
		  rmd160 da6eebf7dd59d934eca40f2f6588e97078c8d68a

worksrcdir	  ${name}207
configure	  {}
build.target

destroot	  {
		  xinstall -m 755 ${worksrcpath}/nkf ${destroot}${prefix}/bin
		  xinstall -m 644 ${worksrcpath}/nkf.1 ${destroot}${prefix}/share/man/man1
}

post-destroot	{
		xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
		xinstall -m 644 ${worksrcpath}/nkf.doc ${destroot}${prefix}/share/doc/${name}
}
