# -*- 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

PortSystem          1.0
PortGroup           php 1.1

name                php-xslcache
version             0.7.2
categories          php www devel
platforms           darwin
maintainers         {ryandesign @ryandesign} openmaintainer
license             PHP

php.branches        5.3 5.4 5.5 5.6
php.pecl            yes
php.pecl.prerelease yes

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

long_description    The XSL Cache extension is ${description} 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.

checksums           rmd160  432b382046a6f172b1b6269bdc631a2405d4286d \
                    sha256  a9fbb22bde327de0c8aeeb298a4f6d7abd1d80a8f45e5b6acc98fb14c4420ea3

if {${name} ne ${subport}} {
    depends_lib-append  port:libxslt

    use_parallel_build  yes

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