From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1525626-garchives=archives.gentoo.org@lists.gentoo.org>
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 2BCB415806E
	for <garchives@archives.gentoo.org>; Mon,  5 Jun 2023 05:15:39 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 0D127E0955;
	Mon,  5 Jun 2023 05:15:38 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(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 E5810E0955
	for <gentoo-commits@lists.gentoo.org>; Mon,  5 Jun 2023 05:15:37 +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 01ECC33BF5D
	for <gentoo-commits@lists.gentoo.org>; Mon,  5 Jun 2023 05:15:37 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 4B4B1A8D
	for <gentoo-commits@lists.gentoo.org>; Mon,  5 Jun 2023 05:15:34 +0000 (UTC)
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" <sam@gentoo.org>
Message-ID: <1685941970.61c03dd0e0d108c62376e97cf587ddbb8d43cda2.sam@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: gui-wm/hyprland/
X-VCS-Repository: repo/gentoo
X-VCS-Files: gui-wm/hyprland/hyprland-0.25.0.ebuild
X-VCS-Directories: gui-wm/hyprland/
X-VCS-Committer: sam
X-VCS-Committer-Name: Sam James
X-VCS-Revision: 61c03dd0e0d108c62376e97cf587ddbb8d43cda2
X-VCS-Branch: master
Date: Mon,  5 Jun 2023 05:15:34 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: c247dcec-e2f9-4c74-b88f-6b6aa8b87956
X-Archives-Hash: 36b867b87a0f7b55fab3c1f8a48124ac

commit:     61c03dd0e0d108c62376e97cf587ddbb8d43cda2
Author:     Mia Ksenia <koishi <AT> koishi <DOT> de>
AuthorDate: Thu May 18 17:35:04 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Jun  5 05:12:50 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61c03dd0

gui-wm/hyprland: Added check for LLVM16

Signed-off-by: Mia Ksenia <koishi <AT> koishi.de>
Closes: https://github.com/gentoo/gentoo/pull/31084
Signed-off-by: Sam James <sam <AT> gentoo.org>

 gui-wm/hyprland/hyprland-0.25.0.ebuild | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/gui-wm/hyprland/hyprland-0.25.0.ebuild b/gui-wm/hyprland/hyprland-0.25.0.ebuild
index bf62573979c1..aff592df7d8c 100644
--- a/gui-wm/hyprland/hyprland-0.25.0.ebuild
+++ b/gui-wm/hyprland/hyprland-0.25.0.ebuild
@@ -54,10 +54,14 @@ BDEPEND="
 "
 
 src_prepare() {
-	STDLIBVER=$(echo '#include <string>' | $(tc-getCXX) -x c++ -dM -E - | \
+	if [[ $(tc-is-gcc) ]]; then
+	   STDLIBVER=$(echo '#include <string>' | $(tc-getCXX) -x c++ -dM -E - | \
 					grep GLIBCXX_RELEASE | sed 's/.*\([1-9][0-9]\)/\1/')
-	if ! [[ ${STDLIBVER} -ge 12 ]]; then
-		die "Hyprland requires >=sys-devel/gcc-12.1.0 to build"
+	   if ! [[ ${STDLIBVER} -ge 12 ]]; then
+		   die "Hyprland requires >=sys-devel/gcc-12.1.0 to build"
+	   fi
+	elif [[ $(clang-major-version) -lt 16 ]]; then
+		die "Hyprland requires >=sys-devel/clang-16.0.3 to build";
 	fi
 
 	if use video_cards_nvidia; then