# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id: Portfile 92837 2012-05-09 00:51:48Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           cmake 1.0

name                rspamd
version             0.4.2
revision            2
categories          mail
maintainers         pixilla openmaintainer
platforms           darwin
description         Rspamd filtering system is created as a replacement of popular spamassassin \
                    spamd and is designed to be fast, modular and easily extendable system.
long_description    ${description}  Rspamd core is written in C language using event driven \
                    paradigma. Plugins for rspamd can be written in lua. Rspamd is designed to \
                    process connections completely asynchronous and do not block anywhere in code.
homepage            https://bitbucket.org/vstakhov/rspamd/overview
master_sites        https://bitbucket.org/vstakhov/rspamd/downloads/

checksums           rmd160  3ea9e8ff48b7c2a61aebd076610b13a008505583 \
                    sha256  cd268bfe20a7e43a3e5a98a15c8be9769153d774abdc9551f4e07516f84a9906

depends_build-append port:pkgconfig

depends_lib         port:perl5 \
                    port:libevent \
                    port:lua \
                    port:pcre \
                    path:lib/pkgconfig/glib-2.0.pc:glib2 \
                    port:gmime

post-patch {
    reinplace "s|man/man|share/man/man|g" \
                ${worksrcpath}/CMakeLists.txt
}
