# -*- 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
PortGroup           github 1.0
PortGroup           xcode 1.0

set my_name         MkConsole
github.setup        mulle-kybernetik mkconsole 1.14 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
categories          aqua
license             Restrictive/Distributable
maintainers         nomaintainer

description         application that displays logfiles on your desktop

long_description    This is a little application that displays logfiles on \
                    your desktop. Really useful if you have to monitor \
                    servers or you just want to keep an eye on what's going \
                    on on your machine. In its standard configuration it \
                    displays entries from any number of logfiles interleaved \
                    in a single window. Have a look at some screenshots. \
                    MkConsole is smart enough to close and reopen files \
                    every now and then to deal with rotating files and it \
                    transparently works around stale NFS handles which often \
                    exist after your Mac wakes up from sleep and tries to \
                    read from a logfile mounted via NFS. If you don't mind \
                    hacking the user defaults (rather than using the \
                    preferences panel) you can also configure multiple \
                    windows with multiple logfiles each.

homepage            http://www.mulle-kybernetik.com/software/${my_name}/

checksums           rmd160  c2e4e45824f3ca2d4a6676234150629169324429 \
                    sha256  0d458bbf5091bdd8258095f8666f8055ea16204163679593e126ded9b4cdbd54 \
                    size    109248

# Backport, drop with next update.
# See: https://github.com/mulle-kybernetik/mkconsole/issues/1
patchfiles-append   2ed541237808b584962cb0ae7485ee3d31a1ca45.patch

xcode.build.settings    CODE_SIGN_IDENTITY=
xcode.destroot.settings CODE_SIGN_IDENTITY=

xcode.destroot.settings-append SKIP_INSTALL=no

# see https://trac.macports.org/ticket/57137
if {${os.platform} eq "darwin" && ([vercmp $xcodeversion 10.0] > 0)} {
    build.pre_args-append    -UseModernBuildSystem=NO
    destroot.pre_args-append -UseModernBuildSystem=NO
}

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