1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-19 03:52:17 +00:00
freebsd-ports/Mk/Scripts
Tobias Kortkamp 2bad8d171a
Uses/cargo: Rework git source support based on patch-in-config sections
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
2021-10-25 10:49:06 +02:00
..
actual-package-depends.sh framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
cargo-crates-git-common.awk Uses/cargo: Rework git source support based on patch-in-config sections 2021-10-25 10:49:06 +02:00
cargo-crates-git-configure.awk Uses/cargo: Rework git source support based on patch-in-config sections 2021-10-25 10:49:06 +02:00
cargo-crates-git-fetch.awk Uses/cargo: Rework git source support based on patch-in-config sections 2021-10-25 10:49:06 +02:00
cargo-crates.awk Uses/cargo: Rework git source support based on patch-in-config sections 2021-10-25 10:49:06 +02:00
check_leftovers.sh framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
check-desktop-entries.sh framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
check-stagedir.sh framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
check-vulnerable.sh framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
checksum.sh framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
create-manifest.sh Mk/*: Update the link about adopting ports 2021-06-20 19:29:13 -04:00
depends-list.sh framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
desktop-categories.sh framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
dialog4ports.sh framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
do-depends.sh framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
do-fetch.sh framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
do-patch.sh framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
do-users-groups.sh framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
find-lib.sh framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
functions.sh framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
generate-symbols.sh framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
install-desktop-entries.sh framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
makesum.sh framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
plist_sub_sed_sort.sh framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
ports_env.sh framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
qa.sh Mk/Scripts/qa.sh: Add QA for libglvnd 2021-08-02 09:20:45 -07:00
rust-compat11-canary.sh cleanup: drop support for EOL FreeBSD 11.X 2021-09-30 23:23:30 +02:00
security-check.awk
sed_checked.sh Cleanup executable bits, prompted by 9e1d7c39a1. 2021-04-08 11:36:35 +02:00
smart_makepatch.sh Mk/Scripts/smart_makepatch.sh: Force diff to produce the patch file instead of "Binary files ... differ" message 2021-07-15 00:15:03 +08:00
split-url.awk Scripts/split-url.awk: Pass result array as parameter 2021-09-08 21:05:19 +02:00