diff --git a/sys-auth/hyprpolkitagent/Manifest b/sys-auth/hyprpolkitagent/Manifest index dd9397f7f3..de0f43eddb 100644 --- a/sys-auth/hyprpolkitagent/Manifest +++ b/sys-auth/hyprpolkitagent/Manifest @@ -1 +1,2 @@ DIST hyprpolkitagent-0.1.1.tar.gz 29303 BLAKE2B 9aaaaa23376f315f41f001624284466286537241282bbeafd5d5d94787988edc41bf7e2fdb60b859c55a80a9ad88b26247ffe933b6b415166269a02a37a5e0a5 SHA512 402bd7917734ceac209758f4f8d705e4a14ed94c9882c975ffcc8ed7d6e28861959bbee669ea343d8aaaf8bab36fffea815eec52398e0cffe42ca0b54171cd3f +DIST hyprpolkitagent-0.1.2.tar.gz 32283 BLAKE2B 3d93f100a9c4c6ea905d6d8e79cac438040adada9c9c06b533c1c7af01094327c4449d9e7e9879258dd48899e81407ecc5c80539b73d925cc0658b13b7b2f2e1 SHA512 42a394344c9038536eb3d48f588804747bf191f14efe82e00c6bc2d4423b5a04ef5230d8eab1581fdd3a0de92013ba361a0efd17e1f99d725616d413fd103d96 diff --git a/sys-auth/hyprpolkitagent/hyprpolkitagent-0.1.2.ebuild b/sys-auth/hyprpolkitagent/hyprpolkitagent-0.1.2.ebuild new file mode 100644 index 0000000000..afbf92ea11 --- /dev/null +++ b/sys-auth/hyprpolkitagent/hyprpolkitagent-0.1.2.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake toolchain-funcs + +DESCRIPTION="Polkit authentication agent for Hyprland, written in Qt/QML" +HOMEPAGE="https://wiki.hyprland.org/Hypr-Ecosystem/hyprpolkitagent" +SRC_URI="https://github.com/hyprwm/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND=" + dev-qt/qtbase:6[gui,widgets] + dev-qt/qtdeclarative:6 + gui-libs/hyprutils:= + sys-auth/polkit + sys-auth/polkit-qt[qt6] +" + +RDEPEND=" + ${DEPEND} + gui-libs/hyprland-qtutils +" + +BDEPEND=" + virtual/pkgconfig +" + +pkg_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 >=llvm-core/clang-18 to build" + eerror "Please upgrade Clang: emerge -v1 llvm-core/clang" + die "Clang version is too old to compile Hyprland!" + fi +}