# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem          1.0

name                dict
version             1.13.1
revision            0
checksums           rmd160  73008a12447273d3d89d3b0a0922e8df48c9bfc6 \
                    sha256  e4f1a67d16894d8494569d7dc9442c15cc38c011f2b9631c7f1cc62276652a1b \
                    size    395619

categories          textproc spelling
maintainers         nomaintainer
license             GPL-2
description         Dictionary Server Protocol (RFC2229) client and server
long_description    The Dictionary Server Protocol (DICT) is a TCP \
                    transaction based query/response protocol that \
                    allows a client to access dictionary definitions \
                    from a set of natural language dictionary databases.
homepage            http://www.dict.org/

distname            ${name}d-${version}
master_sites        sourceforge:project/${name}/dictd/${distname}/

use_parallel_build  no
depends_build       port:libtool
depends_lib         port:libmaa port:zlib

patchfiles          implicit.patch

configure.env       LIBTOOL=${prefix}/bin/glibtool

set conf_file       ${prefix}/etc/dict.conf

post-destroot {
    xinstall -m 0644 ${filespath}/dict.conf ${destroot}${conf_file}.dist
}

post-activate {
   if {![file exists ${conf_file}]} {
      file copy ${conf_file}.dist ${conf_file}
   }
}

livecheck.regex     /dictd-(\\d+(?:\\.\\d+)*)${extract.suffix}
