# -*- 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 114324 2013-12-05 08:44:51Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-moin
version             1.9.7
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  e5a0a57df8a6fe366a904c7a7f8caebab54e7e97 \
                    sha256  f4ba1b5c956bd96d2a61e27e68d297aa63d1afbc80d5740e139dcdf0affb4db5

python.versions     25 26 27

if {${name} ne ${subport}} {
    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"
    }
}
