1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/Mk/Uses
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
..
7z.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
ada.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
alias.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
angr.mk Mk/Uses: Add angr.mk 2021-07-13 16:39:43 +03:00
ansible.mk ansible.mk: Fix a typo in variable name 2021-07-07 16:37:29 +02:00
apache.mk Mk/Uses: replace bare ${ECHO} with ${ECHO_CMD} or ${ECHO_MSG} 2021-06-11 07:37:22 +00:00
autoreconf.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
azurepy.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
bdb.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
bison.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
blaslapack.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
cabal.mk Uses/cabal.mk: Omit "_0" part of the package version in make-use-cabal-revs 2021-06-12 13:14:09 +03:00
cargo.mk Uses/cargo: Rework git source support based on patch-in-config sections 2021-10-25 10:49:06 +02:00
charsetfix.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
cmake.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
compiler.mk Mk/Uses/compiler.mk: Avoid USE_GCC=any 2021-10-15 18:56:26 +00:00
corosync.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
cpe.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
cran.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
desktop-file-utils.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
desthack.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
display.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
dos2unix.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
drupal.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
eigen.mk Uses/eigen: drop eigen2 2021-09-07 23:19:39 +02:00
elixir.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
emacs.mk editors/emacs-devel: Update to 2021-10-01 commit, 30bbb57* 2021-10-01 19:52:49 -03:00
erlang.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
fakeroot.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
fam.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
firebird.mk Mk/Uses/firebird.mk: Prepare support for firebird 3.0 and 4.0 2021-06-27 18:29:53 -05:00
fonts.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
fortran.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
fpc.mk lang/fpc: update to 3.2.2 2021-07-31 20:56:08 -05:00
fuse.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
gem.mk Mk/Uses: replace bare ${ECHO} with ${ECHO_CMD} or ${ECHO_MSG} 2021-06-11 07:37:22 +00:00
gettext-runtime.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
gettext-tools.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
gettext.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
ghostscript.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
gl.mk Mk/bsd.default-versions: Remove libglvnd optionality 2021-07-15 12:48:27 -07:00
gmake.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
gnome.mk INSTALLS_ICONS: retire the macro and rework the related dependencies 2021-10-10 21:44:42 +02:00
gnustep.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
go.mk Mk/Uses/go.mk: Resign maintainership 2021-09-21 10:57:44 -05:00
gperf.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
grantlee.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
groff.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
gssapi.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
horde.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
iconv.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
imake.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
jpeg.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
kde.mk KDE: Update KDE Plasma Desktop to 5.23.1 2021-10-19 21:09:08 +02:00
kmod.mk Uses/kmod: Only IGNORE when src is not available in build target 2021-05-27 11:33:13 +08:00
kodi.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
lazarus.mk editors/lazarus*: Include new lazarus ports into mk files 2021-08-26 18:21:46 -05:00
lha.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
libarchive.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
libedit.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
libtool.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
linux.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
localbase.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
lua.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
lxqt.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
makeinfo.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
makeself.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
mate.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
meson.mk Mk/Uses/meson.mk: Require meson with b_colorout fix 2021-07-03 17:01:10 +02:00
metaport.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
mlt.mk multimedia/{py-,}mlt{-qt5,}: rename to multimedia/{py-,}mlt6{-qt5,}: 2021-07-30 20:14:36 +02:00
mono.mk Mk/Uses: replace bare ${ECHO} with ${ECHO_CMD} or ${ECHO_MSG} 2021-06-11 07:37:22 +00:00
motif.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
mpi.mk Mk/Uses/mpi.mk: fix CMAKE_ARGS when USES=cmake has arguments 2021-04-25 15:23:18 +02:00
mysql.mk Remove Percona Server for MySQL 5.5, it is EOL upstream 2021-04-11 23:42:42 +02:00
ncurses.mk USES=ncurses: expose variable with the name of the lib to link against 2021-09-23 18:22:53 +02:00
ninja.mk Mk/Uses/ninja.mk: Add support for devel/samurai (D29353) 2021-04-20 08:57:34 +02:00
objc.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
openal.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
pathfix.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
pear.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
perl5.mk Mk/Uses/perl5.mk: Update P5_POD_PARSER 2021-07-01 04:43:58 +08:00
pgsql.mk Mk/Uses: remove 9.5 from the VALID_PGSQL_VER list. 2021-06-14 10:12:27 -04:00
php.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
pkgconfig.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
pyqt.mk */*: PyQt Update qscintilla2 to 2.13.0 and py-qt5-sip to 12.9.0 2021-07-27 20:55:03 +02:00
python.mk devel/mercurial: update to 5.9.1. 2021-09-15 22:16:07 -04:00
qca.mk cleanup: drop support for EOL FreeBSD 11.X 2021-09-30 23:23:30 +02:00
qmail.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
qmake.mk Uses/qmake.mk: fix build WITH_DEBUG 2021-05-05 01:10:26 +02:00
qt-dist.mk Mk/Uses/qt-dist.mk: make it possible to use GCC on powerpc 2021-07-11 22:31:29 +00:00
qt.mk x11-toolkits/qt5-declarative: split out 'test' parts into new port 2021-09-24 17:09:09 +02:00
readline.mk Mk/Uses/readline.mk: Remove unnecessary 'port' argument 2021-05-15 09:14:05 +02:00
samba.mk Mk: unregister expired Samba 4.11 2021-04-24 17:04:15 +02:00
scons.mk Mk/Uses/scons.mk: Clean up after the removal of all scons:python2 usage 2021-05-27 03:00:22 +08:00
sdl.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
shared-mime-info.mk shared-mime-info: readd the build dependency on the uses 2021-10-20 13:40:41 +02:00
shebangfix.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
sqlite.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
ssl.mk Mk/: Update the URLs in the comments to the latest location 2021-07-16 16:16:45 +08:00
tar.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
tcl.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
terminfo.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
tk.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
trigger.mk framework: new USES trigger 2021-10-10 19:43:02 +02:00
uidfix.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
uniquefiles.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
varnish.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
waf.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
webplugin.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
xfce.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
xorg-cat.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
xorg.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00
zip.mk framework: Remove $FreeBSD$ 2021-04-06 16:27:10 +02:00