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

PortSystem          1.0
PortGroup           muniversal 1.0

name                nettle
version             3.4
categories          devel crypto
platforms           darwin
maintainers         {ryandesign @ryandesign} openmaintainer
license             LGPL-2.1+

description         low-level cryptographic library

long_description    Nettle is a cryptographic library that is designed to fit \
                    easily in more or less any context: In crypto toolkits \
                    for object-oriented languages (C++, Python, Pike, ...), \
                    in applications like LSH or GNUPG, or even in kernel \
                    space. It tries to solve a problem of providing a common \
                    set of cryptographic algorithms for higher-level \
                    applications by implementing a context-independent set of \
                    cryptographic algorithms. In that light, Nettle doesn't \
                    do any memory allocation or I/O, it simply provides the \
                    cryptographic algorithms for the application to use in \
                    any environment and in any way it needs.

homepage            http://www.lysator.liu.se/~nisse/nettle/
master_sites        gnu

checksums           rmd160  56c59906e4bec5c0859abdd96645d5d54a8f78c4 \
                    sha256  ae7a42df026550b85daca8389b6a60ba6313b0567f374392e54918588a411e94 \
                    size    1935069

depends_lib         port:gmp

patchfiles          no-fink.patch \
                    macosx-dylib.patch

use_autoreconf      yes
autoreconf.args     -fvi

configure.args      --disable-openssl \
                    --enable-fat \
                    --enable-shared

test.run            yes
test.target         check
test.env            DYLD_LIBRARY_PATH=../.lib