summaryrefslogtreecommitdiff
path: root/gui-apps/wl-mirror/wl-mirror-9999.ebuild
blob: 4429890c0bf21c93a73403adff0f46cfb3e2a0ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake git-r3

DESCRIPTION="A simple Wayland output mirror client"
HOMEPAGE="https://github.com/Ferdi265/wl-mirror"
EGIT_REPO_URI="https://github.com/Ferdi265/wl-mirror.git"

# as of writing, `main` branch corresponds with release.
# please update as required
EGIT_BRANCH="feature-xdg-portal"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS=""
IUSE="+examples man"

DEPEND="
	gui-libs/wlroots
	dev-libs/wayland-protocols
	dev-libs/wayland
	media-libs/libglvnd
	dev-util/wayland-scanner
	man? (
		app-text/scdoc
	)
"
RDEPEND="${DEPEND}"

src_configure() {
	mycmakeargs=(
		-DINSTALL_DOCUMENTATION=$(usex man ON OFF)
		-DFORCE_SYSTEM_WL_PROTOCOLS=ON
		-DFORCE_SYSTEM_WLR_PROTOCOLS=OFF
		-DINSTALL_EXAMPLE_SCRIPTS=$(usex examples ON OFF)
		-DWITH_XDG_PORTAL_BACKEND=ON
	)

	cmake_src_configure
}