public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Julien Roy" <julien@jroy.ca>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: sys-auth/hyprpolkitagent/
Date: Sun, 17 Nov 2024 03:49:45 +0000 (UTC)	[thread overview]
Message-ID: <1731815357.44d3efff43db84a327ff24e9aa9e95b9077d71a3.julien@gentoo> (raw)

commit:     44d3efff43db84a327ff24e9aa9e95b9077d71a3
Author:     Julien Roy <julien <AT> jroy <DOT> ca>
AuthorDate: Sun Nov 17 03:47:56 2024 +0000
Commit:     Julien Roy <julien <AT> jroy <DOT> ca>
CommitDate: Sun Nov 17 03:49:17 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=44d3efff

sys-auth/hyprpolkitagent: add GCC version check

Signed-off-by: Julien Roy <julien <AT> jroy.ca>

 sys-auth/hyprpolkitagent/hyprpolkitagent-0.1.1.ebuild | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/sys-auth/hyprpolkitagent/hyprpolkitagent-0.1.1.ebuild b/sys-auth/hyprpolkitagent/hyprpolkitagent-0.1.1.ebuild
index a9610f574..9a860d545 100644
--- a/sys-auth/hyprpolkitagent/hyprpolkitagent-0.1.1.ebuild
+++ b/sys-auth/hyprpolkitagent/hyprpolkitagent-0.1.1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit cmake
+inherit cmake toolchain-funcs
 
 DESCRIPTION="Polkit authentication agent for Hyprland, written in Qt/QML"
 HOMEPAGE="https://wiki.hyprland.org/Hypr-Ecosystem/hyprpolkitagent"
@@ -28,3 +28,17 @@ RDEPEND="
 BDEPEND="
 	virtual/pkgconfig
 "
+
+kg_setup() {
+	[[ ${MERGE_TYPE} == binary ]] && return
+
+	if tc-is-gcc && ver_test $(gcc-version) -lt 14 ; then
+		eerror "Hyprpolkitagent requires >=sys-devel/gcc-14 to build"
+		eerror "Please upgrade GCC: emerge -v1 sys-devel/gcc"
+		die "GCC version is too old to compile Hyprland!"
+	elif tc-is-clang && ver_test $(clang-version) -lt 18 ; then
+		eerror "Hyprpolkitagent requires >=sys-devel/clang-18 to build"
+		eerror "Please upgrade Clang: emerge -v1 sys-devel/clang"
+		die "Clang version is too old to compile Hyprland!"
+	fi
+}


WARNING: multiple messages have this Message-ID (diff)
From: "Julien Roy" <julien@jroy.ca>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: sys-auth/hyprpolkitagent/
Date: Sun, 17 Nov 2024 03:55:54 +0000 (UTC)	[thread overview]
Message-ID: <1731815357.44d3efff43db84a327ff24e9aa9e95b9077d71a3.julien@gentoo> (raw)
Message-ID: <20241117035554.dc9Ef8gGXRo1OhECRn7uJaaVRTwX7cgFzt8S6BrHtq4@z> (raw)

commit:     44d3efff43db84a327ff24e9aa9e95b9077d71a3
Author:     Julien Roy <julien <AT> jroy <DOT> ca>
AuthorDate: Sun Nov 17 03:47:56 2024 +0000
Commit:     Julien Roy <julien <AT> jroy <DOT> ca>
CommitDate: Sun Nov 17 03:49:17 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=44d3efff

sys-auth/hyprpolkitagent: add GCC version check

Signed-off-by: Julien Roy <julien <AT> jroy.ca>

 sys-auth/hyprpolkitagent/hyprpolkitagent-0.1.1.ebuild | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/sys-auth/hyprpolkitagent/hyprpolkitagent-0.1.1.ebuild b/sys-auth/hyprpolkitagent/hyprpolkitagent-0.1.1.ebuild
index a9610f574..9a860d545 100644
--- a/sys-auth/hyprpolkitagent/hyprpolkitagent-0.1.1.ebuild
+++ b/sys-auth/hyprpolkitagent/hyprpolkitagent-0.1.1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit cmake
+inherit cmake toolchain-funcs
 
 DESCRIPTION="Polkit authentication agent for Hyprland, written in Qt/QML"
 HOMEPAGE="https://wiki.hyprland.org/Hypr-Ecosystem/hyprpolkitagent"
@@ -28,3 +28,17 @@ RDEPEND="
 BDEPEND="
 	virtual/pkgconfig
 "
+
+kg_setup() {
+	[[ ${MERGE_TYPE} == binary ]] && return
+
+	if tc-is-gcc && ver_test $(gcc-version) -lt 14 ; then
+		eerror "Hyprpolkitagent requires >=sys-devel/gcc-14 to build"
+		eerror "Please upgrade GCC: emerge -v1 sys-devel/gcc"
+		die "GCC version is too old to compile Hyprland!"
+	elif tc-is-clang && ver_test $(clang-version) -lt 18 ; then
+		eerror "Hyprpolkitagent requires >=sys-devel/clang-18 to build"
+		eerror "Please upgrade Clang: emerge -v1 sys-devel/clang"
+		die "Clang version is too old to compile Hyprland!"
+	fi
+}


             reply	other threads:[~2024-11-17  3:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-17  3:49 Julien Roy [this message]
2024-11-17  3:55 ` [gentoo-commits] repo/proj/guru:master commit in: sys-auth/hyprpolkitagent/ Julien Roy
  -- strict thread matches above, loose matches on Subject: below --
2024-11-17  3:49 [gentoo-commits] repo/proj/guru:dev " Julien Roy
2024-12-30 15:43 Julien Roy
2025-01-03 16:33 David Roman
2025-01-13 15:51 David Roman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1731815357.44d3efff43db84a327ff24e9aa9e95b9077d71a3.julien@gentoo \
    --to=julien@jroy.ca \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox