# -*- 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: Portfile 79437 2011-06-13 09:18:07Z ryandesign@macports.org $

PortSystem          1.0

name                nasty
version             0.6
categories          security
platforms           darwin
maintainers         nomaintainer

description         passphrase revovery helper for PGP and GPG keys

long_description    Nasty is a program that helps you to recover the \
                    passphrase of your PGP or GPG-key in case you forget or lost \
                    it. This tool will not help if you have no clue about the \
                    passphrase!

homepage            http://www.vanheusden.com/nasty/
master_sites        ${homepage}

checksums           md5     f8181bd8d887acd869ce677034465c6f

depends_lib         port:gpgme \
                    port:pth

extract.suffix      .tgz

patchfiles          patch-Makefile

use_configure       no

variant universal {}
if {[variant_isset universal]} {
    set archflags ${configure.universal_cflags}
} else {
    set archflags ${configure.cc_archflags}
}

build.env           CC="${configure.cc}" \
                    CFLAGS="${configure.cflags} ${configure.cppflags} ${archflags}" \
                    LDFLAGS="${configure.ldflags} ${archflags}"

destroot.destdir    prefix=${destroot}${prefix}
