# $Id: Portfile 55444 2009-08-10 19:31:50Z alakazam@macports.org $

PortSystem        1.0
PortGroup         php5extension 1.0

php5extension.setup eaccelerator 0.9.6-rc1

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/0.9.6/

checksums         md5     af078c6cfb57fcd4fafaccbdd14cc05c \
                  sha1    af003d14887308450ac921bd197dab151ed39e53 \
                  rmd160  36025799835f3e21b50a1e1a286143e71f88cd3a

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 sessions description {Enable session handler [only enable in trusted environments]} {
    configure.args-append --with-eaccelerator-sessions
}

variant content_caching description {Enable content caching support [may be obsoleted in a future version of eAccelerator]} {
    configure.args-append --with-eaccelerator-content-caching
}

variant doc_comment_caching description {Enable PHP doc comment caching} {
    configure.args-append --with-eaccelerator-doc-comment-inclusion
}

variant disassembler description {Include a disassembler} {
    configure.args-append --with-eaccelerator-disassembler
}

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