blob: a4523e1993bb766a5a94407aa4fad42d533abf33 (
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
52
53
54
55
56
57
|
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
DESCRIPTION="\"minimum viable product\" Wayland compositor based on wlroots"
HOMEPAGE="https://gitlab.freedesktop.org/wlroots/wlroots/-/tree/master/tinywl"
if [[ ${PV} == 9999 ]]; then
EGIT_REPO_URI="https://gitlab.freedesktop.org/wlroots/wlroots.git"
inherit git-r3
else
inherit verify-sig
SRC_URI="https://gitlab.freedesktop.org/wlroots/wlroots/-/releases/${PV}/downloads/wlroots-${PV}.tar.gz
https://gitlab.freedesktop.org/wlroots/wlroots/-/releases/${PV}/downloads/wlroots-${PV}.tar.gz.sig"
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86"
S="${WORKDIR}/wlroots-${PV}"
fi
LICENSE="CC0-1.0"
SLOT="0"
COMMON_DEPEND="
dev-libs/wayland
x11-libs/libxkbcommon
=gui-libs/wlroots-$(ver_cut 1-2)*:=
"
DEPEND="
${COMMON_DEPEND}
dev-libs/wayland-protocols
"
RDEPEND="
${COMMON_DEPEND}
!gui-libs/wlroots[tinywl(-)]
"
BDEPEND="virtual/pkgconfig"
if [[ ${PV} != 9999 ]]; then
BDEPEND+=" verify-sig? ( sec-keys/openpgp-keys-emersion )"
VERIFY_SIG_OPENPGP_KEY_PATH="/usr/share/openpgp-keys/emersion.asc"
fi
src_prepare() {
sed -i -e "s/-Werror //" tinywl/Makefile || die
default
}
src_compile() {
tc-export CC PKG_CONFIG
emake -C tinywl
}
src_install() {
dodoc tinywl/README.md
dobin tinywl/tinywl
}
|