app-emulation/box64: Add QA checks

Signed-off-by: Richard Rogalski <rrogalski@tutanota.com>
This commit is contained in:
Richard-Rogalski
2024-09-02 15:19:34 -05:00
parent 267c2bbeac
commit 880eda7f6d
3 changed files with 42 additions and 0 deletions

View File

@@ -15,6 +15,18 @@ KEYWORDS="~arm64 ~ppc64"
IUSE="aot"
REQUIRED_USE="aot? ( arm64 )"
pkg_setup() {
if [[ $(tc-endian) == big ]]; then
eerror "box86/box64 sadly does not support big endian systems."
die "big endian not supported!"
fi
if [[ ${CHOST} != *gnu* || ${CHOST} != *linux* ]]; then
eerror "box86/64 requires a glibc and a linux system. Musl support is possible, upstream welcomes PRs!"
die "Not a GNU+Linux system"
fi
}
src_configure() {
local -a mycmakeargs=(
-DNOGIT=1

View File

@@ -14,6 +14,18 @@ SLOT="0"
KEYWORDS="~arm64 ~ppc64"
IUSE="static"
pkg_setup() {
if [[ $(tc-endian) == big ]]; then
eerror "box86/box64 sadly does not support big endian systems."
die "big endian not supported!"
fi
if [[ ${CHOST} != *gnu* || ${CHOST} != *linux* ]]; then
eerror "box86/64 requires a glibc and a linux system. Musl support is possible, upstream welcomes PRs!"
die "Not a GNU+Linux system"
fi
}
src_configure() {
local -a mycmakeargs=(
-DNOGIT=1

View File

@@ -14,6 +14,24 @@ SLOT="0"
KEYWORDS=""
IUSE="static"
pkg_setup() {
if [[ $(tc-endian) == big ]]; then
eerror "box86/box64 sadly does not support big endian systems."
die "big endian not supported!"
fi
if [[ ${CHOST} != *linux* ]]; then
eerror "box86/64 requires a linux system."
die "Not a GNU+Linux system"
fi
if [[ ${CHOST} != *gnu* ]]; then #in case musl support is added in master branch
ewarn ""
ewarn "box86/64 will likely not build or run on a non-glibc system."
ewarn ""
fi
}
src_configure() {
local -a mycmakeargs=(
-DNOGIT=0