start of the libportage, first ebuild created

This commit is contained in:
neo
2026-08-01 17:54:33 +02:00
parent 4f14caba8d
commit 9a6b2d4761
5 changed files with 138 additions and 2 deletions
+52
View File
@@ -0,0 +1,52 @@
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
}