# -*- 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 105271 2013-04-15 17:30:59Z pixilla@macports.org $

PortSystem          1.0

name                dovecot2-antispam
set name_package    dovecot-antispam-plugin
hg.tag              50
version             0.0-${hg.tag}

# Please revbump port:dovecot2-sieve and port:dovecot2-antispam
# on port:dovecot2 version changes.
revision            2

categories          mail
maintainers         pixilla openmaintainer
platforms           darwin
license             GPL-2
description         Anti-spam plugin for dovecot2
long_description    ${description}

homepage            http://hg.dovecot.org/${name_package}/
master_sites        http://hg.dovecot.org/${name_package}/archive/
use_bzip2           yes
distfiles           ${hg.tag}${extract.suffix}
worksrcdir          ${name_package}-${hg.tag}

# fetch.type          hg
# hg.url              http://hg.dovecot.org/dovecot-antispam-plugin

depends_lib         port:dovecot2
depends_build       port:autoconf port:automake

checksums           rmd160  8a9cad15fd2a309bc163eb3a6e4b7a8f9697824e \
                    sha256  22c8b4a75096d5868beee4d950c6f55b20cf493ae6bb491d1a66cc2f4d869b44

pre-configure {
    system "cd ${worksrcpath} && ./autogen.sh"
}

livecheck.type      regex
livecheck.url       http://hg.dovecot.org/dovecot-antispam-plugin/log/
livecheck.version   ${hg.tag}
livecheck.regex     " rev (\[0-9\]+)</i><br/>"
