# $Id: Portfile 94610 2012-06-25 03:31:00Z ryandesign@macports.org $

PortSystem      1.0
PortGroup       php5extension 1.0

php5extension.setup esmtp 0.3.1 pecl
license         PHP
categories      php devel
platforms       darwin
maintainers     ryandesign openmaintainer
description     ESMTP client extension

long_description \
    Esmtp is a wrapper for SMTP client library based on the libESMTP library. \
    You can use it to send messages using internal SASL, and external/openssl \
    SSL support.

checksums       md5     e1db69e1b05efd0bf7f5c7d0b6b3255f \
                sha1    2c0c206decfd2e87e2731ca33ce55215ca713b92 \
                rmd160  96dec77e466461d57bf3fe244be6adba08c08969

patchfiles      309809.diff \
                patch-tests-002.phpt.diff

depends_lib-append \
    port:libesmtp

configure.args \
    --with-esmtp=${prefix}

test.run yes

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

livecheck.regex {(\d+(?:\.\d+)*)</a></th>}
