# -*- 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
# $Id: Portfile 85187 2011-10-10 21:26:34Z snc@macports.org $

PortSystem          1.0
PortGroup           php5extension 1.0

php5extension.setup spl_types 0.3.0 pecl
revision            1
name                php5-SPL_Types
license             PHP
categories          php devel
platforms           darwin
maintainers         nomaintainer
license				PHP-3.01
homepage            http://pecl.php.net/package/SPL_Types

description         Standard PHP Library, Types Addon

long_description    SPL Types is a collection of special typehandling classes.

checksums           md5     5c7a71db99cb07906b5fab285202acbe \
                    sha1    fcffb4e00c73b02caebc0ae4eb31473989e14f9f \
                    rmd160  3077ced1d56eeb6cca78ab50515d77245143c482

distname            SPL_Types-${version}

use_parallel_build  yes

test.run            yes

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

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