diff options
| author | Matt Jolly <kangie@gentoo.org> | 2024-11-03 10:15:32 +1000 |
|---|---|---|
| committer | Matt Jolly <kangie@gentoo.org> | 2024-11-09 15:31:28 +1000 |
| commit | 542e055db9a8c762714d3870816f8a5c6e52f853 (patch) | |
| tree | 4309dab2c8eb0cfd3c622957e9ff9d3df6b2dd25 /dev-java/java-diff-utils/java-diff-utils-1.3.0.ebuild | |
| parent | 7d2c78b92135f294d54f12923cca03f0f2e859e8 (diff) | |
| download | gentoo-542e055db9a8c762714d3870816f8a5c6e52f853.tar.gz gentoo-542e055db9a8c762714d3870816f8a5c6e52f853.tar.bz2 gentoo-542e055db9a8c762714d3870816f8a5c6e52f853.zip | |
rust.eclass: Introduce new eclass for slotted Rust
The rust eclass acts similarly to the llvm eclass.
It works with optional `RUST_{MAX,MIN}_SLOT` variables to
enable ebuilds to trivially dependencies on appropriate
Rust SLOTs.
A `RUST_NEEDS_LLVM` variable can be set to have the eclass read
`LLVM_COMPAT` and generate an llvm-r1-USE-gated dependency string.
`RUST_USEDEP`, if set will be included in the dependency string
and checks against installed packages.
In either case these are stored in `RUST_DEPEND` for consumpion
in the ebuild, and added to BDEPEND unless unless `RUST_OPTIONAL`
is set. `RUST_DEPEND` will only ever include in-tree slots; there
is no need to set `RUST_MIN_VER` if all in-tree versions are suitable.
If `RUST_MIN_VER` is set to a value older than the oldest in-tree slot
it is treated as if it is set to the lowest available.
The default `rust_pkg_setup` will prefix the selected slot to
`PATH` and export `RUSTC` and `CARGO` variables pointing to that
slot for ease-of-use.
This should prevent issues like:
Bug: https://bugs.gentoo.org/907492
Bug: https://bugs.gentoo.org/942444
Signed-off-by: Matt Jolly <kangie@gentoo.org>
Diffstat (limited to 'dev-java/java-diff-utils/java-diff-utils-1.3.0.ebuild')
0 files changed, 0 insertions, 0 deletions
