summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* cargo.eclass: ensure man pages are installedDoug Goldstein2017-02-121-0/+2
| | | | | | If man pages are shipped with a crate, let's install them. Signed-off-by: Doug Goldstein <cardoe@gentoo.org>
* eclass/cargo: ensure people have a good cargo dependDoug Goldstein2016-11-301-0/+2
| | | | | | We need at least Cargo 0.13.0 to use the new bits in this eclass. Signed-off-by: Doug Goldstein <cardoe@gentoo.org>
* eclass/cargo: support cargo dependency vendoringDoug Goldstein2016-11-301-19/+38
| | | | | | | | Add support for newer dependency vendoring which allows us to download the dependencies with the package manager and just have cargo use that to compile the package. Signed-off-by: Doug Goldstein <cardoe@gentoo.org>
* eclass/cargo: extend to support building packagesDoug Goldstein2016-11-301-2/+26
| | | | | | | | | Originally this eclass only had the bits to build cargo and not other packages built with cargo. Cargo is a special case and needs to override some parts. This adds the generic case for normal cargo packages, allowing for debug and release builds of packages as well. Signed-off-by: Doug Goldstein <cardoe@gentoo.org>
* eclass/cargo: improve variable namesDoug Goldstein2016-07-101-4/+4
| | | | | Improve the names of some variables to match what upstream docs call things.
* eclass: initial cargo support eclassDoug Goldstein2016-06-291-0/+85
Base eclass for cargo that handles setting up the cargo registry and provides a way to fetch crates. Signed-off-by: Doug Goldstein <cardoe@gentoo.org>