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

php.branches    5.3
php.pecl        yes
php.pecl.prerelease yes

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

if {${name} != ${subport}} {
    depends_lib-append      port:colorer
    
    configure.args-append   --with-colorer=${prefix}
    
    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 644 -W ${worksrcpath} CREDITS README TODO ${destroot}${docdir}
    }
}
