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

PortSystem      1.0
PortGroup       php5extension 1.0

php5extension.setup xrange 1.3.1 pecl
license         PHP
categories      php devel
platforms       darwin
maintainers     nox openmaintainer
description     Numeric iterator primitives

long_description \
    xrange is a compiled extension that provides numeric iteration primitives \
    to PHP on top of SPL. It includes a lean numeric range generator / \
    iterator, modeled after Python's xrange() function. It's intended to \
    provide an alternative for all numeric iteration and looping.

checksums       md5     f9a2e69e3e5ad4811b79e7d744000709 \
                sha1    fefd8d125db6b3194008dbfbebe4d198ae98f669 \
                rmd160  479938267ead2e2803b66f330b362ee48b69a879

patchfiles      patch-xrange.c.diff

use_parallel_build yes

test.run        yes

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