# -*- 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 130792 2015-01-02 20:54:54Z larryv@macports.org $ PortSystem 1.0 PortGroup python 1.0 PortGroup bitbucket 1.0 bitbucket.setup simpy simpy 3.0.5 name py-${name} license MIT 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.readthedocs.org python.versions 27 33 34 if {${name} ne ${subport}} { depends_build-append port:py${python.version}-setuptools checksums rmd160 2c9ec3ca81b7893e12181291920a1cd0b75a95b9 \ sha256 32f100aa12a0e76826110489d8b4a61ef4f04452c5a0141775ef2cf1ceb1d249 variant docs description {Install Sphinx-generated docs} { depends_build-append port:py${python.version}-sphinx } post-destroot { if {[variant_isset docs]} { system -W ${worksrcpath}/docs "SPHINXBUILD=${prefix}/sphinx-build-3.4 make html man" set doc_build_dir ${worksrcpath}/docs/_build file delete -force ${doc_build_dir}/html/.buildinfo \ ${doc_build_dir}/html/_sources copy ${doc_build_dir}/html \ ${destroot}${prefix}/share/doc/${subport} xinstall -d ${destroot}${prefix}/share/examples move ${destroot}${prefix}/share/doc/${subport}/examples \ ${destroot}${prefix}/share/examples/${subport} move ${doc_build_dir}/man \ ${destroot}${python.prefix} } } livecheck.type none }