# -*- 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
# $Id: Portfile 124465 2014-08-24 09:20:09Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           github 1.0
PortGroup           php 1.1

github.setup        eaccelerator eaccelerator 0.9.6.1
name                php-eaccelerator
revision            16
categories          php www devel
platforms           darwin freebsd openbsd
maintainers         ryandesign openmaintainer
license             GPL-2+

php.branches        5.3

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.

homepage            http://eaccelerator.net/
github.tarball_from downloads

checksums           md5     32ccd838e06ef5613c2610c1c65ed228 \
                    sha1    c95e87229a6e674b4994d4fc13278e516ea314f9 \
                    rmd160  6a16ab377ec124a27e26a5fdc1fd6ada845695bd

use_bzip2           yes

if {${name} ne ${subport}} {
    conflicts       ${php}-APC ${php}-APCu ${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
    }
}
