# $Id: Portfile 85956 2011-10-17 22:32:14Z takanori@macports.org $

PortSystem      1.0

name            cocot
version         20080315
categories      textproc japanese
maintainers     takanori openmaintainer
description     COde COnverter on Tty
long_description \
                ${description}
platforms       darwin
license         BSD
homepage        http://vmi.jp/software/cygwin/cocot.html
master_sites    macports \
                http://vmi.jp/software/cygwin/
use_bzip2       yes
patchfiles      patch-README.ja.diff
checksums       md5 f2519673fb4bf9e07769b88de7746278 \
                sha1 06d098fb54b6e61bbddc8ef00079b9b529ca2133 \
                rmd160 ecb93ffe77c9c59aa822b33fc399b802ab9fe202

depends_lib     port:libiconv

configure.args  --with-default-term-code=UTF-8 --with-default-proc-code=EUC-JP

use_parallel_build  yes

post-destroot {
    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    foreach f {AUTHORS COPYING ChangeLog* INSTALL NEWS README* UNICODE_MEMO} {
        eval xinstall -m 644 [glob ${worksrcpath}/${f}] ${destroot}${prefix}/share/doc/${name}
    }
}

livecheck.type  regex
livecheck.url   ${homepage}
livecheck.regex ${name}-(\[0-9.a-z\]+)\\.tar
