# $Id: Portfile 153 2009-06-21 11:15:18Z kimuraw $

PortSystem      1.0
PortGroup       python24 1.0
name            py-iconvcodec
version         1.1.2
revision        0
platforms       darwin
maintainers     rsky0711@gmail.com
description     Universal unicode codec using iconv(3) for Python
long_description \
    The iconvcodec is an universal unicode codec module for Python \
    using POSIX iconv(3). And, supports the following features: \
    \
     * PEP293 Error Callbacks (for Python 2.3 only) \
     * Reentrant-safe encoder and decoder \
     * Adaptive multiple unicode encodings: UCS, swapped UCS, UTF-8 \
     * Stateful/context-aware StreamReader and StreamWriter

homepage        http://cjkpython.berlios.de/#iconvcodec
master_sites    http://download.berlios.de/cjkpython/
distname        iconvcodec-${version}
checksums       md5 dca81668bd3da851dbb6161f0ef47b5f \
                sha1 960b35965d5feedf3aacf721a221eafe3c85ea76 \
                rmd160 798ef429fdd40aeefcfb286a842f1f8cdb88efc5

categories-append   textproc
depends_lib-append  port:libiconv

build.args  --with-libiconv=${prefix}

post-destroot {
    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} AUTHORS COPYRIGHT PKG-INFO README THANKS \
        ${destroot}${prefix}/share/doc/${name}
}
