Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: app-editors/imhex/
Date: Mon, 26 Sep 2022 09:48:11
Message-Id: 1663841440.d1a59f75541fc4aa41e9cf8d89a03bd172c4b47e.andrewammerlaan@gentoo
1 commit: d1a59f75541fc4aa41e9cf8d89a03bd172c4b47e
2 Author: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de>
3 AuthorDate: Thu Sep 22 10:10:40 2022 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 22 10:10:40 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d1a59f75
7
8 app-editors/imhex: die early if gcc is too old
9
10 Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de>
11
12 app-editors/imhex/imhex-1.22.0-r1.ebuild | 8 +++++++-
13 1 file changed, 7 insertions(+), 1 deletion(-)
14
15 diff --git a/app-editors/imhex/imhex-1.22.0-r1.ebuild b/app-editors/imhex/imhex-1.22.0-r1.ebuild
16 index 6d16b8837..6e5fb12bb 100644
17 --- a/app-editors/imhex/imhex-1.22.0-r1.ebuild
18 +++ b/app-editors/imhex/imhex-1.22.0-r1.ebuild
19 @@ -7,7 +7,7 @@ CMAKE_BUILD_TYPE="Release"
20 CMAKE_MAKEFILE_GENERATOR="emake"
21 PYTHON_COMPAT=( python3_{8..11} )
22
23 -inherit cmake desktop llvm python-r1 xdg
24 +inherit cmake desktop llvm python-r1 toolchain-funcs xdg
25
26 DESCRIPTION="A hex editor for reverse engineers, programmers, and eyesight"
27 HOMEPAGE="https://github.com/WerWolv/ImHex"
28 @@ -51,6 +51,12 @@ BDEPEND="
29 sys-devel/llvm
30 "
31
32 +pkg_pretend() {
33 + if tc-is-gcc && [[ $(gcc-major-version) -lt 12 ]]; then
34 + die "${PN} requires GCC 12 or newer"
35 + fi
36 +}
37 +
38 src_prepare() {
39 default
40 # Due to network sandboxing, we can't do network test here.