# $Id: Portfile 68407 2010-06-03 02:13:06Z ryandesign@macports.org $

PortSystem              1.0
PortGroup               php5extension 1.0

php5extension.setup     xcache 1.3.0
categories-append       www
platforms               darwin
maintainers             ryandesign
homepage                http://xcache.lighttpd.net/
master_sites            ${homepage}pub/Releases/${version}/
use_bzip2               yes

description             fast, stable PHP opcode cacher

long_description        ${name} is a ${description}.

checksums               md5     3aea4b1e3bd38b19cd9ae6a82db4cb8d \
                        sha1    e7f6ad7a8ce2b2b116a9dc4120bf49adb33184e0 \
                        rmd160  ab05fe01effd99c6536351bca9bb5f16b6db7061

patchfiles              patch-xcache.ini.diff

# gcc-4.2: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags
universal_variant       no

post-destroot {
    set docdir ${destroot}${prefix}/share/doc/${name}
    xinstall -d ${docdir}
    xinstall -W ${worksrcpath} -m 644 AUTHORS COPYING ChangeLog NEWS README THANKS xcache.ini ${docdir}
}

livecheck.type          regex
livecheck.url           ${homepage}wiki/ReleaseArchive
livecheck.regex         {XCache ([0-9.]+)}
