# $Id: Portfile 54094 2009-07-20 21:58:24Z brett@macports.org $

PortSystem 1.0
name                    libzookeeper
version                 3.2.0
description             C bindings for ZooKeeper, the high-performance coordination service
long_description        ZooKeeper is a distributed, open-source coordination service for \
distributed applications. It exposes a simple set of primitives that distributed applications \
can build upon to implement higher level services for synchronization, configuration \
maintenance, and groups and naming. It is designed to be easy to program to, and uses a data \
model styled after the familiar directory tree structure of file systems. This port contains \
the C bindings for interacting with it.
maintainers             brett
categories              devel
platforms               darwin
homepage                http://hadoop.apache.org/zookeeper/
distname                zookeeper-${version}
master_sites            apache:hadoop/zookeeper/${distname}
checksums               sha1 457534bd151ef4f4e59f9dc54d0c74afbfa2ed36
worksrcdir              ${distname}/src/c
use_configure           yes
configure.args          --mandir=${prefix}/share/man

pre-configure {
      system "cd ${worksrcpath}/../.. && ant compile_jute"
}

post-configure {
      reinplace "s|-Werror||" ${worksrcpath}/Makefile
      reinplace "s|c-client-src|zookeeper|" ${worksrcpath}/Makefile
}

