# -*- 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 107497 2013-07-01 16:51:51Z jeremyhu@macports.org $

PortSystem 1.0
PortGroup  muniversal 1.0

name            libev
epoch           1
version         4.15
categories      devel
maintainers     nomaintainer
license         {BSD GPL-2+}
description     asynchronous event library
long_description    libev is a full-featured and high-performance event \
            loop that is loosely modelled after libevent.
homepage        http://software.schmorp.de/pkg/libev.html
platforms       darwin
master_sites        http://dist.schmorp.de/libev/Attic/

checksums           rmd160  100812a3d24b9968a670c9cd4f16c9de172a0994 \
                    sha256  b2dd43a073556f5350cbed05b6ef444dcc4b563f4e0b1009d7bf448261606feb

patchfiles cflags.patch 

use_autoreconf  yes
autoreconf.args -fvi

post-destroot {
    move ${destroot}${prefix}/include/event.h ${destroot}${prefix}/include/ev-event.h
}

test.run        yes
test.target     verify

livecheck.type  regex
livecheck.url   http://dist.schmorp.de/libev/
livecheck.regex ${name}-(\[0-9.\]+)\\.
