# -*- 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 118537 2014-04-04 07:58:05Z aronnax@macports.org $

PortSystem 1.0
PortGroup python 1.0

set realname        itsdangerous
name                py-${realname}
version             0.24
python.versions     25 26 27
license             BSD
platforms           darwin
supported_archs     noarch
maintainers         aronnax openmaintainer
description         Various helpers to pass trusted data to untrusted environments and back
long_description    ${description}
homepage            http://pythonhosted.org/itsdangerous/
master_sites        http://pypi.python.org/packages/source/[string index ${realname} 0]/${realname}/
distname            ${realname}-${version}

checksums           md5     a3d55aa79369aef5345c036a8a26307f \
                    sha1    0a6ae9c20cd72e89d75314ebc7b0f390f93e6a0d \
                    rmd160  870c1cef9d39c74f2d376be07b50d0e11f343018

if {${name} eq ${subport}} {
    livecheck.type      regex
    livecheck.url       "http://pypi.python.org/pypi?:action=doap&name=${realname}"
    livecheck.regex     {<release><Version><revision>([^<]+)</revision></Version></release>}
} else {
    depends_build-append \
                    port:py${python.version}-setuptools

    livecheck.type  none
}
