# -*- 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 106968 2013-06-12 18:25:02Z snc@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-mustache
set real_name       pystache
version             0.5.3
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    32beedc4ee01cca737ae8f05e65fb53f \
                    rmd160 0154c38eb7b7db9c7ad69fb3b28aa9c36530e597 \
                    sha256 445c8663291abf11305693ecac7b9f3ff976555f5506ccc05a0353260a5a16dc

python.versions     26 27 31 32 33

if {$subport != $name} {
    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}
}
