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

PortSystem      1.0

name            libdaemon
version         0.14
revision        1
categories      devel
platforms       darwin
maintainers     nomaintainer
license         LGPL-2.1+
description     C library that eases writing UNIX daemons

long_description \
    libdaemon is a lightweight C library that eases the process of \
    writing UNIX daemons. It contains a daemonizing fork() wrapper, \
    a powerful syslog() wrapper, PID file management, and signal \
    serialization.

homepage        http://0pointer.de/lennart/projects/libdaemon/
master_sites    ${homepage}

checksums           md5     509dc27107c21bcd9fbf2f95f5669563 \
                    sha1    78a4db58cf3a7a8906c35592434e37680ca83b8f \
                    rmd160  952ae993fecfe3ec765dfa43b2690a83f1a5c939

depends_build   port:pkgconfig

patchfiles      yosemite-libtool.patch

configure.args  --disable-lynx

post-destroot {
    set docdir ${prefix}/share/doc/${name}-${version}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} LICENSE README ${destroot}${docdir}
}

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