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

name                ktoblzcheck
version             1.59
revision            1
categories          devel finance
maintainers         nomaintainer
description         Library to check bank account numbers and bank codes
long_description    {*}${description}
license             LGPL-2.1+
homepage            http://ktoblzcheck.sourceforge.net
master_sites        sourceforge

checksums           rmd160  a8ff63037610edace05577de3bee2620428b47e3 \
                    sha256  3cd33880d2425e8fa3be9918c85485514f53e04b0b986bcf7bd003fc53071fa7 \
                    size    89603

set py_v            3.11
set py_v_nodot      [string map {. {}} ${py_v}]

depends_lib-append  port:curl \
                    port:python${py_v_nodot} \
                    port:py${py_v_nodot}-openpyxl

# https://trac.macports.org/ticket/72782
compiler.cxx_standard   2011

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

livecheck.type      regex
livecheck.url       http://sourceforge.net/projects/ktoblzcheck/files/
livecheck.regex     ${name}-(\[0-9.\]+)\\.tar
