# -*- 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 65636 2010-03-29 12:55:51Z brett@macports.org $

PortSystem 1.0
name                    libzookeeper
version                 3.3.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 6f4bdcc8cade06f92c0c843f327fa8291d5933c8
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
}

