# -*- 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 107090 2013-06-18 00:55:48Z aronnax@macports.org $

PortSystem 1.0
PortGroup python 1.0

set realname        itsdangerous
name                py-${realname}
version             0.21
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     84d4b33f0a1e4d0f7f8f8755a5eb2580 \
                    sha1    683391f0331a65ab762d2561a25b852692dbd14c \
                    rmd160  09a1003cc07e3a3d9b764e58c692ed609f2bb241

if {${subport} == ${name}} {
    livecheck.type  regex
    livecheck.regex [format "%s-%s" ${realname} {(\d+(?:\.\d+)*)}]
} else {
    depends_build-append \
                    port:py${python.version}-setuptools

    livecheck.type  none
}
