# -*- 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 120034 2014-05-14 11:28:34Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-pystache
version             0.5.4
revision            0
categories-append   devel textproc
platforms           darwin
license             MIT
supported_archs     noarch

python.versions     27 33 34

maintainers         stromnov openmaintainer

description         Mustache for Python

long_description    Pystache is a Python implementation of Mustache. \
                    Mustache is a framework-agnostic, logic-free templating \
                    system inspired by ctemplate and et.

homepage            http://github.com/defunkt/pystache
master_sites        http://pypi.python.org/packages/source/p/pystache/

distname            pystache-${version}

checksums           rmd160  07b303af8cb3841fb1afb1bf73c625cf54b6fe94 \
                    sha256  f7bbc265fb957b4d6c7c042b336563179444ab313fb93a719759111eabd3b85a

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