# $Id: Portfile 90618 2012-03-10 03:28:47Z ryandesign@macports.org $

PortSystem      1.0
PortGroup       php5extension 1.0

php5extension.setup mailparse 2.1.6 pecl
license         PHP
categories      php mail devel
platforms       darwin
maintainers     nomaintainer
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       rmd160  68b2fedcacda2850c10e3551131502429b8daee1 \
                sha256  73705197d2b2ee782efa5477eb2a21432f592c2cb05a72c3a037bbe39e02b5cc

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}
}
