# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem      1.0
PortGroup       php 1.1

name            php-esmtp
version         0.3.1
revision        1
license         PHP
categories      php devel
platforms       darwin
maintainers     ryandesign openmaintainer

php.branches    5.3 5.4 5.5 5.6
php.pecl        yes
php.pecl.prerelease yes

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

if {${name} ne ${subport}} {
    patchfiles          297236.diff \
                        309809.diff \
                        309844.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/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 644 -W ${worksrcpath} CREDITS NOTES TODO ${destroot}${docdir}
    }
}