# -*- 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
# $Id: Portfile 79534 2011-06-16 17:56:31Z ryandesign@macports.org $

PortSystem              1.0
PortGroup               php5extension 1.0

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

description             fast, stable PHP opcode cacher

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

checksums               sha1    06fc7430e1d0ccd99f0b8a784b66fc2e5f11b667 \
                        rmd160  47451b6fd9df56dd09ea6b8ee30903e011f1ef24

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.regex         {/Release-([0-9.]+)"}
