summaryrefslogtreecommitdiff
path: root/gui-wm/tinywl/tinywl-0.15.1.ebuild
blob: c8ddb20aa600c5e64ce71360f9922f40e6dbae67 (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
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION='"minimum viable product" Wayland compositor based on wlroots'
HOMEPAGE="https://gitlab.freedesktop.org/wlroots/wlroots/-/tree/tinywl"

if [[ ${PV} == 9999 ]]; then
	EGIT_REPO_URI="https://gitlab.freedesktop.org/wlroots/wlroots.git"
	inherit git-r3
else
	SRC_URI="https://gitlab.freedesktop.org/wlroots/wlroots/-/archive/${PV}/wlroots-${PV}.tar.gz"
	KEYWORDS="~amd64 ~x86"
fi

LICENSE="CC0-1.0"
SLOT="0"
IUSE=""

DEPEND="
	>=gui-libs/wlroots-${PV}:=
	dev-libs/wayland-protocols
"
RDEPEND="
	${DEPEND}
"
BDEPEND="
	dev-libs/wayland-protocols
	virtual/pkgconfig
"

S=${WORKDIR}/wlroots-${PV}

PATCHES=(
	"${FILESDIR}/tinywl-don-t-crash-when-there-is-no-keyboard.patch"
)

S="${WORKDIR}/wlroots-${PV}/tinywl"

src_prepare() {
	cd ..
	default
}

src_install() {
	dobin tinywl
}