# $Id: Portfile 92959 2012-05-11 22:37:24Z ryandesign@macports.org $

PortSystem        1.0
PortGroup         php 1.0

php.setup         eaccelerator 0.9.6.1
php.branches      5.3
categories        php www devel
platforms         darwin freebsd openbsd
maintainers       nomaintainer

homepage          http://eaccelerator.net/
description       php5 extension for PHP acceleration, optimization, and dynamic content caching
long_description \
    eAccelerator is a free open-source PHP accelerator, optimizer, and dynamic \
    content cache. It increases the performance of PHP scripts by caching them \
    in their compiled state, so that the overhead of compiling is almost \
    completely eliminated. It also optimizes scripts to speed up their \
    execution. eAccelerator typically reduces server load and increases the \
    speed of your PHP code by 1-10 times.

master_sites      http://bart.eaccelerator.net/source/${version}/

checksums         md5     32ccd838e06ef5613c2610c1c65ed228 \
                  sha1    c95e87229a6e674b4994d4fc13278e516ea314f9 \
                  rmd160  6a16ab377ec124a27e26a5fdc1fd6ada845695bd

use_bzip2         yes

if {${name} != ${subport}} {
    conflicts     ${php}-apc ${php}-xcache
    
    variant shared_memory description {Enable shared memory access functions (only enable in trusted environments)} {
        configure.args-append --with-eaccelerator-shared-memory
    }
    
    variant disassembler description {Include a disassembler} {
        configure.args-append --with-eaccelerator-disassembler
    }
}

livecheck.type   regex
livecheck.url    ${homepage}
livecheck.regex  "Release-((\\d\\.?)+(-rc1)?)"
