# -*- 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           legacysupport 1.1
PortGroup           openssl 1.0

name                goaccess
version             1.9.4
revision            0
categories          www
license             MIT
maintainers         {mps @Schamschula} openmaintainer
description         GoAccess was designed to be a fast, terminal-based log analyzer.
long_description    {*}${description} Its core idea is to quickly analyze and view web \
                    server statistics in real time without needing to use your browser.
homepage            https://goaccess.io/
master_sites        https://tar.goaccess.io/

checksums           rmd160  c370b82ef7503ed028603c7bd343491c47ab79d3 \
                    sha256  107d5a3cb186e6e7a8ac684a88d21a17884f128cb0bc4a4a53696145bb39373d \
                    size    856461

# strndup
legacysupport.newest_darwin_requires_legacy 10

compiler.cxx_standard   2011

openssl.branch      3

configure.args      --enable-geoip=mmdb \
                    --enable-utf8 \
                    --with-openssl

depends_build       port:gettext

depends_lib         port:gettext-runtime \
                    port:libmaxminddb \
                    port:ncurses \
                    port:tokyocabinet

patchfiles          patch-host_name_max.diff \
                    patch-src-util.c.diff

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