# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id: Portfile 66288 2010-04-08 13:45:16Z snc@macports.org $

PortSystem 1.0

name                    gearmand
version                 0.13
description             framework for distributed computation
long_description        Gearman provides a generic application framework \
                        to farm out work to other machines or processes \
                        that are better suited to do the work. It allows \
                        you to do work in parallel, to load balance \
                        processing, and to call functions between languages. \
                        It can be used in a variety of applications, from \
                        high-availability web sites to the transport of \
                        database replication events. In other words, it \
                        is the nervous system for how distributed \
                        processing communicates.
maintainers             medialize.de:rodney.rehm openmaintainer
categories              sysutils
platforms               darwin
homepage                http://gearman.org/
master_sites            https://launchpad.net/gearmand/trunk/${version}/+download/

checksums           md5     8e5d126b7ef252d062a48ab47eb95e65 \
                    sha1    a8ff09540fb98ea987384007e8736931c976a441 \
                    rmd160  b0dab0408ab2379940914aa96fc731587121eb4f

depends_lib             port:libevent

configure.args          --mandir=${prefix}/share/man \
                        --with-libevent-prefix=${prefix} \
                        --enable-threads

startupitem.create      yes
startupitem.executable  ${prefix}/sbin/gearmand -vv \
                        --port=4730 \
                        -u root \
                        --pid-file=${prefix}/var/run/gearmand.pid \
                        --log-file=${prefix}/var/log/gearmand.log

variant dtrace description (Enable DTrace probes) {
    configure.args-append    --enable-dtrace
}
