# -*- 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-pop3
version         1.0.2
revision        1
license         PHP
categories      php mail devel
platforms       darwin
maintainers     ryandesign openmaintainer

php.branches    5.3 5.4 5.5 5.6
php.pecl        yes

description     POP3 Client Library

long_description \
    The POP3 extension makes it possible for a PHP script to connect to and \
    interact with a POP3 mail server. It is based on the PHP streams interface \
    and requires no external library.

checksums       md5     cdbe4f41aa37bcf45e651d5568f3a8d2 \
                sha1    5d7d9754413fbd9563464ae82588c7770cc1ce90 \
                rmd160  01bc065cdb0d2ff375bb1d70a7b91b1f809acf30

if {${name} ne ${subport}} {
    patchfiles          patch-pop3.c.diff
    
    use_parallel_build  yes
    
    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir} ${destroot}${prefix}/share/examples
        xinstall -m 644 -W ${worksrcpath} CREDITS README ${destroot}${docdir}
        copy ${worksrcpath}/examples ${destroot}${prefix}/share/examples/${subport}
    }
}
