# -*- 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           gitlab 1.0
PortGroup           boost 1.0

name                ixion-0.18
set my_name         ixion
gitlab.setup        ${my_name} ${my_name} 0.18.1
revision            1

categories          devel
license             MIT
maintainers         {gmail.com:audvare @Tatsh} openmaintainer

description         General purpose formula parser and interpreter.
long_description    {*}${description}

depends_build-append \
                    port:pkgconfig

depends_lib-append \
                    port:mdds-2.1 \
                    port:spdlog

checksums           rmd160  bb0b41b1c4dbd4e334049819937b530ed82e4fc5 \
                    sha256  c2975b0aa9f6e1a76c690928cdaa6f48d414cf6f8cca83c9e8c713dec4da18f0 \
                    size    203778

compiler.cxx_standard 2017

use_autoreconf      yes
configure.args-append \
                    --disable-debug \
                    --disable-python \
                    --enable-threads \
                    --program-suffix=-0.18

build.post_args V=1

# This port provides bindings previously provided by 'ixion'.
# So the latter must be deactivated first, if installed.
# This logic added 2023-05-29; keep in place for at least 12 months.
pre-activate {
    set port_conflict_name    ixion

    if { ![catch {set port_conflict_ver_info [lindex [registry_active ${port_conflict_name}] 0]}] } {
        ui_info "${port_conflict_name} installed; deactivating"
        registry_deactivate_composite ${port_conflict_name} "" [list ports_nodepcheck 1]
    }
}

gitlab.livecheck.regex {(0\.18\.\d+)}
