commit:     ec493d3350ea44e0de46464751f0572d419228b1
Author:     Quincy Fleming <quincyf467 <AT> protonmail <DOT> com>
AuthorDate: Thu Dec  4 02:41:52 2025 +0000
Commit:     Quincy Fleming <quincyf467 <AT> protonmail <DOT> com>
CommitDate: Thu Dec  4 02:41:52 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ec493d33

gui-libs/xdg-desktop-portal-hyprland: add 1.3.11

Signed-off-by: Quincy Fleming <quincyf467 <AT> protonmail.com>

 gui-libs/xdg-desktop-portal-hyprland/Manifest      |  1 +
 .../xdg-desktop-portal-hyprland-1.3.11.ebuild      | 72 ++++++++++++++++++++++
 2 files changed, 73 insertions(+)

diff --git a/gui-libs/xdg-desktop-portal-hyprland/Manifest 
b/gui-libs/xdg-desktop-portal-hyprland/Manifest
index a0ef10a8f7..f1db8d0152 100644
--- a/gui-libs/xdg-desktop-portal-hyprland/Manifest
+++ b/gui-libs/xdg-desktop-portal-hyprland/Manifest
@@ -1 +1,2 @@
+DIST xdg-desktop-portal-hyprland-1.3.11.tar.gz 51615 BLAKE2B 
e03677226d820b93a55c92dda96a717f0141262f3f74cb2a90b2e11b6fc7407f70e06786e3b4798e3178b16565d122c27c793e21b9647422d7839de3fd87a022
 SHA512 
cb2ac4372172f3a222efdf92061158e5d6092508a3113d8e9bb24e226199251f2e3d9e707f9445a00e7603e7210d2752dc7fc449aa0abc08c5fb4a827921c028
 DIST xdg-desktop-portal-hyprland-1.3.9.tar.gz 50667 BLAKE2B 
581013bd3bfc2c38f17624cee3a6bc759c88db50d67e0de7031d1ee7cf4cf906238a176f26d12a8f2ae5a88caf983dfdd119d7919bfe2481c9a140d3f8b9ebd8
 SHA512 
2a157d406b63371b0594a679622e113379a326ef68a02163aa5c0b14703c2472f972d080ff146d401c87e084bbfdbc4133768792d4996c2d2ad45ca6db8ccc1e

diff --git 
a/gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-1.3.11.ebuild
 
b/gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-1.3.11.ebuild
new file mode 100644
index 0000000000..a9fa49430b
--- /dev/null
+++ 
b/gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-1.3.11.ebuild
@@ -0,0 +1,72 @@
+# Copyright 2022-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake toolchain-funcs
+
+DESCRIPTION="xdg-desktop-portal backend for Hyprland"
+HOMEPAGE="https://github.com/hyprwm/xdg-desktop-portal-hyprland";
+
+if [[ ${PV} == 9999 ]]; then
+       EGIT_REPO_URI="https://github.com/hyprwm/${PN}.git";
+       inherit git-r3
+else
+       
SRC_URI="https://github.com/hyprwm/${PN}/archive/refs/tags/v${PV}.tar.gz -> 
${P}.tar.gz"
+       KEYWORDS="~amd64"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+IUSE="elogind systemd"
+REQUIRED_USE="?? ( elogind systemd )"
+
+DEPEND="
+       >=dev-cpp/sdbus-c++-2.0.0
+       dev-libs/hyprlang:=
+       dev-libs/inih
+       dev-libs/wayland
+       dev-qt/qtbase:6[gui,widgets]
+       dev-qt/qtwayland:6
+       gui-libs/hyprutils:=
+       media-libs/mesa
+       >=media-video/pipewire-1.2.0:=
+       x11-libs/libdrm
+       || (
+               sys-libs/basu
+               elogind? ( >=sys-auth/elogind-237 )
+               systemd? ( >=sys-apps/systemd-237 )
+       )
+"
+
+RDEPEND="
+       ${DEPEND}
+       sys-apps/xdg-desktop-portal
+"
+
+BDEPEND="
+       dev-libs/hyprland-protocols
+       >=dev-libs/wayland-protocols-1.24
+       >=dev-util/hyprwayland-scanner-0.4.2
+       virtual/pkgconfig
+       || ( >=sys-devel/gcc-14:* >=llvm-core/clang-17:* )
+"
+
+pkg_setup() {
+       [[ ${MERGE_TYPE} == binary ]] && return
+
+       if tc-is-gcc && ver_test $(gcc-version) -lt 14 ; then
+               eerror "XDPH needs >=gcc-14 or >=clang-17 to compile."
+               eerror "Please upgrade GCC: emerge -v1 sys-devel/gcc"
+               die "GCC version is too old to compile XDPH!"
+       elif tc-is-clang && ver_test $(clang-version) -lt 17 ; then
+               eerror "XDPH needs >=gcc-14 or >=clang-17 to compile."
+               eerror "Please upgrade Clang: emerge -v1 llvm-core/clang"
+               die "Clang version is too old to compile XDPH!"
+       fi
+}
+
+src_prepare() {
+       sed -i "/add_compile_options(-O3)/d" "${S}/CMakeLists.txt" || die
+       cmake_src_prepare
+}

Reply via email to