add qe_mac_apid ebuild
This commit is contained in:
parent
f0872fea96
commit
999be6f4e1
51
app-emulation/qe_mac_apid/qe_mac_apid-9999.ebuild
Executable file
51
app-emulation/qe_mac_apid/qe_mac_apid-9999.ebuild
Executable file
@ -0,0 +1,51 @@
|
||||
# Copyright 2020-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
CRATES="
|
||||
"
|
||||
|
||||
inherit cargo
|
||||
|
||||
DESCRIPTION="Get Random Mac address for macOS kvm's"
|
||||
HOMEPAGE="https://github.com/quickemu-project/qe_mac_apid"
|
||||
|
||||
|
||||
if [[ ${PV} == "9999" ]] ; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/quickemu-project/qe_mac_apid.git"
|
||||
else
|
||||
SRC_URI="
|
||||
https://github.com/flxzt/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
${CARGO_CRATE_URIS}
|
||||
"
|
||||
KEYWORDS="~amd64 ~ppc64"
|
||||
fi
|
||||
|
||||
BDEPEND="
|
||||
"
|
||||
|
||||
# LICENSE=""
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE=""
|
||||
|
||||
|
||||
# Rust packages ignore CFLAGS and LDFLAGS so let's silence the QA warnings
|
||||
# QA_FLAGS_IGNORED="usr/bin/btm"
|
||||
|
||||
|
||||
src_unpack() {
|
||||
if [[ "${PV}" == *9999* ]]; then
|
||||
git-r3_src_unpack
|
||||
cargo_live_src_unpack
|
||||
else
|
||||
cargo_src_unpack
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
cargo_gen_config
|
||||
cargo_src_configure
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user