mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-19 16:38:01 +00:00
Closes: https://bugs.gentoo.org/958747 Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr> Part-of: https://github.com/gentoo/gentoo/pull/44989 Closes: https://github.com/gentoo/gentoo/pull/44989 Signed-off-by: Sam James <sam@gentoo.org>
50 lines
1 KiB
Bash
50 lines
1 KiB
Bash
# Copyright 1999-2025 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
|
|
SRC_URI="https://gitlab.freedesktop.org/wlroots/wlroots/-/releases/${PV}/downloads/wlroots-${PV}.tar.gz"
|
|
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86"
|
|
S="${WORKDIR}/wlroots-${PV}"
|
|
fi
|
|
|
|
LICENSE="CC0-1.0"
|
|
SLOT="0"
|
|
DEPEND="
|
|
dev-libs/wayland
|
|
x11-libs/libxkbcommon
|
|
=gui-libs/wlroots-$(ver_cut 1-2)*:=
|
|
"
|
|
RDEPEND="
|
|
${DEPEND}
|
|
!gui-libs/wlroots[tinywl(-)]
|
|
"
|
|
BDEPEND="
|
|
dev-libs/wayland-protocols
|
|
dev-util/wayland-scanner
|
|
virtual/pkgconfig
|
|
"
|
|
|
|
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
|
|
}
|