# -*- 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           cmake                       1.1
PortGroup           compiler_blacklist_versions 1.0
PortGroup           github                      1.0
PortGroup           openssl                     1.0

# Need clock_gettime()
PortGroup           legacysupport               1.1

legacysupport.newest_darwin_requires_legacy     15

github.setup        fluent fluent-bit 3.1.5 v
github.tarball_from archive
revision            0
categories          sysutils
license             Apache-2

homepage            https://fluentbit.io

description         Fast and Lightweight Log processor and forwarder

long_description    Fluent Bit is a Data Forwarder for Linux, Embedded Linux, \
                    OSX and BSD family operating systems. It's part of the \
                    Fluentd Ecosystem.  Fluent Bit allows collection of \
                    information from different sources, buffering and \
                    dispatching them to different outputs such as Fluentd, \
                    Elasticsearch, Nats or any HTTP end-point within others.

maintainers         {l2dy @l2dy} \
                    {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

checksums           rmd160  82864bd89b6c7836fae17ef17928df7d30cb092e \
                    sha256  e75305c4ba9baa717baeacb4abbb9390f7433a74dcef0c41cc9d630288ca1d81 \
                    size    26767198

# /usr/bin/ranlib: unknown option character `n' in: -no_warning_for_no_symbols
compiler.blacklist-append   {clang < 700}

set python_version  312
set python_branch   \
    [string index ${python_version} 0].[string range ${python_version} 1 end]

depends_build-append        port:bison \
                            port:python${python_version}

depends_lib-append          port:cyrus-sasl2 \
                            port:jansson \
                            port:libev \
                            port:libevent \
                            port:libxml2 \
                            port:libyaml \
                            port:ngtcp2 \
                            port:nghttp3 \
                            port:sqlite3 \
                            port:zlib \
                            port:zstd

configure.args-append       \
    -DPython3_EXECUTABLE=${prefix}/bin/python${python_branch}

github.livecheck.regex      {([0-9.]+)}
