# -*- Mode: Tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:et:sw=4:ts=4:sts=4
# $Id: Portfile 54577 2009-07-29 20:01:29Z toby@macports.org $

PortSystem 1.0

name            libgcrypt
version         1.4.4
categories      devel security
maintainers     sfiera openmaintainer
description     Crypto library
homepage        http://www.gnupg.org/
platforms       darwin

long_description \
    This is a general purpose cryptographic library based \
    on the code from GnuPG. It provides functions for all \
    cryptograhic building blocks: symmetric ciphers (AES, \
    DES, Blowfish, CAST5, Twofish, Arcfour), hash algorithms \
    (MD4, MD5, RIPE-MD160, SHA-1, TIGER-192), MACs (HMAC for \
    all hash algorithms), public key algorithms (RSA, ElGamal, \
    DSA), large integer functions, random numbers and a lot of \
    supporting functions.

master_sites    gnupg
use_bzip2       yes

checksums       md5     34105aa927e23c217741966496b97e67 \
                sha1    3987f0efcbb7048c136d5c859e88eee1763a14f6 \
                rmd160  65fd66687bd17bc8a680c59f26a8edf3e21e7dbf

depends_lib     port:libgpg-error

configure.args  --disable-asm

use_parallel_build  yes

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

test.run        yes
test.target     check

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