add gentoo overlay for xdg-desktop-portal-hyprland (#80)

* add gentoo overlay for xdg-desktop-portal-hyprland
This commit is contained in:
Waltz 2022-12-17 19:54:38 -03:00 committed by GitHub
parent 2d8f4c1a19
commit a072871049
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,15 +22,61 @@ will be disabled)
{{< /hint >}} {{< /hint >}}
## Installing ## Installing
{{< tabs "uniqueid" >}}
#### AUR {{< tab "Arch Linux" >}}
```sh ```plain
yay -S xdg-desktop-portal-hyprland-git 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). See [The Github repo's readme](https://github.com/hyprwm/xdg-desktop-portal-hyprland).
{{</ tab >}}
{{< /tabs >}}
{{< hint type=important >}} {{< hint type=important >}}
It's recommended to uninstall any other portal implementations to avoid conflicts with the `-hyprland` or `-wlr` ones. It's recommended to uninstall any other portal implementations to avoid conflicts with the `-hyprland` or `-wlr` ones.