# $Id: Portfile 55617 2009-08-14 21:30:46Z devans@macports.org $

PortSystem 1.0

name		gmime
version		2.4.8
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	boeyms openmaintainer
categories	mail
platforms	darwin
homepage	http://spruce.sourceforge.net/gmime/
master_sites    gnome:sources/${name}/${branch}
checksums       md5     aa75c2cf39a9084e32aba082eac61034 \
                sha1    bdbf5948679549160e8d010985995358dd8b72a5 \
                rmd160  a75cd72fdca3931cc9b6a1f70f34a86a2c8fad5f

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.check regex
livecheck.url   http://ftp.gnome.org/pub/gnome/sources/${name}/${branch}/
livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}
