# $Id$

PortSystem      1.0
PortGroup       php5extension 1.0

php5extension.setup mailparse 2.1.5 pecl
license         PHP
categories      php mail devel
platforms       darwin
maintainers     nox openmaintainer
description     Email message manipulation

long_description \
    Mailparse is an extension for parsing and working with email messages. \
    It can deal with rfc822 and rfc2045 (MIME) compliant messages.

checksums       md5     0c0134fb6f5903c8fb6c9e2205263d2c \
                sha1    f32246351390fe309e16c76d7e68fb494978cabe \
                rmd160  55cdc574ac7dd2f5b08784f6b4d1522c5cf22637

depends_run \
    port:php5-mbstring

configure.cppflags-append -DHAVE_MBSTRING

use_parallel_build yes

test.run        yes

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 644 -W ${worksrcpath} CREDITS README \
        ${destroot}${docdir}
}