PortSystem          1.0
PortGroup           python 1.0

name                py-gtkmvc
version             1.99.1
revision            2
categories-append   x11
platforms           darwin
maintainers         nomaintainer

description         Model-View-Controller for PyGTK2
long_description    This is an implementation of the Model-View-Controller and Observer \
                    patterns for the Pygtk2 toolkit.  MVC is a pattern that can be \
                    successfully used to design and develop well structured GUI applications. \
                    The MVC pattern basically helps in separating sematics and data of the \
                    application, from their representation. The Observer pattern is also \
                    embedded here. This pattern allows making separated parts independent, \
                    but still connected each other. 

homepage            http://pygtkmvc.sourceforge.net/
master_sites        sourceforge:pygtkmvc
distname            python-gtkmvc-${version}

checksums           rmd160  9fe09b6146490afef9c079dae7518896ee2a7f21 \
                    sha256  a8a74fb0a21d9e229950927a906f5f83ee19e459547138b360a6c60418667ab7

python.versions     27

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

    post-destroot {
        # Remove preinstalled examples dir, it's empty!
        file delete ${destroot}${prefix}/share/doc/${subport}/examples
        copy ${worksrcpath}/docs ${worksrcpath}/examples \
            ${worksrcpath}/README ${destroot}${prefix}/share/doc/${subport}
    }
}