# -*- 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: Portfile 108107 2013-07-13 05:50:58Z ryandesign@macports.org $

PortSystem      1.0
PortGroup       php5extension 1.0

php5extension.setup xslcache 0.7.2 pecl
license         PHP
categories      php www devel
platforms       darwin
maintainers     ryandesign openmaintainer

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       rmd160  432b382046a6f172b1b6269bdc631a2405d4286d \
                sha256  a9fbb22bde327de0c8aeeb298a4f6d7abd1d80a8f45e5b6acc98fb14c4420ea3

depends_lib-append \
    port:libxslt

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>}
