gentoo / cargo-ebuild

[MIRROR] cargo extension that can generate ebuilds using the in-tree eclasses
https://gitweb.gentoo.org/proj/cargo-ebuild.git
Apache License 2.0
33 stars 10 forks source link

Add support for non-crate dependencies #5

Open gyakovlev opened 3 years ago

gyakovlev commented 3 years ago

Sometimes a project uses a git dependency. cargo-ebuild should handle simple cases of git deps.

leonardohn commented 3 years ago

The main changes required for this to work should be on cargo.eclass. There should be a variable similar to CRATES to allow the maintainer to add vendored dependency paths relative to the workdir. It could be done by generating (or modifying) the .cargo/config file so cargo can handle those dependencies.

thesamesam commented 1 year ago

I suppose this covers the case I mentioned in https://github.com/projg2/pycargoebuild/issues/14#issue-1557734676 wrt pkgcraft-c's '../pkgcraft' dep too?

gyakovlev commented 1 year ago

Not really, that’s different. It’s already working fine if you invoke cargo(eclass included) properly.