# -*- 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 67076 2010-04-28 11:36:13Z ryandesign@macports.org $

PortSystem 1.0

name              yaz2
conflicts         yaz
version           2.1.56
categories        net databases devel
platforms         darwin
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. \
		  This is the older version 2 of yaz. Use the 'yaz' port \
		  unless you specifically need yaz2 for compatibility.

homepage      http://www.indexdata.dk/yaz/

master_sites  http://ftp.indexdata.dk/pub/yaz/
distname      yaz-${version}
checksums	  md5 0a4144c2c8556b363af40d12b2627d37 \
		  sha1 85e7c2d4b2d3b7ebd31afa65530381a4a9f0b922 \
		  rmd160 e6ef56188bd6de355e71202407af7d8163556627

depends_lib	  port:libiconv port:libxml2 port:ncurses port:openssl \
		  port:readline port:zlib

configure.args	--with-xml2=${prefix} --with-openssl=${prefix} \
		      --with-iconv=${prefix}

livecheck.type          regex
livecheck.url           ${master_sites}?M=D
livecheck.regex         "yaz-(2\\.\[0-9\]+(\\.\[0-9\]+)+)${extract.suffix}"
