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

# FIXME: 1.14 broken atm: https://github.com/mulle-kybernetik/mkconsole/issues/2
set my_name         MkConsole
github.setup        mulle-kybernetik mkconsole fdcb24edc77784893590b3881a8ecfd8a3845d44
version             1.13
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  114c8c757b70abbe393e550ce4c363e5d81d730f \
                    sha256  67c6bd22f7a6a2cf0367d702b79805e2f17458f84b79da96c8a5f0c15a588150 \
                    size    110244
github.tarball_from archive

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

# Backport of https://github.com/mulle-kybernetik/mkconsole/commit/e1caff6772bca5fa9f3449d17a5a2d2edf9c206a
patchfiles-append   e1caff6772bca5fa9f3449d17a5a2d2edf9c206a.patch

# Restores a file deleted in https://github.com/mulle-kybernetik/mkconsole/commit/fdcb24edc77784893590b3881a8ecfd8a3845d44
# since the build expects it to be present...
post-extract {
    copy ${filespath}/ReadMe.html ${worksrcpath}/
}

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+)*)}
