summaryrefslogtreecommitdiff
path: root/gui-apps/way-displays/way-displays-1.15.0.ebuild
blob: 3355463015c6a1730824cfbce632cb28a1b7c20e (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
44
45
46
47
48
49
50
51
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit toolchain-funcs

DESCRIPTION="Auto Manage Your Wayland Displays"
HOMEPAGE="https://github.com/alex-courtis/way-displays"

if [[ ${PV} == *9999 ]]; then
	inherit git-r3
	EGIT_REPO_URI="https://github.com/alex-courtis/way-displays.git"
else
	SRC_URI="https://github.com/alex-courtis/way-displays/archive/${PV}.tar.gz -> ${P}.tar.gz"
	KEYWORDS="~amd64"
fi

LICENSE="MIT"
SLOT="0"

DEPEND="
	dev-libs/wayland
	dev-cpp/yaml-cpp:=
	dev-libs/libinput:=
	virtual/libudev:=
"
RDEPEND="${DEPEND}"
BDEPEND="
	dev-util/wayland-scanner
	virtual/pkgconfig
"

src_compile() {
	emake \
		CC="$(tc-getCC)" \
		CXX="$(tc-getCXX)" \
		PREFIX="${EPREFIX}/usr" \
		PREFIX_ETC="${EPREFIX}" \
		ROOT_ETC="${EPREFIX}/etc" \
		VERSION="${PV}"
}

src_install() {
	emake \
		DESTDIR="${D}" \
		PREFIX="${EPREFIX}/usr" \
		PREFIX_ETC="${EPREFIX}" \
		ROOT_ETC="${EPREFIX}/etc" \
		install
}