# $Id: Portfile 62652 2010-01-13 14:06:03Z nox@macports.org $

PortSystem      1.0
PortGroup       archcheck 1.0
PortGroup       php5extension 1.0

php5extension.setup colorer 0.7 pecl
license         PHP
categories      php devel
platforms       darwin
maintainers     nox openmaintainer
description     Syntax highlighting

long_description \
    Colorer take5 is a syntax highlighting and text parsing library, that \
    provides services of text parsing in host editor systems in real-time and \
    transforming results into colored text. While colorer is primarily \
    designed for use with text editors, it can be also used for \
    non-interactive syntax highlighting, for example, in web applications. \
    This PHP extension provides basic functions for syntax highlighting.

checksums       md5     327a3ae03e8b6bcfb1c0ca7b3de05f7e \
                sha1    ee93681959e71f61e52a3c9ee98a47b964a12880 \
                rmd160  6275bc1790a462487b3d948996162de4217c0038

depends_lib-append \
    port:colorer

archcheck.files \
    lib/libcolorer.dylib

configure.args-append \
    --with-colorer=${prefix}

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

livecheck.regex {(\d+(?:\.\d+)*)</a></th>}
