Skip to content

Commit

Permalink
rust PG: sort crate names in alphabetical order
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusCalhoun-Lopez committed May 12, 2024
1 parent cd90aeb commit 4dfccd5
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions _resources/port1.0/group/rust-1.0.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -282,14 +282,6 @@ proc rust::old_macos_compatibility {cname cversion} {
global cargo.home subport

switch ${cname} {
"kqueue" {
if { [vercmp ${cversion} < 1.0.5] && "i386" in [option muniversal.architectures] } {
# see https://gitlab.com/worr/rust-kqueue/-/merge_requests/10
reinplace {s|all(target_os = "freebsd", target_arch = "x86")|all(any(target_os = "freebsd", target_os = "macos"), any(target_arch = "x86", target_arch = "powerpc"))|g} \
${cargo.home}/macports/${cname}-${cversion}/src/time.rs
cargo.offline_cmd-replace --frozen --offline
}
}
"curl-sys" {
if { [vercmp ${cversion} < 0.4.56] } {
# on Mac OS X 10.6, clang exists, but `clang --print-search-dirs` returns an empty library directory
Expand All @@ -306,6 +298,14 @@ proc rust::old_macos_compatibility {cname cversion} {
${cargo.home}/macports/${cname}-${cversion}/build.rs
}
}
"kqueue" {
if { [vercmp ${cversion} < 1.0.5] && "i386" in [option muniversal.architectures] } {
# see https://gitlab.com/worr/rust-kqueue/-/merge_requests/10
reinplace {s|all(target_os = "freebsd", target_arch = "x86")|all(any(target_os = "freebsd", target_os = "macos"), any(target_arch = "x86", target_arch = "powerpc"))|g} \
${cargo.home}/macports/${cname}-${cversion}/src/time.rs
cargo.offline_cmd-replace --frozen --offline
}
}
"rustix" {
if { [vercmp ${cversion} < 0.38.31] && [vercmp ${cversion} >= 0.0] && "i386" in [option muniversal.architectures] } {
# see https://github.com/bytecodealliance/rustix/issues/991
Expand Down Expand Up @@ -359,10 +359,6 @@ proc rust::old_macos_compatibility {cname cversion} {
}

switch ${cname} {
"notify" {
reinplace {s|default = \["macos_fsevent"\]|default = \["macos_kqueue"\]|g} \
${cargo.home}/macports/${cname}-${cversion}/Cargo.toml
}
"cargo-util" {
reinplace {s|#\[cfg(not(target_os = "macos"))\]|#\[cfg(not(target_os = "macos_temp"))\]|g} \
${cargo.home}/macports/${cname}-${cversion}/src/paths.rs
Expand All @@ -371,6 +367,10 @@ proc rust::old_macos_compatibility {cname cversion} {
reinplace {s|#\[cfg(not(target_os = "macos_temp"))\]|#\[cfg(target_os = "macos")\]|g} \
${cargo.home}/macports/${cname}-${cversion}/src/paths.rs
}
"notify" {
reinplace {s|default = \["macos_fsevent"\]|default = \["macos_kqueue"\]|g} \
${cargo.home}/macports/${cname}-${cversion}/Cargo.toml
}
}
}

Expand Down

0 comments on commit 4dfccd5

Please sign in to comment.