# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
# $Id$

PortSystem      1.0
PortGroup       php5extension 1.0
PortGroup       archcheck 1.0

php5extension.setup xslcache 0.7.1 pecl
revision        1
license         PHP
categories      php www devel
platforms       darwin
maintainers     nomaintainer

description \
    A modification of PHP's standard XSL extension that caches the parsed XSL \
    stylesheet representation

long_description \
    The XSL Cache extension is a modification of PHP's standard XSL extension \
    that caches the parsed XSL stylesheet representation between sessions for \
    2.5x boost in performance for sites that repeatedly apply the same \
    transform. Although there is still some further work that could be done on \
    the extension, this code is already proving beneficial in production use \
    for a few applications on the New York Times' website.

homepage        http://code.nytimes.com/projects/xslcache

checksums       md5     1e32327f62122055ece6f78fa2b851b2 \
                sha1    d185d34e032ab78aa62e4f023567dc26f4af3bac \
                rmd160  09dbdd8f010d8d44891f3da0e6dae37308b92408

depends_lib-append \
    port:libxslt

archcheck.files \
    lib/libxslt.dylib

use_parallel_build yes

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

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