2019-11-21 08:36:00 -05:00
|
|
|
# -*- 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
|
2017-08-19 07:34:50 -07:00
|
|
|
|
2019-11-21 08:36:00 -05:00
|
|
|
PortSystem 1.0
|
|
|
|
|
PortGroup python 1.0
|
2017-08-19 07:34:50 -07:00
|
|
|
|
|
|
|
|
name py-automat
|
2025-05-24 02:05:36 +10:00
|
|
|
version 25.4.16
|
2019-11-21 09:16:02 -05:00
|
|
|
revision 0
|
2019-11-21 08:36:00 -05:00
|
|
|
|
2017-08-19 07:34:50 -07:00
|
|
|
categories-append devel
|
2022-12-07 18:51:53 +11:00
|
|
|
platforms {darwin any}
|
2019-11-21 08:36:00 -05:00
|
|
|
supported_archs noarch
|
|
|
|
|
license MIT
|
2017-08-19 07:34:50 -07:00
|
|
|
maintainers {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
|
2019-11-21 08:36:00 -05:00
|
|
|
|
2017-08-19 07:34:50 -07:00
|
|
|
description A library for concise, idiomatic Python expression of finite-state automata
|
2021-12-01 10:56:36 +00:00
|
|
|
long_description Automat is a library for concise, idiomatic Python expression of finite-state \
|
|
|
|
|
automata (particularly deterministic finite-state transducers).
|
2017-08-19 07:34:50 -07:00
|
|
|
|
2019-11-21 09:16:02 -05:00
|
|
|
homepage https://github.com/glyph/automat
|
2017-08-19 07:34:50 -07:00
|
|
|
|
2025-05-24 02:05:36 +10:00
|
|
|
checksums rmd160 480f4c3d16f36b18d9eb06ed1c11fa1c3b32ad0a \
|
|
|
|
|
sha256 0017591a5477066e90d26b0e696ddc143baafd87b588cfac8100bc6be9634de0 \
|
|
|
|
|
size 129977
|
2017-08-19 07:34:50 -07:00
|
|
|
|
2026-03-24 21:49:10 -04:00
|
|
|
python.versions 27 310 311 312 313 314
|
2025-05-24 02:05:36 +10:00
|
|
|
python.pep517_backend \
|
|
|
|
|
hatch
|
2017-08-19 07:34:50 -07:00
|
|
|
|
|
|
|
|
if {${name} ne ${subport}} {
|
|
|
|
|
depends_build-append \
|
2025-05-24 02:05:36 +10:00
|
|
|
port:py${python.version}-setuptools_scm\
|
|
|
|
|
port:py${python.version}-wheel
|
|
|
|
|
if {${python.version} == 27} {
|
|
|
|
|
depends_build-append \
|
2019-11-21 08:36:00 -05:00
|
|
|
port:py${python.version}-m2r
|
2017-08-19 07:34:50 -07:00
|
|
|
|
2025-05-24 02:05:36 +10:00
|
|
|
python.rootname \
|
|
|
|
|
Automat
|
|
|
|
|
version 20.2.0
|
|
|
|
|
checksums rmd160 389126c3183fdd8ad34333d86490e2ba448ced94 \
|
|
|
|
|
sha256 7979803c74610e11ef0c0d68a2942b152df52da55336e0c9d58daf1831cbdf33 \
|
|
|
|
|
size 61679
|
|
|
|
|
} else {
|
|
|
|
|
depends_build-append \
|
|
|
|
|
port:py${python.version}-hatch-vcs
|
|
|
|
|
}
|
|
|
|
|
|
2017-08-19 07:34:50 -07:00
|
|
|
# uses from "pkg_resources import load_entry_point"
|
2019-11-21 09:16:02 -05:00
|
|
|
depends_lib-append \
|
2019-11-21 08:36:00 -05:00
|
|
|
port:py${python.version}-setuptools
|
2017-08-19 07:34:50 -07:00
|
|
|
|
|
|
|
|
depends_run-append \
|
2019-11-21 08:36:00 -05:00
|
|
|
port:py${python.version}-attrs \
|
|
|
|
|
port:py${python.version}-six
|
2017-08-19 07:34:50 -07:00
|
|
|
|
|
|
|
|
# see https://pypi.python.org/pypi/Automat/
|
|
|
|
|
# see https://trac.macports.org/ticket/54627
|
2018-08-18 08:38:36 -07:00
|
|
|
# see https://trac.macports.org/ticket/56955
|
|
|
|
|
#depends_run-append \
|
|
|
|
|
#port:py${python.version}-twisted \
|
|
|
|
|
#port:py${python.version}-graphviz
|
|
|
|
|
if {
|
|
|
|
|
[catch {set installed [lindex [registry_active py${python.version}-twisted] 0]}] ||
|
|
|
|
|
[catch {set installed [lindex [registry_active py${python.version}-graphviz] 0]}]
|
|
|
|
|
} {
|
2017-08-19 07:34:50 -07:00
|
|
|
notes "
|
2018-08-18 08:38:36 -07:00
|
|
|
${subport} requires py${python.version}-twisted and py${python.version}-graphviz to enable the visualize feature.
|
|
|
|
|
However, py${python.version}-twisted depends on ${subport} to run correctly.
|
|
|
|
|
Please install py${python.version}-twisted and py${python.version}-graphviz manually for full functionality.
|
2017-08-19 07:34:50 -07:00
|
|
|
"
|
|
|
|
|
}
|
|
|
|
|
|
2019-11-21 08:36:00 -05:00
|
|
|
test.run yes
|
2025-12-29 01:26:22 -05:00
|
|
|
if {${python.version} != 27} {
|
|
|
|
|
depends_test-append \
|
|
|
|
|
port:py${python.version}-graphviz \
|
|
|
|
|
port:py${python.version}-pytest-benchmark \
|
|
|
|
|
port:py${python.version}-twisted
|
|
|
|
|
test.env-append \
|
|
|
|
|
PYTHONPATH=${worksrcpath}/src
|
|
|
|
|
}
|
2017-08-19 07:34:50 -07:00
|
|
|
}
|