# -*- 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
# $Id: Portfile 85484 2011-10-14 02:15:35Z dports@macports.org $

PortSystem          1.0
name                gss
version             1.0.1
categories          security
license             GPL-3+
maintainers         nomaintainer
description         GNU Generic Security Service Library
long_description \
   GSS is an implementation of the Generic Security Service Application \
   Program Interface (GSS-API). GSS-API is used by network servers to \
   provide security services, e.g., to authenticate SMTP/IMAP clients \
   against SMTP/IMAP servers.

platforms           darwin

homepage            http://www.gnu.org/software/gss/
master_sites        gnu
checksums           md5     b044abfe64ad94e509f316c06d9b7422 \
                    sha1    ae1ef7c7fa708db8a399312041d75e73621689ea \
                    rmd160  3a9cf55288636eb72a8ef687e07424161490c72d

depends_build       port:pkgconfig

depends_lib         port:libiconv \
                    port:gettext

set docdir          ${prefix}/share/doc/${name}

configure.args      --docdir=${docdir} \
                    --disable-kerberos5 \
                    --with-libiconv-prefix=${prefix} \
                    --with-libintl-prefix=${prefix}

post-destroot {
   xinstall -m 0755 -d ${destroot}${docdir}
   xinstall -m 0644 -W ${worksrcpath}/doc gss.html gss.pdf gss.ps \
      ${destroot}${docdir}
}

livecheck.type      regex
livecheck.url       http://ftpmirror.gnu.org/gnu/gss/
livecheck.regex     ${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}
