libsqlite3-sys only provides "old" bindings for sqlite3 library
(better is 3.7.16). when a crate requires a binding for a recent
version of sqlite3, it is required to use the bundled version to have
proper binding.
add an option MODCARGO_CRATES_SQLITE3_BUNDLED to explictly request it
(and not use the ports version of sqlite3 but build the bundled
version).
we are managing installed files with different mecanism.
it is the v2 for tracking crates installation, and we already remove v1 (.crates.toml).
take care of cleaning ports which are already seen it
problem spotted by landry@
ok landry@
the current version of cargo will look at the profile here too (it wasn't the
case when first commited), and it permits to avoid automatic modification of the
source file.
the compilation options used are based on release profile
(https://doc.rust-lang.org/cargo/reference/profiles.html#release) with
only 'opt-level' difference ('2' instead of '3')
devel/cargo modules will take care of some aspects of crate dependencies on
system/ports libraries
adapt some ports depending on devel/cargo to properly link to ports libraries,
and to not patch anymore what it is now done by devel/cargo (openssl-sys crate
for example)
with help and ok @sthem
the syntax is compatible with older edition, and more crates are using the
edition 2018 which require it.
avoid using MODCARGO_INSTALL_ARGS just to pass "--path ."
ok landry@ (some time ago, the diff was sleeping in my tree)
- uses cargo --offline when building to enforce "no network" at build time.
- properly implement MODCARGO_FEATURES by passing it to all stages (build, test, install)
- add MODCARGO_NO_DEFAULT_FEATURES to permit overriding completely cargo features defined in Cargo.toml
ok sthen@
The new syntax to have version with '-' character:
-MODCARGO_CRATES += aho-corasick-0.6.8 # Unlicense/MIT
+MODCARGO_CRATES += aho-corasick 0.6.8 # Unlicense/MIT
update all customers of devel/cargo to use the new syntax
ok landry@
invocation.
While here, correct (a bit) the license detection (bug reported by
kpcyrd <kpcyrd AT rxv.cc> some time ago) and tweak
modcargo-gen-crates-licenses a bit.
Diff from semarie, ok landry.