# -*- 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 99135 2012-10-28 01:25:18Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-moin
version             1.9.5
categories-append   www
maintainers         nomaintainer
license             GPL-2+
platforms           darwin
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  7cbc818109691a4ee2b65906fe67a010ca862900 \
                    sha256  74e1d1420723aaf202f46082540524987f47c40a444f8444d58d57c66324811c

python.versions     25 26 27
python.default_version 27

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