# -*- 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$

PortSystem      1.0

name            libgpg-error
version         1.24
categories      devel
platforms       darwin
license         LGPL-2.1+
maintainers     mps openmaintainer
homepage        http://www.gnupg.org/
description     Common error values for all GnuPG components

long_description \
    libgpg-error is a library that defines common error values for all GnuPG components. \
    Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt, pinentry, SmartCard Daemon \
    and possibly more in the future.

master_sites    gnupg

use_bzip2       yes

checksums       rmd160  b7e9ee8344da7c5a73879f3caad6f2938b3123be \
                sha256  9268e1cc487de5e6e4460fca612a06e4f383072ac43ae90603e5e46783d3e540

depends_lib     port:libiconv \
                port:gettext

patchfiles      patch-configure.diff

test.run        yes
test.target     check

post-destroot {
    set docdir ${prefix}/share/doc/${name}-${version}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} ABOUT-NLS AUTHORS COPYING COPYING.LIB NEWS README \
        THANKS VERSION ${destroot}${docdir}
}

livecheck.type  regex
livecheck.url   ftp://ftp.gnupg.org/gcrypt/${name}/
livecheck.regex ${name}-(\\d+\\.\\d+)