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

PortSystem              1.0
PortGroup               php 1.1

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

php.branches            5.3 5.4 5.5 5.6

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  1f5edb382b52d9e12bf1c6a9cb34870dcb8cb155 \
                        sha256  7d12a3cbd5f729b70f9226ac19406d11219f1c5f5e82b3bbb43ea9460cbf6cbd

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.type          regex
livecheck.url           ${homepage}
livecheck.regex         {Release-([0-9.]+)}