sys-apps/kmscon: add 9.2.0

Signed-off-by: Ben Kohler <bkohler@gentoo.org>
This commit is contained in:
Ben Kohler 2025-12-01 10:29:29 -06:00
parent e28a56b31e
commit e66bbe62e5
No known key found for this signature in database
GPG Key ID: 7A85BDA4D57605C7
2 changed files with 81 additions and 0 deletions

View File

@ -1 +1,2 @@
DIST kmscon-9.1.0.tar.gz 1187499 BLAKE2B 44db0910d447cea89fc38ce5a332151524197910a02b1ffc2ba3006343c6721c02dcbf72fb2d428734e20da16fd6f201b4082eb1ab7a6763068846ac99c94a75 SHA512 15fed4c50bb1da0cd69149730fd8d639de7302b72ec12f6a73017ba7e4c06366b0179cb7d9dc32672061562604f36fd06ea677f9c0360deb159811c07a254731
DIST kmscon-9.2.0.tar.gz 1196626 BLAKE2B 949f8d05d773ba877ec6546577fb24c7397204554ec4ec079b798cfa7a38312db383797b7d9182bec939770bec6270d9f01dcb9e512baef6c7a14d8c5e0aa704 SHA512 2f05facd7565d7001ecdebd2e6a79a32b8a53b6d3cfcddbc03bf2fb5a862e0599b7870af628343d2193ef540ede658224db534b280119fa8df4832aabfad6c23

View File

@ -0,0 +1,80 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit meson flag-o-matic toolchain-funcs
DESCRIPTION="KMS/DRM based virtual Console Emulator"
HOMEPAGE="https://github.com/kmscon/kmscon"
SRC_URI="https://github.com/kmscon/kmscon/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT LGPL-2.1 BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="debug doc +drm elogind +fbdev +gles2 +pango systemd test"
RESTRICT="!test? ( test )"
COMMON_DEPEND="
>=virtual/udev-172
x11-libs/libxkbcommon
>=dev-libs/libtsm-4.3.0:=
media-libs/libglvnd[X(+)]
drm? ( x11-libs/libdrm
>=media-libs/mesa-8.0.3[egl(+),gbm(+)] )
systemd? ( sys-apps/systemd )
pango? ( x11-libs/pango dev-libs/glib:2 )"
RDEPEND="${COMMON_DEPEND}
x11-misc/xkeyboard-config"
DEPEND="${COMMON_DEPEND}
x11-base/xorg-proto"
BDEPEND="virtual/pkgconfig
doc? ( dev-util/gtk-doc )"
REQUIRED_USE="
drm? ( gles2 )
?? ( elogind systemd )"
src_prepare() {
default
export CC_FOR_BUILD="$(tc-getBUILD_CC)"
}
src_configure() {
# kmscon sets -ffast-math unconditionally
strip-flags
local emesonargs=(
$(meson_feature doc docs)
$(meson_use debug)
$(meson_feature systemd multi_seat)
$(meson_feature fbdev video_fbdev)
$(meson_feature drm video_drm2d)
$(meson_feature drm video_drm3d)
-Dfont_unifont=enabled
$(meson_feature pango font_pango)
$(meson_feature gles2 renderer_gltex)
$(meson_use test tests)
-Dsession_dummy=enabled
-Dsession_terminal=enabled
)
if use systemd; then
emesonargs+=( -Dmulti_seat=enabled )
elif use elogind; then
emesonargs+=( -Dmulti_seat=enabled -Delogind=enabled )
else
emesonargs+=( -Dmulti_seat=disabled )
fi
meson_src_configure
}
pkg_postinst() {
grep -e "^ERASECHAR" "${EROOT}"/etc/login.defs && \
ewarn "It is recommended that you comment out the ERASECHAR line in" && \
ewarn " /etc/login.defs for proper backspace functionality at the" && \
ewarn " kmscon login prompt. For details see:" && \
ewarn "https://github.com/dvdhrm/kmscon/issues/69#issuecomment-13827797"
}