HomeFreeBSD

Uses/cargo: Improve URL subsitution for ports using CARGO_USE_GIT[HUB|LAB]

Description

Uses/cargo: Improve URL subsitution for ports using CARGO_USE_GIT[HUB|LAB]

While maintaing a rust application, I found a cargo.toml that specifies
the git URL with { git="https://..." }, cargo.mk expects a form like { git = "https://" }.
This patch improve the regex making the spaces around the '=' optional
Test: built all ports using the CARGO_USE_GIT feature

Approved by: tobik
Differential Revision: https://reviews.freebsd.org/D29805

(cherry picked from commit 58744a09099a7accf9f5acd004e04701c6d8a130)

Details

Provenance
pizzamigAuthored on Apr 19 2021, 9:02 AM
tobikCommitted on Apr 28 2021, 5:31 AM
Differential Revision
D29805: Improve URL subsitution for custom crates whit CARGO_USE_GIT[HUB|LAB]
Parents
R11:057872f5b803: Speed up USES=cargo ports ops
Branches
Unknown
Tags
Unknown