# -*- 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 120273 2014-05-21 14:11:49Z snc@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-mustache
set real_name       pystache
version             0.5.4
categories-append   www
license             MIT
platforms           darwin
supported_archs     noarch
maintainers         snc gmail.com:jweede+macports openmaintainer
homepage            http://github.com/defunkt/pystache
description         Logic-less templates, implemented in Python.
long_description    \
    Inspired by ctemplate and et, Mustache is a framework-agnostic way \
    to render logic-free views.

master_sites        https://pypi.python.org/packages/source/p/${real_name}/
distname            ${real_name}-${version}
checksums           md5     485885e67a0f6411d5252e69b20a35ca \
                    rmd160  07b303af8cb3841fb1afb1bf73c625cf54b6fe94 \
                    sha256  f7bbc265fb957b4d6c7c042b336563179444ab313fb93a719759111eabd3b85a

python.versions     26 27 31 32 33 34

if {${name} ne ${subport}} {
    depends_build-append   port:py${python.version}-setuptools
    livecheck.type          none
} else {
    livecheck.type          regex
    livecheck.regex         ${real_name}-(\\d+(\\.\\d+)+)
    livecheck.url           ${master_sites}
}
