# -*- 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
# $Id: Portfile 88736 2012-01-10 03:21:54Z dports@macports.org $

PortSystem 1.0

name                yaz
version             4.2.24
categories          net databases devel
platforms           darwin
license             BSD
maintainers         coateconnection.com:dlc
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            http://www.indexdata.dk/yaz/
master_sites        http://ftp.indexdata.dk/pub/yaz/

checksums           sha1    dc93953720bfbc6954d78a86fa8ff83b70e2963e \
                    rmd160  8332e5be51b6a6b70672fb989e71284336b90680

depends_build       port:pkgconfig
depends_lib         port:gnutls \
                    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-xml2=${prefix} \
                    --with-xslt=${prefix}
use_parallel_build  yes

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