source: trunk/dports/python/py-simpy/Portfile

Last change on this file was 130792, checked in by larryv@…, 3 years ago

py32-simpy: Replace with py34

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# -*- 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
2# $Id: Portfile 130792 2015-01-02 20:54:54Z ryandesign@macports.org $
3
4PortSystem 1.0
5PortGroup python 1.0
6PortGroup bitbucket 1.0
7
8bitbucket.setup simpy simpy 3.0.5
9name            py-${name}
10license         MIT
11maintainers     mcalhoun openmaintainer
12platforms       darwin freebsd
13supported_archs noarch
14description     python based simulation language
15long_description \
16    SimPy is an object-oriented, process-based \
17    discrete-event simulation language based on standard Python.
18
19homepage        http://simpy.readthedocs.org
20
21python.versions 27 33 34
22
23if {${name} ne ${subport}} {
24    depends_build-append       port:py${python.version}-setuptools
25
26    checksums           rmd160  2c9ec3ca81b7893e12181291920a1cd0b75a95b9 \
27                        sha256  32f100aa12a0e76826110489d8b4a61ef4f04452c5a0141775ef2cf1ceb1d249
28
29    variant docs description {Install Sphinx-generated docs} {
30        depends_build-append       port:py${python.version}-sphinx
31    }
32
33    post-destroot {
34        if {[variant_isset docs]} {
35            system -W ${worksrcpath}/docs "SPHINXBUILD=${prefix}/sphinx-build-3.4 make html man"
36            set doc_build_dir ${worksrcpath}/docs/_build
37            file delete -force ${doc_build_dir}/html/.buildinfo \
38                                ${doc_build_dir}/html/_sources
39            copy ${doc_build_dir}/html \
40                ${destroot}${prefix}/share/doc/${subport}
41            xinstall -d ${destroot}${prefix}/share/examples
42            move ${destroot}${prefix}/share/doc/${subport}/examples \
43                ${destroot}${prefix}/share/examples/${subport}
44            move ${doc_build_dir}/man \
45                    ${destroot}${python.prefix}
46        }
47    }
48    livecheck.type  none
49}
Note: See TracBrowser for help on using the repository browser.