# -*- 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-moin
version             1.9.10
categories-append   www
maintainers         nomaintainer
license             GPL-2+
platforms           {darwin any}
supported_archs     noarch
description         a Python-based WikiEngine
long_description    MoinMoin is an advanced, easy to use \
                    and extensible WikiEngine with a large \
                    community of users. Said in a few words, \
                    it is about collaboration on easily \
                    editable web pages.

homepage            http://moinmo.in/
master_sites        http://static.moinmo.in/files/
distname            moin-${version}

checksums           rmd160  b6dc98e5c33c8e15dadf5f8063b86d8fce721c86 \
                    sha256  4a264418e886082abd457c26991f4a8f4847cd1a2ffc11e10d66231da8a5053c \
                    size    37283678

python.versions     27

if {${name} ne ${subport}} {
    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -m 644 -W ${worksrcpath} README.rst ${destroot}${docdir}
        copy ${worksrcpath}/docs ${destroot}${docdir}
        system "chmod -R a+r ${destroot}${python.prefix}/share/moin/underlay/pages"
    }
}

livecheck.name      moin
