# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 71359 2010-09-10 10:39:39Z ryandesign@macports.org $

PortSystem          1.0

name                wait_on
version             1.1
categories          sysutils
platforms           darwin
maintainers         webfinish.com:kirk
license             GPL-2

description         waits until a file or directory is changed

long_description    ${name} waits until a file is created, changed, or deleted \
                    using kqueue. Provides a timeout to wait for changes.

homepage            http://www.freshports.org/sysutils/wait_on/
master_sites        freebsd
worksrcdir          ${name}

checksums           md5    6b5917ad6136fdd8295d2d1299db10d5 \
                    sha1   9e3fb51b6324f5aca7664fb8165f61a52bd5bd61 \
                    rmd160 5d14c616c805cef7d369b6fcb6c0377ba1d8ef1d

use_configure       no

variant universal {}
if {[variant_isset universal]} {
    set archflags ${configure.universal_cflags}
} else {
    set archflags ${configure.cc_archflags}
}

build.type          bsd
build.args          PREFIX=${prefix} \
                    CC="${configure.cc} ${archflags}"

destroot.args       PREFIX=${prefix} \
                    MANDIR=${prefix}/share/man/man

livecheck.type      regex
livecheck.url       ${homepage}
livecheck.regex     ${name} (\[0-9.\]+)
