# $Id: Portfile 65298 2010-03-25 00:55:16Z ryandesign@macports.org $

PortSystem              1.0

name                    libconfuse
version                 2.7
categories              devel
platforms               darwin
maintainers             nomaintainer
description             libConfuse is a configuration file parser library
long_description        ${description}

homepage                http://www.nongnu.org/confuse/
master_sites            http://savannah.nongnu.org/download/confuse/ \
                        http://bzero.se/confuse/
distname                confuse-${version}

checksums               md5     45932fdeeccbb9ef4228f1c1a25e9c8f \
                        sha1    b3f74f9763e6c9012476dbd323d083af4be34cad \
                        rmd160  adff129b2fd078b0e233386541dd83f7b0c567a4

depends_build           path:bin/pkg-config:pkgconfig

post-destroot {
    xinstall -m 644 -W ${worksrcpath}/doc/man/man3 \
        cfg_opt_t.3 \
        cfg_t.3 \
        cfg_value_t.3 \
        confuse.h.3 \
        ${destroot}${prefix}/share/man/man3
}

livecheck.type          regex
livecheck.url           [lindex ${master_sites} 0]
livecheck.regex         {confuse-([0-9.]+)\.tar}
