diff options
| author | root <root@alpha.trunkmasters.com> | 2026-09-15 03:04:39 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-09-15 03:04:39 -0500 |
| commit | c012d247f03a893c117c88f73bcf6cb6494dcd22 (patch) | |
| tree | 89fc51e9b45239a8e4233e466f4746f81ec6718f /gui-wm | |
| parent | d09313d7f2546bde376a20ff739a5e90cb229e25 (diff) | |
| download | baldeagleos-repo-c012d247f03a893c117c88f73bcf6cb6494dcd22.tar.gz baldeagleos-repo-c012d247f03a893c117c88f73bcf6cb6494dcd22.tar.xz baldeagleos-repo-c012d247f03a893c117c88f73bcf6cb6494dcd22.zip | |
Adding metadata
Diffstat (limited to 'gui-wm')
| -rw-r--r-- | gui-wm/hyprland/hyprland-0.56.2.ebuild | 20 | ||||
| -rw-r--r-- | gui-wm/hyprland/hyprland-9999.ebuild | 22 |
2 files changed, 23 insertions, 19 deletions
diff --git a/gui-wm/hyprland/hyprland-0.56.2.ebuild b/gui-wm/hyprland/hyprland-0.56.2.ebuild index b8a1ddc10a2e..c34663fe8557 100644 --- a/gui-wm/hyprland/hyprland-0.56.2.ebuild +++ b/gui-wm/hyprland/hyprland-0.56.2.ebuild @@ -26,6 +26,10 @@ IUSE="+guiutils hyprpm systemd uwsm X +dbus-session" REQUIRED_USE="${LUA_REQUIRED_USE}" +# Minimum required gcc and clang versions. +_MIN_GCC_VER=15 +_MIN_CLANG_VER=19 + # hyprpm (hyprland plugin manager) requires the dependencies at runtime # so that it can clone, compile and install plugins. HYPRPM_RDEPEND=" @@ -80,7 +84,7 @@ DEPEND=" >=dev-libs/wayland-protocols-1.49 " BDEPEND=" - || ( >=sys-devel/gcc-15:* >=llvm-core/clang-19:* ) + || ( >=sys-devel/gcc-${_MIN_GCC_VER}:* >=llvm-core/clang-${_MIN_CLANG_VER}:* ) app-misc/jq dev-build/cmake >=dev-util/hyprwayland-scanner-0.4.5 @@ -96,14 +100,12 @@ pkg_setup() { [[ ${MERGE_TYPE} == binary ]] && return - if tc-is-gcc && ver_test $(gcc-version) -lt 15 ; then - eerror "Hyprland requires >=sys-devel/gcc-15 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 19 ; then - eerror "Hyprland requires >=llvm-core/clang-19 to build" - eerror "Please upgrade Clang: emerge -v1 llvm-core/clang" - die "Clang version is too old to compile Hyprland!" + if tc-is-gcc && ver_test $(gcc-version) -lt ${_MIN_GCC_VER} ; then + eerror "Compiler is sys-devel/gcc-$(gcc-version), requires >=sys-devel/gcc-${_MIN_GCC_VER}." + die "Active compiler is too old for this package." + elif tc-is-clang && ver_test $(clang-version) -lt ${_MIN_CLANG_VER} ; then + eerror "Compiler is llvm-core/clang-$(clang-version), requires >=llvm-core/clang-${_MIN_CLANG_VER}." + die "Active compiler is too old for this package." fi } diff --git a/gui-wm/hyprland/hyprland-9999.ebuild b/gui-wm/hyprland/hyprland-9999.ebuild index 8b8f9d190f4e..915176d4d15e 100644 --- a/gui-wm/hyprland/hyprland-9999.ebuild +++ b/gui-wm/hyprland/hyprland-9999.ebuild @@ -26,6 +26,10 @@ IUSE="+guiutils hyprpm systemd uwsm X +dbus-session rtkit" REQUIRED_USE="${LUA_REQUIRED_USE}" +# Minimum required gcc and clang versions. +_MIN_GCC_VER=15 +_MIN_CLANG_VER=19 + # hyprpm (hyprland plugin manager) requires the dependencies at runtime # so that it can clone, compile and install plugins. HYPRPM_RDEPEND=" @@ -48,7 +52,7 @@ RDEPEND=" >=dev-libs/udis86-1.7.2 >=dev-libs/wayland-1.22.91 dev-util/glslang:= - >=gui-libs/aquamarine-0.9.5:= + >=gui-libs/aquamarine-0.15.0:= >=gui-libs/hyprcursor-0.1.9:= >=gui-libs/hyprutils-0.14.0:= >=gui-libs/hyprwire-0.2.1:= @@ -82,7 +86,7 @@ DEPEND=" >=dev-libs/wayland-protocols-1.49 " BDEPEND=" - || ( >=sys-devel/gcc-15:* >=llvm-core/clang-19:* ) + || ( >=sys-devel/gcc-${_MIN_GCC_VER}:* >=llvm-core/clang-${_MIN_CLANG_VER}:* ) app-misc/jq dev-build/cmake >=dev-util/hyprwayland-scanner-0.4.5 @@ -98,14 +102,12 @@ pkg_setup() { [[ ${MERGE_TYPE} == binary ]] && return - if tc-is-gcc && ver_test $(gcc-version) -lt 15 ; then - eerror "Hyprland requires >=sys-devel/gcc-15 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 19 ; then - eerror "Hyprland requires >=llvm-core/clang-19 to build" - eerror "Please upgrade Clang: emerge -v1 llvm-core/clang" - die "Clang version is too old to compile Hyprland!" + if tc-is-gcc && ver_test $(gcc-version) -lt ${_MIN_GCC_VER} ; then + eerror "Compiler is sys-devel/gcc-$(gcc-version), requires >=sys-devel/gcc-${_MIN_GCC_VER}." + die "Active compiler is too old for this package." + elif tc-is-clang && ver_test $(clang-version) -lt ${_MIN_CLANG_VER} ; then + eerror "Compiler is llvm-core/clang-$(clang-version), requires >=llvm-core/clang-${_MIN_CLANG_VER}." + die "Active compiler is too old for this package." fi } |
