# -*- 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
PortGroup           github 1.0

github.setup        nascheme quixote 3.1 v
name                py-quixote
revision            0

categories-append   www
platforms           darwin
# license for most files has a choice of law clause
license	            Permissive GPLConflict ZPL-2 PSF
maintainers         nomaintainer

description         Quixote is a framework for developing Web applications in Python
long_description    ${description}. Its design goals were to allow easy \
                    development of Web applications where the accent is \
                    more on complicated programming logic than complicated \
                    templating, to make the templating language as similar \
                    to Python as possible. The aim is to make as many of \
                    the skills and techniques learned from writing regular \
                    Python code applicable to the task of writing Web \
                    applications.

homepage            http://www.quixote.ca/

checksums           rmd160  a3aa0037ffbd2209a99a8d81cf9d858e3506909c \
                    sha256  3bda2618e62cc377ebad9370c7d33135d58844490bcb99973a8b9f2c1dc70834 \
                    size    162876

python.versions     27 38 39

if {${name} ne ${subport}} {
    if {${python.version} == 27} {
        github.setup    nascheme quixote 2.9.1 v
        revision    0
        checksums   rmd160  a6c6618c6bf86bff8d10c278abc7343fe140c966 \
                    sha256  138c248057a1ed37f6e3f3e581be14194403cdd226d7a8a7d134bd6d63484749 \
                    size    168523
    }

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} README.txt ACKS.txt \
            LICENSE.txt ${destroot}${docdir}
        xinstall -m 0644 {*}[glob -directory ${worksrcpath}/doc *] \
            ${destroot}${docdir}
    }

    livecheck.type  none
} else {
    github.livecheck.regex  {([0-9.]+)}
}
