# -*- 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 112108 2013-10-12 04:07:59Z ryandesign@macports.org $

PortSystem              1.0
PortGroup               php5extension 1.0

php5extension.setup     xcache 3.1.0
categories-append       www
platforms               darwin
maintainers             ryandesign openmaintainer
license                 BSD

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               rmd160  0c9df837d2117ee2d770a5abe99e941bf2cb77cd \
                        sha256  86af3e08a8983648d9755f5e1d0e32ad5b952d3e92a83fcaf3acbac9ffd65ee9

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.name          xcache
