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

name                gnomint
version             1.2.1
revision            5
categories          security
platforms           darwin
maintainers         phlo.org:fgp
license             GPL-3+

description         Single-user PKI with graphical (GTK) and CLI interface

long_description    gnoMint provides a GUI and a CLI to manage a simple PKI. \
                    Supports multiple root certificates, intermediate certificates, \
                    creating/importing and signing of CSRs and certificate \
                    revokation. Stores the whole PKI in a single SQLite file.

homepage            http://gnomint.sourceforge.net/
master_sites        sourceforge:project/gnomint/gnomint/${version}

checksums           rmd160  6a55b7329aa81c895a6f9bfb04b82d9759f5a10f \
                    sha256  6186ca6073e912bad5e0b026bc704430098a54392f3741d62929cc6fca3c38b0

depends_build       port:intltool \
                    port:pkgconfig \
                    port:gnome-common \
                    port:autoconf \
                    port:automake \
                    port:libtool

depends_lib         port:gconf \
                    port:gettext \
                    path:lib/pkgconfig/glib-2.0.pc:glib2 \
                    path:lib/pkgconfig/gnutls.pc:gnutls \
                    path:lib/pkgconfig/gtk+-2.0.pc:gtk2 \
                    port:libgcrypt \
                    port:readline \
                    port:sqlite3 \
                    port:zlib

patchfiles          patch-configure.in.diff \
                    patch-src-Makefile.am.diff \
                    patch-src-import.c.diff

# reconfigure using upstream autogen.sh for intltool 0.51 compatibility

post-patch {
    xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath}
}

configure.cmd       ./autogen.sh