summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* *.eclass: @ECLASS-VARIABLE renamed to @ECLASS_VARIABLEUlrich Müller2022-03-241-5/+5
| | | | | Bug: https://bugs.gentoo.org/835396 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* cargo.eclass: really fix typoGeorgy Yakovlev2022-01-121-1/+1
| | | | Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* cargo.eclass: fix typo in email addressGeorgy Yakovlev2022-01-121-2/+2
| | | | | Thanks-to: Alexey Zapparov alexey@zapparov.com Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* cargo.eclass: make CRATES pre-inheritGeorgy Yakovlev2021-07-021-3/+21
| | | | | | | also make first arg to cargo_crate_uris optional die if CRATES variable is not defined in EAPI=8 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* cargo.eclass: make CRATES an eclass variableGeorgy Yakovlev2021-07-021-0/+17
| | | | | | | it's needed to be present in all ebuilds for crate auditing tools to work properly. Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* cargo.eclass: support EAPI=8, misc changesGeorgy Yakovlev2021-07-021-13/+26
| | | | | | | | remove cargo-snapshot* unpacker, it was needed for separate dev-util/cargo we used to have. Bug: https://bugs.gentoo.org/715890 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* eclass/cargo.eclass: disable incremental buildsGeorgy Yakovlev2021-05-101-0/+1
| | | | | | | This should not affect us, but can trigger if running tests Upstream issue: https://github.com/rust-lang/rust/issues/84970 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* cargo.eclass: consistent comment whitespaceSam James2021-03-311-4/+1
| | | | | | Signed-off-by: Sam James <sam@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/20208 Signed-off-by: Sam James <sam@gentoo.org>
* eclass/cargo.eclass: minor fixesGeorgy Yakovlev2021-02-111-3/+4
| | | | | | | | | fix typo. fix supported eapis docstring. fix variable type. add myself to authors. Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* eclass: [QA] Revert multiple meaningless doc changesMichał Górny2020-12-281-17/+0
| | | | | | | | | | | Revert multiple meaningless eclass documentation changes, notably adding a lot of placeholders and documenting implementation details. These changes were aimed at silencing (valid) documentation warnings without actually providing valuable documentation to the end users. While some of these changes were beneficial, it would take a lot of effort to review them all and the author is unwilling to fix his mistakes. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/cargo: fixup documentationAaron Bauman2020-12-161-0/+17
| | | | Signed-off-by: Aaron Bauman <bman@gentoo.org>
* eclass/cargo.eclass: tc-export PKG_CONFIGGeorgy Yakovlev2020-11-271-1/+1
| | | | | | | this way cargo will call properly prefixed pkg-config binary Closes: https://bugs.gentoo.org/756913 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* eclass/cargo.eclass: clarify variable docsGeorgy Yakovlev2020-11-101-0/+1
| | | | Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* eclass/cargo.eclass: add CARGO_OPTIONAL conditionGeorgy Yakovlev2020-11-101-4/+25
| | | | Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* eclass/cargo.eclass: move cargo_gen_config definition to the topGeorgy Yakovlev2020-09-281-38/+38
| | | | Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* eclass/cargo.eclass: require cargo_gen_config in cargo_src* functionsGeorgy Yakovlev2020-09-281-0/+10
| | | | | | | | | | | | | | cargo_gen_config sets required config values and env vars, which cargo_src_{compile,test,install} rely on. it should be called as last step of src_unpack normally, so check it did. Crate sources may have been vendored or cargo is wrapped by other build system and pre-fetched, so cargo_*unpack may not have been used. In that case our config does not work for external build system, our cargo_src_ functions should not be used. Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* eclass/cargo.eclass: support cached downloads for live ebuildsGeorgy Yakovlev2020-09-281-7/+106
| | | | | | | Also honor ECARGO_OFFLINE/EVCS_OFFLINE Good portion of the code/logic inspired by git-r3.eclass. Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* eclass/cargo.eclass: add cargo_src_configure (revised)Georgy Yakovlev2020-09-221-16/+87
| | | | | | | | simple src_configure implementation inspired by cmake.eclass plus some nice improvements to eclass. Closes: https://bugs.gentoo.org/721936 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* eclass/cargo.eclass: drop EAPI=6 supportGeorgy Yakovlev2020-06-121-1/+0
| | | | | | no consumers left in the tree Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* cargo.eclass: tc-export AR CCGeorgy Yakovlev2020-06-021-1/+3
| | | | | | | Bug: https://bugs.gentoo.org/726428 Closes: https://bugs.gentoo.org/726714 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* Improve the name-version regexLuca Barbato2020-04-041-1/+1
| | | | | | | | | See: https://doc.rust-lang.org/cargo/reference/manifest.html#the-name-field Unbreaks crates using `curl-sys` version `0.4.30+curl-7.69.1` and such. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* */*: Bump copyright on files touched this yearMichał Górny2020-02-111-1/+1
| | | | | | | Update the copyright notice on all files that were touched since January 1st but did not have the notice updated. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* cargo.eclass: make regex both readonly and localGeorgy Yakovlev2020-01-101-1/+1
| | | | Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* cargo.eclass: Use a regex to fix crate name/version extractionCraig Andrews2020-01-101-8/+5
| | | | | | | Closes: https://bugs.gentoo.org/705044 Signed-off-by: Craig Andrews <candrews@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/14287 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* cargo.eclass: Delete /usr/.crates2.json in cargo_src_installValentin Finini2020-01-031-0/+1
| | | | | | Signed-off-by: Valentin Finini <farenjihn@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/14231 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* eclass/cargo.eclass: switch (b)depend to virtual/rustGeorgy Yakovlev2019-12-291-3/+3
| | | | | Bug: https://bugs.gentoo.org/695698 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* cargo.eclass: honor NOCOLOR settingGeorgy Yakovlev2019-12-271-0/+2
| | | | Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* cargo.eclass: make cargo verbosity configurableGeorgy Yakovlev2019-12-271-4/+14
| | | | | Users can set CARGO_TERM_VERBOSE=false in make.conf if less build output is desired. Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* cargo.eclass: move jobs configuration to generated configfileGeorgy Yakovlev2019-12-271-3/+6
| | | | Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* cargo.eclass: force offline operationsGeorgy Yakovlev2019-12-271-0/+3
| | | | | Bug: https://bugs.gentoo.org/697762 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* cargo.eclass: require rust 1.37 or newer unconditionallyGeorgy Yakovlev2019-12-271-6/+2
| | | | Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* eclass/cargo.eclass: specify --path . to installDoug Goldstein2019-12-261-1/+7
| | | | | | | | | | | | | | cargo install has long required --path . for 2018 edition crates but not required it for 2015 edition crates. It is supported however for 2015 edition crates and works for all versions in the tree so it makes sense to make it the default. Added CARGO_INSTALL_PATH as an eclass variable allowing to override the default. Closes: https://bugs.gentoo.org/703590 Signed-off-by: Doug Goldstein <cardoe@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/14097 Tested-by: Georgy Yakovlev <gyakovlev@gentoo.org> Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* cargo.eclass: use verbose cargo invocationsGeorgy Yakovlev2019-12-061-3/+3
| | | | | | | Default output just prints crate name. With -vv we can see all cargo options and rustc args. Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* cargo.eclass: fix cargo_src_install() on prefixGeorgy Yakovlev2019-12-061-2/+2
| | | | | | Closes: https://bugs.gentoo.org/702168 Closes: https://bugs.gentoo.org/702042 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* cargo.eclass: add cargo_live_src_unpack()Georgy Yakovlev2019-08-291-1/+26
| | | | | | | | | | | | | | | | | | | | | | | This function will allow using 'cargo fetch' during src_unpack Since only new cargo supports vendoring, all live packages will have to depend on >=rust-1.37.0 This enables us to ship live rust packages, cargo fetch will download all crates and vendor them for offline phases. here's an example of src_unpack() src_unpack() { if [[ "${PV}" == *9999* ]]; then git-r3_src_unpack cargo_live_src_unpack else cargo_src_unpack fi } Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* eclass/cargo.eclass: remove dev-util/cargo conditionalGeorgy Yakovlev2019-06-181-2/+1
| | | | Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* cargo.eclass: add standard src_testGeorgy Yakovlev2019-01-081-1/+11
| | | | | | But not set IUSE=test by default Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* cargo.eclass: allow passing additional arguments to cargoGeorgy Yakovlev2019-01-081-3/+3
| | | | | | | | | | for example: src_compile() { cargo_src_compile --features pcre2 } Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* cargo.eclass: Really set dependencies.Arfrever Frehtes Taifersar Arahesis2018-10-151-3/+3
| | | | | | | Closes: https://bugs.gentoo.org/668680 Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> Signed-off-by: Dirkjan Ochtman <djc@gentoo.org>
* cargo.eclass: restrict pretag pattern to allow extended versionsDirkjan Ochtman2018-09-291-1/+1
| | | | | | This is needed for openssl-src, which has a version like 110.0.7+1.1.0i. Signed-off-by: Dirkjan Ochtman <djc@gentoo.org>
* cargo.eclass: add @SUPPORTED_EAPISMichał Górny2018-08-151-0/+1
|
* cargo.eclass: reduce verbosity by defaultDirkjan Ochtman2018-08-081-1/+1
|
* cargo.eclass: depend on virtual/cargo instead of dev-util/cargoDirkjan Ochtman2018-08-081-1/+1
|
* cargo.eclass: support EAPI 7Dirkjan Ochtman2018-08-081-3/+5
|
* cargo.eclass: respect parallel jobs setting from MAKEOPTSTim Harder2018-03-031-2/+4
|
* cargo.eclass: localize variables so they don't leak into the saved envTim Harder2017-09-141-1/+1
|
* eclass: improve cargo.eclass to better handle pre-release versions (fixes ↵Dirkjan Ochtman2017-09-091-1/+6
| | | | bug 630428)
* cargo.eclass: fix quoting/arg handlingMike Frysinger2017-05-161-3/+4
|
* eclass/cargo: Don't fail on missing directoryEspen Henriksen2017-03-291-1/+1
| | | | | | | | | Previously the cargo_src_install step fails when using `cargo_src_install || die` and no man-directory is included with the crate. This commit corrects this behavior and ensures it does not die in those cases. Package-Manager: Portage-2.3.3
* Drop $Id$ per council decision in bug #611234.Robin H. Johnson2017-02-281-1/+0
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>