# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8: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-simpy
version         2.3
license         LGPL-2.1+
maintainers     mcalhoun openmaintainer
platforms       darwin freebsd
supported_archs noarch
description     python based simulation language
long_description \
    SimPy is an object-oriented, process-based \
    discrete-event simulation language based on standard Python.

homepage        http://simpy.sourceforge.net/
master_sites    sourceforge:project/simpy/simpy/SimPy-${version}
distname        SimPy-${version}

checksums       rmd160  d392e8d47f6726f604ff0332bb41fd826ee7c29f \
                sha256  f08cc17476e7aeaf927f3cb03a0c0566dbcae7794cbecc4f32a21f7ab195cd78

python.versions 24 25 26 27 32 33

if {${name} ne ${subport}} {
    depends_lib-append port:py${python.version}-tkinter
    post-destroot {
        copy ${worksrcpath}/docs/html \
            ${destroot}${prefix}/share/doc/${subport}
        delete ${destroot}${prefix}/share/doc/${subport}/examples
        copy ${worksrcpath}/docs/examples \
            ${destroot}${prefix}/share/doc/${subport}
        file delete -force ${destroot}${prefix}/share/doc/${subport}/html/.buildinfo \
                           ${destroot}${prefix}/share/doc/${subport}/html/_sources
        
    }
    livecheck.type  none
} else {
    livecheck.regex <title>simpy SimPy-(\\d+(?:\\.\\d+)*) released.*</title>
}
