# $Id: Portfile 63809 2010-02-15 22:35:10Z ryandesign@macports.org $

PortSystem        1.0
PortGroup         php5extension 1.0

epoch             1
php5extension.setup eaccelerator 0.9.6
categories        php www devel
platforms         darwin freebsd openbsd
maintainers       alakazam
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     85fa6150265a81f0cea852bc973382b9 \
                  sha1    65594917d0efa754d35760d2cde8701ffaa2914a \
                  rmd160  86320cbafa31f4b6db308c55035bbf057325a708

use_bzip2         yes
configure.args    --with-php-config=${prefix}/bin/php-config

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)?)"
