# -*- 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 86786 2011-11-04 05:20:35Z boeyms@macports.org $

PortSystem 1.0

name		gmime
version         2.4.23
set branch              [strsed ${version} {s/\.[0-9]*$//}]

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}

checksums       sha1    f6f8e13735751f2760dded0e7e9325dea0175346 \
                rmd160  4c4152d7f8ee384a69c3d31f5890b02d8c40a3be

depends_build   path:bin/pkg-config:pkgconfig
depends_lib     port:libiconv \
                path:lib/pkgconfig/glib-2.0.pc:glib2 \
                port:gettext \
                port:zlib

configure.args	--disable-mono --enable-largefile

test.run        yes
test.target     check

livecheck.type  regex
livecheck.url   http://ftp.gnome.org/pub/gnome/sources/${name}/${branch}/
livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}
