# Copyright 2023-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 inherit cmake toolchain-funcs DESCRIPTION="A dynamic tiling Wayland compositor that doesn't sacrifice on its looks" HOMEPAGE="https://github.com/hyprwm/Hyprland" if [[ "${PV}" = *9999 ]]; then inherit git-r3 EGIT_REPO_URI="https://github.com/hyprwm/${PN^}.git" HYPRPM_RDEPEND="=dev-libs/hyprland-protocols-9999" else SRC_URI="https://github.com/hyprwm/${PN^}/releases/download/v${PV}/source-v${PV}.tar.gz -> ${P}.gh.tar.gz" S="${WORKDIR}/${PN}-source" KEYWORDS="~amd64" fi LICENSE="BSD" SLOT="0" IUSE="X legacy-renderer systemd" # hyprpm (hyprland plugin manager) requires the dependencies at runtime # so that it can clone, compile and install plugins. HYPRPM_RDEPEND=" app-alternatives/ninja dev-build/cmake dev-build/meson dev-libs/libliftoff dev-vcs/git virtual/pkgconfig " # bundled wlroots has the following dependency string according to included headers. # wlroots[drm,gles2-renderer,libinput,x11-backend?,X?] # enable x11-backend with X and vice versa WLROOTS_DEPEND=" dev-libs/wayland media-libs/libglvnd || ( >=media-libs/mesa-24.1.0_rc1[opengl]