# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit meson

DESCRIPTION="xwayland-run contains a set of small utilities revolving around running Xwayland and various Wayland compositor headless."
HOMEPAGE="https://pwmt.org/projects/zathura/"
RESTRICT="mirror"
SLOT=0

if [[ ${PV} == *9999 ]]; then
	inherit git-r3
	EGIT_REPO_URI="https://gitlab.freedesktop.org/ofourdan/xwayland-run.git"
else
	SRC_URI="
		https://gitlab.freedesktop.org/ofourdan/${PN}/-/archive/${PV}/${P}.tar.gz -> ${P}.tar.gz
	"
	KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
fi

LICENSE="GPL-2+"