# $Id: Portfile 92843 2012-05-09 04:04:01Z ryandesign@macports.org $

PortSystem        1.0
PortGroup         php5extension 1.0

epoch             1
php5extension.setup eaccelerator 0.9.6.1
revision          6
categories        php www devel
platforms         darwin freebsd openbsd
maintainers       nomaintainer
conflicts         php5-apc php5-xcache

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