# $Id$

PortSystem 1.0

name             c-ares
version          1.10.0
categories       net
maintainers      toby
description      asynchronous DNS library
long_description \
    c-ares is a C library that performs DNS requests and \
    name resolves asynchronously. c-ares is a fork of the \
    library named 'ares', written by Greg Hudson at MIT.
homepage         http://c-ares.haxx.se/
platforms        darwin
license          MIT
master_sites     ${homepage}download/
checksums        md5 1196067641411a75d3cbebe074fd36d8 \
                 sha1 e44e6575d5af99cb3a38461486e1ee8b49810eb5 \
                 rmd160 aee918002d3fc1b2112c7d95aacf1c00059f4677
configure.args   --mandir=${prefix}/share/man \
                 --enable-shared

post-configure {
    system "ed - ${worksrcpath}/ares_build.h < ${filespath}/ares_build.h.ed"
    system "ed - ${worksrcpath}/ares_config.h < ${filespath}/ares_config.h.ed"
}

livecheck.type   regex
livecheck.regex  href=\"c-ares-(\[0-9\]+\\.\[0-9\]+\\.\[0-9\]+)\\.tar\\.gz\"