# -*- 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 108247 2013-07-17 00:58:07Z devans@macports.org $

PortSystem      1.0

name            gmime
version         2.6.16
set branch      [join [lrange [split ${version} .] 0 1] .]

description     MIME mail utilities
long_description  The GMime suite provides a core library and set of utilities \
                  which may be used for the creation and parsing of messages \
                  using the Multipurpose Internet Mail Extension (MIME) \
                  configurable and incorporating all the features you would expect \
                  in a robust mail client.
maintainers     nomaintainer
categories      mail
license         LGPL-2.1+
platforms       darwin
homepage        http://spruce.sourceforge.net/gmime/
master_sites    gnome:sources/${name}/${branch}

use_xz          yes

checksums       sha256  1093c2c9b4644d53b9c2df30042b3c4c2e9141d3e65e299030d227485d95c8af \
                rmd160  8e5fdce0a2a6deb54a636add4f95fae60d0a4672

depends_build   path:bin/pkg-config:pkgconfig
depends_lib     port:libgpg-error \
                port:gpgme \
                port:gobject-introspection \
                port:vala \
                port:libiconv \
                path:lib/pkgconfig/glib-2.0.pc:glib2 \
                port:gettext \
                port:zlib

configure.args  --enable-introspection=yes \
                --enable-vala=yes \
                --enable-cryptography \
                --enable-smime \
                --disable-mono

test.run        yes
test.target     check

livecheck.type  gnome
