From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A0518158094 for ; Mon, 26 Sep 2022 09:48:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E7FD7E1092; Mon, 26 Sep 2022 09:48:10 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D1774E1092 for ; Mon, 26 Sep 2022 09:48:10 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0BB06341170 for ; Mon, 26 Sep 2022 09:48:10 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5021E5EE for ; Mon, 26 Sep 2022 09:48:07 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1663841440.d1a59f75541fc4aa41e9cf8d89a03bd172c4b47e.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: app-editors/imhex/ X-VCS-Repository: repo/proj/guru X-VCS-Files: app-editors/imhex/imhex-1.22.0-r1.ebuild X-VCS-Directories: app-editors/imhex/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: d1a59f75541fc4aa41e9cf8d89a03bd172c4b47e X-VCS-Branch: master Date: Mon, 26 Sep 2022 09:48:07 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 5ed5e89d-f716-4b30-94df-05d90ce0d39f X-Archives-Hash: 6086fb1d0725d2e16adfb8a89ed18560 commit: d1a59f75541fc4aa41e9cf8d89a03bd172c4b47e Author: Ronny (tastytea) Gutbrod tastytea de> AuthorDate: Thu Sep 22 10:10:40 2022 +0000 Commit: Andrew Ammerlaan gentoo org> CommitDate: Thu Sep 22 10:10:40 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d1a59f75 app-editors/imhex: die early if gcc is too old Signed-off-by: Ronny (tastytea) Gutbrod tastytea.de> app-editors/imhex/imhex-1.22.0-r1.ebuild | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app-editors/imhex/imhex-1.22.0-r1.ebuild b/app-editors/imhex/imhex-1.22.0-r1.ebuild index 6d16b8837..6e5fb12bb 100644 --- a/app-editors/imhex/imhex-1.22.0-r1.ebuild +++ b/app-editors/imhex/imhex-1.22.0-r1.ebuild @@ -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.