# -*- 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 67982 2010-05-23 19:01:24Z ryandesign@macports.org $

PortSystem 1.0

name                yaz
conflicts           yaz2
version             4.0.9
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           md5     de6a8285e5691d5089971975994210a3 \
                    sha1    b2bfd1f44001a9316d25d96bc597f6e088a1b4f3 \
                    rmd160  b150a1f07a936d1edb17055855ba911e8022f945

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