# -*- 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 106911 2013-06-11 14:40:14Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-markupsafe
version             0.18
revision            0
categories-append   textproc
platforms           darwin
license             BSD

python.default_version  27
python.versions     24 25 26 27 31 32 33

maintainers         perry openmaintainer

description         Implements a XML/HTML/XHTML Markup safe string for Python
long_description    ${description}

homepage            http://www.pocoo.org/projects/markupsafe/
master_sites        http://pypi.python.org/packages/source/M/MarkupSafe/

distname            MarkupSafe-${version}

checksums           rmd160  9773511d83b71a5208d9aa096996894697d8fc89 \
                    sha256  b7d5d688bdd345bfa897777d297756688cf02e1b3742c56885e2e5c2b996ff82

if {$subport != $name} {
    depends_build-append    port:py${python.version}-setuptools

    livecheck.type          none

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