# -*- 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                yaz
version             5.34.1
revision            1
categories          net databases devel
license             BSD
maintainers         nomaintainer
description         toolkit for Z39.50/SRW/SRU clients and servers
long_description    YAZ is a compact toolkit that provides access \
                    to the Z39.50 and SRW/SRU protocols, as well as a set \
                    of higher-level tools for implementing the server \
                    and client roles, respectively.

homepage            https://www.indexdata.com/resources/software/yaz/
master_sites        https://ftp.indexdata.com/pub/yaz/

checksums           rmd160  2d0ef8d16afa47681f3763a7548fd5e9fb550aca \
                    sha256  393ff4fbbf9194465996236f39efb2962848820247296aec2a6170b0d5d2a44c \
                    size    2596427

depends_build-append \
                    path:bin/pkg-config:pkgconfig

depends_lib-append  path:lib/pkgconfig/gnutls.pc:gnutls \
                    port:hiredis \
                    path:lib/pkgconfig/icu-uc.pc:icu \
                    port:libiconv \
                    port:libxml2 \
                    port:libxslt \
                    port:ncurses \
                    port:readline \
                    port:zlib

configure.args-append \
                    --with-gnutls=${prefix} \
                    --with-iconv=${prefix} \
                    --with-icu=${prefix} \
                    --with-memcached=no \
                    --with-xml2=${prefix} \
                    --with-xslt=${prefix}

livecheck.type      regex
livecheck.url       [lindex ${master_sites} 0]
livecheck.regex     "${name}-(\[0-9\]+(\\.\[0-9\]+)+)${extract.suffix}"
