commit: 880eda7f6da058451b191f7c29978716ff609e57
Author: Richard-Rogalski <rrogalski <AT> tutanota <DOT> com>
AuthorDate: Mon Sep 2 20:19:34 2024 +0000
Commit: David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Mon Sep 2 20:19:34 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=880eda7f
app-emulation/box64: Add QA checks
Signed-off-by: Richard Rogalski <rrogalski <AT> tutanota.com>
app-emulation/box64/box64-0.2.2.ebuild | 12 ++++++++++++
app-emulation/box64/box64-0.3.0.ebuild | 12 ++++++++++++
app-emulation/box64/box64-9999.ebuild | 18 ++++++++++++++++++
3 files changed, 42 insertions(+)
diff --git a/app-emulation/box64/box64-0.2.2.ebuild
b/app-emulation/box64/box64-0.2.2.ebuild
index 1dcaf87e1..71cef82cd 100644
--- a/app-emulation/box64/box64-0.2.2.ebuild
+++ b/app-emulation/box64/box64-0.2.2.ebuild
@@ -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
diff --git a/app-emulation/box64/box64-0.3.0.ebuild
b/app-emulation/box64/box64-0.3.0.ebuild
index e6b02b125..b882fa8dc 100644
--- a/app-emulation/box64/box64-0.3.0.ebuild
+++ b/app-emulation/box64/box64-0.3.0.ebuild
@@ -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
diff --git a/app-emulation/box64/box64-9999.ebuild
b/app-emulation/box64/box64-9999.ebuild
index 91c4682ff..6d30a199a 100644
--- a/app-emulation/box64/box64-9999.ebuild
+++ b/app-emulation/box64/box64-9999.ebuild
@@ -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