# -*- 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$

PortSystem          1.0
PortGroup           github 1.0

github.setup        libevent libevent 2.0.22-stable release-
version             [lindex [split ${version} -] 0]
revision            3
categories          devel
platforms           darwin
license             BSD
maintainers         nomaintainer

description         An event notification library

long_description    The libevent API provides a mechanism to execute \
                    a callback function when a specific event occurs \
                    on a file descriptor or after a timeout has been \
                    reached. Furthermore, libevent also support \
                    callbacks due to signals or regular timeouts.

homepage            http://libevent.org
github.tarball_from releases

checksums           rmd160  6a7e8e3ebcfd2227fa807a604b5c773c90c8b8cc \
                    sha256  71c2c49f0adadacfdbe6332a372c38cf9c8b7895bb73dabeaa53cdcc1d4e1fa3

depends_lib         path:lib/libssl.dylib:openssl

# Don't accidentally create flat-namespace dylibs on Yosemite (#44596).
patchfiles          yosemite-libtool.patch

patchfiles-append   patch-sierra-kqueue.diff

test.run            yes
test.target         verify

livecheck.url       ${homepage}
livecheck.version   ${version}
livecheck.type      regex
livecheck.regex     ${name}-(\\d+(?:\\.\\d+)*)-stable