You've already forked macports-ports
mirror of
https://github.com/encounter/macports-ports.git
synced 2026-03-30 11:29:27 -07:00
82 lines
2.7 KiB
Tcl
82 lines
2.7 KiB
Tcl
# -*- 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-simpy
|
|
version 4.0.1
|
|
|
|
platforms darwin freebsd
|
|
license MIT
|
|
maintainers {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
|
|
|
|
supported_archs noarch
|
|
installs_libs no
|
|
|
|
description python based simulation language
|
|
long_description SimPy is an object-oriented, process-based \
|
|
discrete-event simulation language based on standard Python.
|
|
|
|
homepage https://simpy.readthedocs.io
|
|
|
|
checksums rmd160 9d93bbec24cf6e97c009b45783b1c8791a04e2df \
|
|
sha256 b36542e2faab612f861c5ef4da17220ac1553f5892b3583c67281dbe4faad404 \
|
|
size 410082
|
|
|
|
python.versions 36 37 38 39
|
|
|
|
if {${name} eq ${subport}} {
|
|
revision 1
|
|
} elseif {![string match *-docs ${subport}]} {
|
|
revision 0
|
|
|
|
depends_build-append port:py${python.version}-setuptools_scm
|
|
|
|
depends_test-append port:py${python.version}-pytest
|
|
|
|
test.run yes
|
|
test.cmd py.test-${python.branch}
|
|
test.args -o addopts="-m 'not benchmark'"
|
|
test.target
|
|
test.env PYTHONPATH=${worksrcpath}/build/lib
|
|
|
|
livecheck.type none
|
|
} else {
|
|
revision 0
|
|
|
|
set no_doc_subport [string trimright ${subport} -docs]
|
|
|
|
depends_build-append port:${no_doc_subport} \
|
|
port:py${python.version}-sphinx \
|
|
port:py${python.version}-sphinx_rtd_theme
|
|
|
|
build.dir ${worksrcpath}/docs
|
|
build.cmd make
|
|
build.target html man
|
|
build.args SPHINXBUILD=${prefix}/bin/sphinx-build-${python.branch}
|
|
|
|
destroot {
|
|
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/${no_doc_subport}
|
|
|
|
xinstall -d ${destroot}${python.prefix}/share/man
|
|
copy ${doc_build_dir}/man \
|
|
${destroot}${python.prefix}/share/man/man1
|
|
|
|
xinstall -d ${destroot}${prefix}/share/examples
|
|
copy ${worksrcpath}/docs/examples \
|
|
${destroot}${prefix}/share/examples/${no_doc_subport}
|
|
}
|
|
|
|
livecheck.type none
|
|
}
|
|
|
|
foreach v ${python.versions} {
|
|
subport py${v}[string trimleft $name py]-docs {}
|
|
}
|