# -*- 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 119087 2014-04-16 23:35:39Z ryandesign@macports.org $

PortSystem              1.0
PortGroup               php 1.1

name                    php-xcache
version                 3.1.0
categories-append       www
platforms               darwin
maintainers             ryandesign openmaintainer
license                 BSD

php.branches            5.3 5.4 5.5

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

if {${name} ne ${subport}} {
    conflicts           ${php}-APC ${php}-APCu ${php}-eaccelerator
    
    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/${subport}
        xinstall -d ${docdir}
        xinstall -W ${worksrcpath} -m 644 AUTHORS COPYING ChangeLog NEWS README THANKS xcache.ini ${docdir}
    }
}

livecheck.name          xcache
