# -*- 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 105084 2013-04-09 15:33:21Z cal@macports.org $

PortSystem      1.0
PortGroup       active_variants 1.1

name            claws-mail
version         3.9.0
categories      mail news
platforms       darwin
license         GPL-3+
maintainers     piermont.com:perry openmaintainer

description     A lightweight and very featureful GTK+ based e-mail and news client

long_description Currently, many features are supported in Claws Mail \
                including POP3, IMAP, NNTP, multiple accounts, \
                threading, filtering, MIME attachments, APOP, SMTP \
                AUTH, SSL, IPv6, GnuPG, internalization, plugins, \
                a filtering/processing mechanism, extra folder \
                properties and much more.

homepage        http://www.claws-mail.org/
master_sites    sourceforge:project/sylpheed-claws/Claws%20Mail/${version}

checksums       rmd160  b7dac137d4c44130bb74a37aa92c0c798174441f \
                sha256  ed70975a5056b3ffc4fe6e977f0d9606febc1499763c090241b029a73ff24e65

use_bzip2       yes

depends_build   port:pkgconfig
depends_lib     port:gtk2 \
                port:libetpan \
                port:gpgme \
                port:compface \
                port:gtkspell2 \
                port:aspell \
                port:gnutls \
                port:libgcrypt

# claws uses gdk/gdkx.h, which is not installed by gtk2 +quartz.
require_active_variants \
                gtk2 x11

configure.args  --disable-jpilot \
                --disable-trayicon-plugin \
                --enable-ipv6 \
                --enable-crash-dialog

livecheck.regex /${name}-(\[0-9.\]+)${extract.suffix}
