Skip to content

Commit

Permalink
glances: fix for systems without rust
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 committed Aug 27, 2024
1 parent f5263f4 commit 5748423
Show file tree
Hide file tree
Showing 2 changed files with 478 additions and 4 deletions.
15 changes: 11 additions & 4 deletions sysutils/glances/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,24 @@ python.default_version \
312
depends_lib-append port:py${python.version}-packaging \
port:py${python.version}-psutil \
port:py${python.version}-orjson \
port:py${python.version}-future \
port:py${python.version}-setuptools

if {${os.platform} eq "darwin" && ${os.major} > 11} {
if {${os.platform} ne "darwin" || ${os.major} > 11} {
depends_lib-append \
port:py${python.version}-orjson \
port:py${python.version}-pydantic
}
} else {
# Until the issue is fixed by upstream.
# https://github.com/nicolargo/glances/issues/2930
patchfiles-append \
0001-Unrustify-glances.patch

depends_run-append port:py${python.version}-defusedxml \
depends_run-append \
port:py${python.version}-ujson
}

depends_run-append port:py${python.version}-defusedxml

post-patch {
reinplace "s|/usr/local|${prefix}|" glances/config.py
Expand Down
Loading

0 comments on commit 5748423

Please sign in to comment.