mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 03:53:22 -04:00
gui-libs/xdg-desktop-portal-hyprland: update 9999
Signed-off-by: Remigiusz Micielski <rmicielski@purelymail.com>
This commit is contained in:
@@ -49,21 +49,20 @@ BDEPEND="
|
|||||||
>=dev-libs/wayland-protocols-1.24
|
>=dev-libs/wayland-protocols-1.24
|
||||||
dev-libs/hyprland-protocols
|
dev-libs/hyprland-protocols
|
||||||
virtual/pkgconfig
|
virtual/pkgconfig
|
||||||
|
|| ( >=sys-devel/gcc-13:* >=sys-devel/clang-17:* )
|
||||||
"
|
"
|
||||||
|
|
||||||
pkg_setup() {
|
pkg_setup() {
|
||||||
[[ ${MERGE_TYPE} == binary ]] && return
|
[[ ${MERGE_TYPE} == binary ]] && return
|
||||||
|
|
||||||
if tc-is-gcc; then
|
if tc-is-gcc && ver_test $(gcc-version) -lt 13 ; then
|
||||||
STDLIBVER=$(echo '#include <string>' | $(tc-getCXX) -x c++ -dM -E - | \
|
eerror "XDPH needs >=gcc-13 or >=clang-17 to compile."
|
||||||
grep GLIBCXX_RELEASE | sed 's/.*\([1-9][0-9]\)/\1/')
|
eerror "Please upgrade GCC: emerge -v1 sys-devel/gcc"
|
||||||
|
die "GCC version is too old to compile XDPH!"
|
||||||
if [[ ${STDLIBVER} -lt 13 ]]; then
|
elif tc-is-clang && ver_test $(clang-version) -lt 17 ; then
|
||||||
die "XDPH requires >=sys-devel/gcc-13.0.0 to build"
|
eerror "XDPH needs >=gcc-13 or >=clang-17 to compile."
|
||||||
fi
|
eerror "Please upgrade Clang: emerge -v1 sys-devel/clang"
|
||||||
else
|
die "Clang version is too old to compile XDPH!"
|
||||||
die "XDPH 1.1.0 won't build with clang.\
|
|
||||||
See: https://github.com/hyprwm/xdg-desktop-portal-hyprland/issues/81";
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user