mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-19 03:52:17 +00:00
2bad8d171a
Git sources from `Cargo.lock` are added to `CARGO_CRATES` through the normal mechanism of `make cargo-crates` by the porter. They are used to populate `MASTER_SITES`, `DISTFILES` with static git-archive(1) tarballs a la `USE_GITHUB`, `USE_GITLAB`. In the configure phase we generate `[patch]` sections in the config file which will cause `cargo update` to auto-update `Cargo.lock` to point to the appropriate extraction directories. Normally `cargo update` would connect to the network to update all Git sources but since rust-1.55.0 our cargo has been patched to skip this when `CARGO_FREEBSD_PORTS_SKIP_GIT_UPDATE` is set in the environment. This replaces the old `CARGO_USE_GITHUB`, `CARGO_USE_GITLAB` hacks where this was done by editing all `Cargo.toml` with sed(1) calls. Additionally, we try to automatically infer the individiual crate sub-directories inside the Git sources based on `package.name` in `Cargo.toml` to remove the need for `CARGO_GIT_SUBDIR`. USES=cargo also now sets `WRKSRC_crate_$name` for each crate to point to the crate extraction directories. PR: 256581 Reviewed by: jbeich |
||
---|---|---|
.. | ||
actual-package-depends.sh | ||
cargo-crates-git-common.awk | ||
cargo-crates-git-configure.awk | ||
cargo-crates-git-fetch.awk | ||
cargo-crates.awk | ||
check_leftovers.sh | ||
check-desktop-entries.sh | ||
check-stagedir.sh | ||
check-vulnerable.sh | ||
checksum.sh | ||
create-manifest.sh | ||
depends-list.sh | ||
desktop-categories.sh | ||
dialog4ports.sh | ||
do-depends.sh | ||
do-fetch.sh | ||
do-patch.sh | ||
do-users-groups.sh | ||
find-lib.sh | ||
functions.sh | ||
generate-symbols.sh | ||
install-desktop-entries.sh | ||
makesum.sh | ||
plist_sub_sed_sort.sh | ||
ports_env.sh | ||
qa.sh | ||
rust-compat11-canary.sh | ||
security-check.awk | ||
sed_checked.sh | ||
smart_makepatch.sh | ||
split-url.awk |