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

name                    courier-unicode
version                 2.6.0
revision                0

categories              devel mail
license                 GPL-3
maintainers             nomaintainer
description             Courier Unicode Library implements several algorithms related to the Unicode Standard
long_description        {*}${description}

homepage                https://www.courier-mta.org/unicode
master_sites            sourceforge:project/courier/courier-unicode/${version}
use_bzip2               yes

checksums               rmd160  f954eebd4d0f3b287878783e5b5a5a908871a20d \
                        sha256  0aed2349c5b62de0d33ccf8c23527aae41daf95a03c8054c88de4faef8da8a08 \
                        size    707445

depends_lib-append      port:libiconv

patchfiles              patch-courier-unicode.h.in-add-missing-includes.diff

compiler.cxx_standard   2017
configure.cxxflags-append \
                        -std=gnu++17

# Limit the length of the minor and patch version components to avoid picking
# up development versions (that contain a YYYYMMDD timestamp).
livecheck.regex         "[quotemeta ${name}]-(\\d+(\\.\\d{1,7})*)[quotemeta ${extract.suffix}]"
