commit:     ca1fa7221cf7a1c7132e2519e1e444081d4630ae
Author:     John M. Harris Jr. <johnmh <AT> johnmh <DOT> me>
AuthorDate: Mon Jul 22 16:32:38 2024 +0000
Commit:     John M. Harris, Jr. <johnmh <AT> johnmh <DOT> me>
CommitDate: Mon Jul 22 16:32:38 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ca1fa722

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

Signed-off-by: John M. Harris Jr. <johnmh <AT> johnmh.me>

 gui-libs/xdg-desktop-portal-hyprland/Manifest      |  1 +
 .../xdg-desktop-portal-hyprland-1.3.3.ebuild       | 75 ++++++++++++++++++++++
 2 files changed, 76 insertions(+)

diff --git a/gui-libs/xdg-desktop-portal-hyprland/Manifest 
b/gui-libs/xdg-desktop-portal-hyprland/Manifest
index 653e7e97e..d975ebfc8 100644
--- a/gui-libs/xdg-desktop-portal-hyprland/Manifest
+++ b/gui-libs/xdg-desktop-portal-hyprland/Manifest
@@ -1,3 +1,4 @@
 DIST proto-subproject-1.3.1.tar.gz 6343 BLAKE2B 
cffa25c1fbac992db9aee57956615c2a5f8a6e90150d86246218e6d346e566a43527f56cab08b07359bd2f56b1e02b741fb0dbb37ec35fbadd22dfdb2006d3b0
 SHA512 
f8534c0f6562ce3c770ed9c79b8b78504d6f3aa75001c74ecfa5418af939e88a020ca1cef08d20c62e73c764d66452b5ce212a0f0d2e9a3aaba635ee80b142c5
 DIST xdg-desktop-hyprland-1.3.1.tar.gz 46999 BLAKE2B 
17dd6883d90985075dc8bdeb4901ad393fb6ab541aba901536f761464e313e87485a4589f6691321e1e9615817206318362afeaef424ef8f603868ed0d7f26d6
 SHA512 
8d0f9b97fca4566efe717de6d739d10ec51ce5aa33459940f759fc90543fcca3b094d3e570446c5f82c9146249ce39c00fa215b0b83573a466a9907aec9366f3
 DIST xdg-desktop-portal-hyprland-1.3.2.gh.tar.gz 48659 BLAKE2B 
034eb274761710ab7162ebcb840414a612f0dbe5efcf1d3891c36fe94f8d837281151d2b15968faea024381bd25714f1b96989bdd43bfde596ec363949e4e08e
 SHA512 
32630705079b600c22614abdf047f415bf5128697e63fa2e41d5b4028b0957a866acd817087397f60a4c6ad32829cbf00e1dea8f85db8cbdb26e7c96e92cef9e
+DIST xdg-desktop-portal-hyprland-1.3.3.gh.tar.gz 49323 BLAKE2B 
6f0bd6636d1a457d238dbb9095782a41961e30b37eacd05e1a4d545fc933b9d3b529400321a31cfb08c6b5d69279bb8905e84f11743bf97b22587432a5e9cf14
 SHA512 
c100ca27e9cd430602ad0ea4733f34919d84206df084df0d9f8ed8ca8a634069cc7ef71cb587f92eae6eeedf4029a88644b24b9b8d37138cb544279f5be30720

diff --git 
a/gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-1.3.3.ebuild 
b/gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-1.3.3.ebuild
new file mode 100644
index 000000000..465163d48
--- /dev/null
+++ 
b/gui-libs/xdg-desktop-portal-hyprland/xdg-desktop-portal-hyprland-1.3.3.ebuild
@@ -0,0 +1,75 @@
+# Copyright 2022-2024 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}.gh.tar.gz"
+       KEYWORDS="~amd64"
+fi
+
+LICENSE="MIT"
+SLOT="0"
+IUSE="elogind systemd"
+REQUIRED_USE="?? ( elogind systemd )"
+
+DEPEND="
+       >=media-video/pipewire-0.3.41:=
+       dev-cpp/sdbus-c++
+       dev-libs/hyprlang:=
+       dev-libs/inih
+       dev-libs/wayland
+       dev-qt/qtbase
+       dev-qt/qtcore
+       dev-qt/qtgui
+       dev-qt/qtwayland:6
+       dev-qt/qtwidgets
+       media-libs/mesa
+       sys-apps/util-linux
+       x11-libs/libdrm
+       || (
+               systemd? ( >=sys-apps/systemd-237 )
+               elogind? ( >=sys-auth/elogind-237 )
+               sys-libs/basu
+       )
+"
+
+RDEPEND="
+       ${DEPEND}
+       sys-apps/xdg-desktop-portal
+"
+
+BDEPEND="
+       >=dev-libs/wayland-protocols-1.24
+       dev-libs/hyprland-protocols
+       virtual/pkgconfig
+       || ( >=sys-devel/gcc-13:* >=sys-devel/clang-17:* )
+"
+
+pkg_setup() {
+       [[ ${MERGE_TYPE} == binary ]] && return
+
+       if tc-is-gcc && ver_test $(gcc-version) -lt 13 ; then
+               eerror "XDPH needs >=gcc-13 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-13 or >=clang-17 to compile."
+               eerror "Please upgrade Clang: emerge -v1 sys-devel/clang"
+               die "Clang version is too old to compile XDPH!"
+       fi
+}
+
+src_prepare() {
+       eapply 
"${FILESDIR}/xdg-desktop-portal-hyprland-1.3.2_use_sys_sdbus-c++.patch"
+       sed -i "/add_compile_options(-O3)/d" "${S}/CMakeLists.txt" || die
+       cmake_src_prepare
+}

Reply via email to