# -*- 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.35.1
revision            0

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  c47c2ab1c99ef878ea88aa22cb49a0dc174a166c \
                    sha256  db030d6d66880398a44215e26132630ee94f5e462d838809e43f97e6399c1353 \
                    size    2635632

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