# -*- 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

PortSystem          1.0
PortGroup           python 1.0

name                py-jinja2-time
version             0.2.0
revision            0

categories-append   devel
platforms           {darwin any}
supported_archs     noarch
license             MIT
maintainers         {reneeotten @reneeotten} openmaintainer

description         Jinja2 Extension for Dates and Times
long_description    {*}${description}

homepage            https://github.com/hackebrot/jinja2-time

checksums           rmd160  ab4922311b45c56b2e9462b5afd555ed82cdabbe \
                    sha256  d14eaa4d315e7688daa4969f616f226614350c48730bfa1692d2caebd8c90d40 \
                    size    5701

python.versions     310 311 312 313 314

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:py${python.version}-arrow \
                    port:py${python.version}-jinja2

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} CONTRIBUTING.rst LICENSE \
           CONTRIBUTORS.rst HISTORY.rst README.rst ${destroot}${docdir}
    }
}
