# -*- 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.3.0
revision                0
checksums               rmd160  c8e5ec1c4388603fe5aeddd6267f02a7438a0df8 \
                        sha256  c9d9a7d368baa216d109c42389964946f988ac919460d7a3828bf99b7e50820d \
                        size    657354

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

depends_lib-append      port:libiconv

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

compiler.cxx_standard   2011
configure.cxxflags-append -std=c++11

# 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}]"
