# -*- 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 105569 2013-04-25 12:50:42Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                lamson
version             1.3.4
revision            0
categories          mail python
platforms           darwin
license             {BSD GPL-3}
supported_archs     noarch

# For more details see https://trac.macports.org/ticket/38846#comment:2
python.default_version 27

maintainers         nomaintainer

description         Modern Pythonic mail server built like a web application server

long_description  \
    Lamson is a pure Python SMTP server designed to create robust and complex mail \
    applications in the style of modern web frameworks such as Django. Unlike \
    traditional SMTP servers like Postfix or Sendmail, Lamson has all the features \
    of a web application stack (ORM, templates, routing, handlers, state machines, \
    Python) without needing to configure alias files, run newaliases, or \
    juggle tons of tiny fragile processes. Lamson also plays well with other web \
    frameworks and Python libraries.

homepage            http://lamsonproject.org/
master_sites        http://pypi.python.org/packages/source/l/${name}

checksums           rmd160  8d521cd5f6cd3d689b192b8cae4ec9a3c75a529d \
                    sha256  253edf385ae54606579b6b717adf5edcd9df47f9a1d488aa61b9e9f42587d37d

depends_lib-append  port:py${python.version}-chardet \
                    port:py${python.version}-jinja2 \
                    port:py${python.version}-mock \
                    port:py${python.version}-nose \
                    port:py${python.version}-python-daemon \
                    port:py${python.version}-lockfile \
                    port:py${python.version}-dns

# don't add python version to lamson binary
python.link_binaries_suffix

livecheck.type      regex
livecheck.url       ${master_sites}
livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
