app-editors/imhex: die early if gcc is too old

Signed-off-by: Ronny (tastytea) Gutbrod <gentoo@tastytea.de>
This commit is contained in:
Ronny (tastytea) Gutbrod
2022-09-22 12:10:40 +02:00
parent a8d131e9bb
commit d1a59f7554

View File

@@ -7,7 +7,7 @@ CMAKE_BUILD_TYPE="Release"
CMAKE_MAKEFILE_GENERATOR="emake"
PYTHON_COMPAT=( python3_{8..11} )
inherit cmake desktop llvm python-r1 xdg
inherit cmake desktop llvm python-r1 toolchain-funcs xdg
DESCRIPTION="A hex editor for reverse engineers, programmers, and eyesight"
HOMEPAGE="https://github.com/WerWolv/ImHex"
@@ -51,6 +51,12 @@ BDEPEND="
sys-devel/llvm
"
pkg_pretend() {
if tc-is-gcc && [[ $(gcc-major-version) -lt 12 ]]; then
die "${PN} requires GCC 12 or newer"
fi
}
src_prepare() {
default
# Due to network sandboxing, we can't do network test here.