# -*- 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-gtkmvc
version             1.99.1
revision            2
categories-append   x11
platforms           darwin
maintainers         nomaintainer
license             LGPL-2.1+

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            https://sourceforge.net/projects/pygtkmvc
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}
    }

    livecheck.type  none
} else {
    livecheck.regex pygtkmvc/(\\d+(?:\\.\\d+)*)
}