From a072871049fe02d91f3ef407e45b5d16aad0f26c Mon Sep 17 00:00:00 2001 From: Waltz <79410846+Wa1t5@users.noreply.github.com> Date: Sat, 17 Dec 2022 19:54:38 -0300 Subject: [PATCH] add gentoo overlay for xdg-desktop-portal-hyprland (#80) * add gentoo overlay for xdg-desktop-portal-hyprland --- .../Hyprland-desktop-portal.md | 52 +++++++++++++++++-- 1 file changed, 49 insertions(+), 3 deletions(-) diff --git a/pages/Useful Utilities/Hyprland-desktop-portal.md b/pages/Useful Utilities/Hyprland-desktop-portal.md index 42c83e9..2cf2646 100644 --- a/pages/Useful Utilities/Hyprland-desktop-portal.md +++ b/pages/Useful Utilities/Hyprland-desktop-portal.md @@ -22,15 +22,61 @@ will be disabled) {{< /hint >}} ## Installing +{{< tabs "uniqueid" >}} -#### AUR -```sh +{{< tab "Arch Linux" >}} +```plain yay -S xdg-desktop-portal-hyprland-git ``` +{{< /tab >}} +{{< tab "Gentoo" >}} +## Unmask dependencies +### /etc/portage/profile/package.unmask +```plain +=dev-qt/qtbase-6.4.0 +=dev-qt/qtwayland-6.4.0 +=dev-qt/qtdeclarative-6.4.0 +=dev-qt/qtshadertools-6.4.0 +``` -#### Manual +## Apply necessary useflags +### /etc/portage/package.use +```plain +dev-qt/qtbase opengl egl eglfs gles2-only +dev-qt/qtdeclarative opengl +gui-libs/xdg-desktop-portal-hyprland select-window select-region +sys-apps/xdg-desktop-portal screencast +``` + +## Unmask dependencies and xdph +### /etc/portage/package.accept_keywords +```plain +gui-libs/xdg-desktop-portal-hyprland ** +=dev-qt/qtbase-6.4.0 +=dev-qt/qtwayland-6.4.0 +=dev-qt/qtdeclarative-6.4.0 +=dev-qt/qtshadertools-6.4.0 +``` + +btw those are the useflags that I have tested, you could also test others. Also if the gentoo devs update the qt ebuilds without marking them as stable you'll need to check the ebuild version and update it on '/etc/portage/package.accept_keywords' and '/etc/portage/profile/package.unmask' + +example: '=dev-qt/qtbase-6.5.0' + +## Installation +```sh +eselect repository add useless-overlay git https://github.com/Wa1t5/useless-overlay +emaint sync -r useless-overlay +emerge --ask --verbose gui-libs/xdg-desktop-portal-hyprland +``` + +{{< /tab >}} +{{< tab "Manual" >}} See [The Github repo's readme](https://github.com/hyprwm/xdg-desktop-portal-hyprland). +{{}} + +{{< /tabs >}} + {{< hint type=important >}} It's recommended to uninstall any other portal implementations to avoid conflicts with the `-hyprland` or `-wlr` ones.