# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $

PortSystem      1.0

name            libgpg-error
version         1.7
categories      devel
platforms       darwin
maintainers     nomaintainer
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

depends_lib     port:libiconv \
                port:gettext

checksums       md5     62c0d09d1e76c5b6da8fff92314c4665 \
                sha1    bf8c6babe1e28cae7dd6374ca24ddcc42d57e902 \
                rmd160  6f9004baf8e707b5995a276b5a454102405a6afc

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+)

