# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4

PortSystem 1.0

name                yaz
version             5.27.1
revision            2
categories          net databases devel
platforms           darwin
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/yaz/
master_sites        http://ftp.indexdata.com/pub/yaz/

checksums           rmd160  c7dca889928164b8cea69a1a59431ad80230b6ac \
                    sha256  2e3f0cd304f38b4ad315d70771b378d4efafab37e9a28d4d4d6cd634718c3025 \
                    size    2578009

depends_build       port:pkgconfig
depends_lib         port:gnutls \
                    port:hiredis \
                    port:icu \
                    port:libiconv \
                    port:libxml2 \
                    port:libxslt \
                    port:ncurses \
                    port:readline \
                    port:zlib

configure.args      --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}"