# -*- 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 106554 2013-05-30 23:03:55Z cal@macports.org $

PortSystem 1.0

name                yaz
version             4.2.33
revision            3
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.com/yaz/
master_sites        http://ftp.indexdata.com/pub/yaz/

checksums           sha1    439b3098c7598d704dd65474ebf454a77ee9b27e \
                    rmd160  99295aaffa82d2ef0ebe7f6207b508b16e9e42da

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