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

Support workspaces #4

Open gyakovlev opened 3 years ago

gyakovlev commented 3 years ago

cargo-ebuild chokes on workspace projects ( https://github.com/alacritty/alacritty is an example ), make sure it can generate a ebuild for a project that uses workspace.

telans commented 2 years ago

What's the solution for working around this? Parsing the deps manually? Cheers

gyakovlev commented 2 years ago

What's the solution for working around this? Parsing the deps manually? Cheers

I think it mostly works nowadays. in case if it does not - you can use the following trick:

  1. unpack your app tarball
  2. run rm -rf /tmp/crates && CARGO_HOME=/tmp/crates cargo fetch
  3. run ls -1 /tmp/crates/registry/src/* , it will give you output usable in CRATES variable.
  4. optionally, copy /tmp/crates/registry/cache/*/*.crate to your PORTAGE_DISTDIR, to avoid double downloads.
gyakovlev commented 2 years ago

@telans ^ not sure if you got tagged in reply, tagging separately.