mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-05 14:07:27 -08:00
90 lines
1.6 KiB
Bash
90 lines
1.6 KiB
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
DISTUTILS_USE_PEP517=setuptools
|
|
PYTHON_COMPAT=( python3_{11..13} )
|
|
RUST_MIN_VER="1.75.0"
|
|
|
|
# for virtme-ng-init
|
|
CRATES="
|
|
base64@0.22.1
|
|
bitflags@2.8.0
|
|
cfg-if@1.0.0
|
|
cfg_aliases@0.2.1
|
|
libc@0.2.169
|
|
log@0.4.21
|
|
nix@0.29.0
|
|
uzers@0.12.1
|
|
"
|
|
|
|
inherit cargo distutils-r1 shell-completion
|
|
|
|
DESCRIPTION="Quickly build and run kernels inside a virtualized snapshot of your live system"
|
|
HOMEPAGE="https://github.com/arighi/virtme-ng"
|
|
|
|
SRC_URI="
|
|
https://github.com/arighi/virtme-ng/archive/refs/tags/v${PV}.tar.gz
|
|
-> ${P}.gh.tar.gz
|
|
${CARGO_CRATE_URIS}
|
|
"
|
|
|
|
LICENSE="GPL-2"
|
|
# Dependent crate licenses for virtme-ng-init
|
|
LICENSE+=" MIT"
|
|
SLOT="0"
|
|
|
|
KEYWORDS="amd64"
|
|
|
|
DEPEND="
|
|
dev-python/argcomplete[${PYTHON_USEDEP}]
|
|
dev-python/requests[${PYTHON_USEDEP}]
|
|
"
|
|
RDEPEND="
|
|
${DEPEND}
|
|
app-emulation/qemu
|
|
app-emulation/virtiofsd
|
|
net-misc/openssh
|
|
net-misc/socat
|
|
sys-apps/busybox[static]
|
|
"
|
|
BDEPEND="dev-python/argparse-manpage[${PYTHON_USEDEP}]"
|
|
|
|
src_prepare() {
|
|
default
|
|
|
|
sed -i /data_files=data_files/d setup.py || die
|
|
}
|
|
|
|
src_configure() {
|
|
distutils-r1_src_configure
|
|
|
|
cd virtme_ng_init || die
|
|
cargo_src_configure
|
|
}
|
|
|
|
src_compile() {
|
|
distutils-r1_src_compile
|
|
|
|
cd virtme_ng_init || die
|
|
cargo_src_compile
|
|
}
|
|
|
|
src_test() {
|
|
distutils-r1_src_test
|
|
|
|
cd virtme_ng_init || die
|
|
cargo_src_test
|
|
}
|
|
|
|
src_install() {
|
|
distutils-r1_src_install
|
|
newbashcomp virtme-ng-prompt virtme-ng
|
|
newbashcomp vng-prompt vng
|
|
dozshcomp virtme-ng-prompt vng-prompt
|
|
|
|
cd virtme_ng_init || die
|
|
cargo_src_install
|
|
}
|