sys-apps/kmscon: add 10.0.0

Signed-off-by: Ben Kohler <bkohler@gentoo.org>
This commit is contained in:
Ben Kohler
2026-05-27 09:50:15 -05:00
parent 16447a633d
commit 95f6d0a12a
3 changed files with 75 additions and 2 deletions

View File

@@ -1,3 +1,4 @@
DIST kmscon-10.0.0.tar.gz 1970233 BLAKE2B 698e07ff95065b0f42300db0f37eb4fd56b42e2fff80a93239db3733d8b2cec958771f06c57f0e3eaf16db793c88aead859baf643f8592f1de7d5e1b14751cd3 SHA512 da3b7f2d8aaa624561369939928dbc479da4abd9600f623d3eb49a4674674b84f200c72618fa57996bb739b5b0600eabd9ff27b46c3808e0c52bc80416e096b5
DIST kmscon-9.3.2.tar.gz 1222808 BLAKE2B daff241fbccc2e6d4e709da7b0f878293d1ced8b0eb22ace2b0c1831c3af95a735ac46f6257e810d4bd5fdb0ea5c5fc77ce51865012ab29e321e8a10f8dae4a1 SHA512 7d8e5306897552c3d4df791ac52802e646598d0fd377b759978503c32ba5d429b0f756cfb2a16a9de6353535b4c7b2f1a5c8b5fee0c51516b98bacb2195f9ce6
DIST kmscon-9.3.3.tar.gz 1971939 BLAKE2B 96e5ee76b0e91d807f446d5547d944b622e1a5cdef7063fb3b1295a0ec147b7f31aad329a339c655e115b0b5c7a3e282711c5afa4897cbe5bdc9675fc21c2e3b SHA512 ed62fb938ff186d0841dbd9b0f689142b17ea0d5edcb655e4070cf6900d61ac7179d1486d4bcff0e57977398335643deb4032d1cc6f1cc976d04027c17f7bbde
DIST kmscon-9.3.4.tar.gz 1970222 BLAKE2B bbc13d04833e7993def8b859bd66cc6cad3bbeff090bf5a5c3fc410fbbe23b5d240f70abc7f1d76de421679bae428c1af1ee9e164aa8915edd8b53ae2876df04 SHA512 0fa68b7541777fb3ca20c64bfc5a75c7721862c2269d2ca0fa296a9b040b7a1500ccec710ab0cce36b62d59520ecc5e83bf2dc681db64dc4b2578417858bd865

View File

@@ -0,0 +1,72 @@
# Copyright 1999-2026 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 +fbdev freetype +gles2 +libseat +pango test"
RESTRICT="!test? ( test )"
COMMON_DEPEND=">=dev-libs/libtsm-4.5.0:=
media-libs/libglvnd[X(+)]
>=virtual/udev-172
virtual/zlib:=
x11-libs/libxkbcommon
drm? ( x11-libs/libdrm
>=media-libs/mesa-8.0.3[egl(+),gbm(+)] )
freetype? ( media-libs/fontconfig media-libs/freetype )
libseat? ( sys-auth/seatd )
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 )"
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 libseat)
$(meson_feature fbdev video_fbdev)
$(meson_feature drm video_drm2d)
$(meson_feature drm video_drm3d)
-Dfont_unifont=enabled
$(meson_feature freetype font_freetype)
$(meson_feature pango font_pango)
$(meson_feature gles2 renderer_gltex)
$(meson_use test tests)
-Dsession_dummy=enabled
-Dsession_terminal=enabled
)
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"
}

View File

@@ -9,10 +9,10 @@
<flag name="drm">Enable Linux DRM for backend</flag>
<flag name="fbdev">Enable Linux FBDev for backend</flag>
<flag name="freetype">Enable freetype2 renderer</flag>
<flag name="libseat">Enable seat management via <pkg>sys-auth/seatd</pkg></flag>
<flag name="pango">Enable pango font rendering</flag>
<flag name="systemd">Enable multiseat support via systemd</flag>
</use>
<upstream>
<remote-id type="github">Aetf/kmscon</remote-id>
<remote-id type="github">kmscon/kmscon</remote-id>
</upstream>
</pkgmetadata>