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

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

description         GMime is a C/C++ library for parsing and creating messages using \
                    the Multipurpose Internet Mail Extension (MIME). This is GMime-2.6 \
                    which installs in parallel with GMime-3.0 (port gmime3).


long_description    ${description}

maintainers         nomaintainer
categories          mail
license             LGPL-2.1+
homepage            http://spruce.sourceforge.net/${name}/
master_sites        gnome:sources/${name}/${branch}

use_xz              yes

checksums           rmd160  2a7e594814a6b9e95d55b6a370086606081e97a8 \
                    sha256  7149686a71ca42a1390869b6074815106b061aaeaaa8f2ef8c12c191d9a79f6a

depends_build       port:pkgconfig \
                    path:bin/vala:vala

depends_lib         port:libgpg-error \
                    port:gpgme \
                    port:libiconv \
                    path:lib/pkgconfig/glib-2.0.pc:glib2 \
                    port:gettext \
                    port:zlib

gobject_introspection yes

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

test.run            yes
test.target         check

livecheck.type      gnome
# restrict livecheck to gmime-2.x branches
livecheck.regex     "LATEST-IS-(2\\.\\d*\[02468\](?:\\.\\d+)*)"
