# $Id: Portfile 76389 2011-02-22 02:09:20Z jmr@macports.org $

PortSystem      1.0
PortGroup       archcheck 1.0

name            libgpg-error
version         1.10
categories      devel
platforms       darwin
license         LGPL-2.1+
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

archcheck.files lib/libiconv.dylib \
                lib/libintl.dylib

checksums       md5     736a03daa9dc5873047d4eb4a9c22a16 \
                sha1    95b324359627fbcb762487ab6091afbe59823b29 \
                rmd160  435fcf1c748ae6877b5de7f133a741cd55dc1140

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

