EAPI=8 DESCRIPTION="Rust port of the portage package manager system" HOMEPAGE="https://tcraft.me/?topic=ruport" SRC_URI="https://git.tcraft.me/neo/ruport.git" IUSE="drop-in" RUPORT_DROP-IN_BINS=( target/release/ebuild target/release/egencache target/release/emerge target/release/emerge-webrsync target/release/emirrordist target/release/glsa-check target/release/gpkg-sign target/release/portageq target/release/quickpkg ) RUPORT_DROP-IN_SBINS=( target/release/archive-conf target/release/dispatch-conf target/release/emaint target/release/env-update target/release/etc-update target/release/fixpackages target/release/regendworld ) src_compile() { local cargo_flags="" if use drop-in ; then cargo_flags="--features=drop-in" fi cargo build --release ${cargo_flags} } src_install() { dobin target/release/ruport if use drop-in ; then for pkg in RUPORT_DROP-IN_BINS ; do dobin $pkg done for pkg in RUPORT_DROP-IN_SBINS ; do dosbin $pkg done fi }