Diff hyprland-0.29.1 with a hyprland-0.30.0
/usr/portage/gui-wm/hyprland/hyprland-0.30.0.ebuild 2023-10-09 14:52:31.176368393 +0300 | ||
---|---|---|
70 | 70 |
" |
71 | 71 |
BDEPEND=" |
72 | 72 |
${WLROOTS_BDEPEND} |
73 |
|| ( >=sys-devel/gcc-13:* >=sys-devel/clang-16:* ) |
|
73 | 74 |
app-misc/jq |
74 | 75 |
dev-util/cmake |
75 | 76 |
dev-util/wayland-scanner |
... | ... | |
77 | 78 |
virtual/pkgconfig |
78 | 79 |
" |
79 | 80 | |
81 |
PATCHES=( |
|
82 |
"${FILESDIR}/hyprland-0.30.0-no-wlroots-automagic-r1.patch" |
|
83 |
"${FILESDIR}/hyprland-0.30.0-3400-fix-build.patch" |
|
84 |
) |
|
85 | ||
80 | 86 |
pkg_setup() { |
81 | 87 |
[[ ${MERGE_TYPE} == binary ]] && return |
82 | 88 | |
83 |
if tc-is-gcc; then |
|
84 |
STDLIBVER=$(echo '#include <string>' | $(tc-getCXX) -x c++ -dM -E - | \ |
|
85 |
grep GLIBCXX_RELEASE | sed 's/.*\([1-9][0-9]\)/\1/') |
|
86 | ||
87 |
if ! [[ ${STDLIBVER} -ge 12 ]]; then |
|
88 |
die "Hyprland requires >=sys-devel/gcc-12.1.0 to build" |
|
89 |
fi |
|
90 |
elif [[ $(clang-major-version) -lt 16 ]]; then |
|
91 |
die "Hyprland requires >=sys-devel/clang-16.0.3 to build"; |
|
89 |
if tc-is-gcc && ver_test $(gcc-version) -lt 13 ; then |
|
90 |
eerror "Hyprland requires >=sys-devel/gcc-13 to build" |
|
91 |
eerror "Please upgrade GCC: emerge -v1 sys-devel/gcc" |
|
92 |
die "GCC version is too old to compile Hyprland!" |
|
93 |
elif tc-is-clang && ver_test $(clang-version) -lt 16 ; then |
|
94 |
eerror "Hyprland requires >=sys-devel/clang-16 to build" |
|
95 |
eerror "Please upgrade Clang: emerge -v1 sys-devel/clang" |
|
96 |
die "Clang version is too old to compile Hyprland!" |
|
92 | 97 |
fi |
93 | 98 |
} |
94 | 99 | |
... | ... | |
99 | 104 |
cd "${S}" || die |
100 | 105 |
fi |
101 | 106 | |
102 |
eapply "${FILESDIR}/hyprland-0.28.0-no-wlroots-automagic-r1.patch" |
|
103 | ||
104 | 107 |
default |
105 | 108 |
} |
106 | 109 |