# $Id: Portfile 62590 2010-01-11 19:42:27Z nox@macports.org $

PortSystem      1.0
PortGroup       php5extension 1.0

php5extension.setup SPL_Types 0.3.0 pecl
license         PHP
categories      php devel
platforms       darwin
maintainers     nox openmaintainer
description     Standard PHP Library, Types Addon

long_description \
    SPL Types is a collection of special typehandling classes.

checksums       md5     5c7a71db99cb07906b5fab285202acbe \
                sha1    fcffb4e00c73b02caebc0ae4eb31473989e14f9f \
                rmd160  3077ced1d56eeb6cca78ab50515d77245143c482

use_parallel_build yes

post-patch {
    # error: duplicate 'static'
    reinplace /ZEND_BEGIN_ARG_INFO_EX/s/static// ${worksrcpath}/spl_type.c
}

test.run        yes

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