# -*- 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 53542 2009-07-08 00:15:29Z takanori@macports.org $

PortSystem 1.0

name                yaz
version             3.0.44
revision            1
categories          net databases devel
platforms           darwin
maintainers         yves
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           md5 330730a4a7a097447ed3abe09d38e0ce \
                    sha1 90e37a25301a70375245a1fe0aa21099e8fea4f9 \
                    rmd160 819a7bf161c871497f2efb16e23338e585c947a0

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.check     regex
livecheck.url       ${master_sites}?M=D
livecheck.regex     "${name}-(\[0-9\]+(\\.\[0-9\]+)+)${extract.suffix}"
