• [gentoo-dev] [PATCH] Add 'host' variable to GIT_CRATES to support other

    From MYT@21:1/5 to All on Wed Nov 27 16:50:01 2024
    ---
    eclass/cargo.eclass | 43 +++++++++++++++++++++++++++++++++++--------
    1 file changed, 35 insertions(+), 8 deletions(-)

    diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass
    index 95ff317e1f21..aa59d38d8600 100644
    --- a/eclass/cargo.eclass
    +++ b/eclass/cargo.eclass
    @@ -93,6 +93,10 @@ ECARGO_VENDOR="${ECARGO_HOME}/gentoo"
    # - optionally: the path to look for Cargo.toml in.
    # - This will also replace the string "%commit%" with the commit's checksum.
    # - Defaults to: "${crate}-%commit%"
    +# - optionally: the git host so it would generate tarball download link.
    +# - E.g. gitlab
    +# - It fallbacks to detecting from URL if it's gitlab.com or github.com
    +# if no host provided.
    #
    # Example of a simple definition with no path to Cargo.toml:
    # @CODE
    @@ -108,6 +112,13 @@ ECARGO_VENDOR="${ECARGO_HOME}/gentoo"
    # [rustpython-parser]="https://github.com/RustPython/RustPython;4f38cb68e4a97aeea9eb19673803a0bd5f655383;RustPython-%commit%/compiler/parser"
    # )
    # @CODE
    +#
    +# Examp