mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-16 14:29:05 -07:00
sys-apps/kmscon: add 9.3.4
Signed-off-by: Ben Kohler <bkohler@gentoo.org>
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
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
|
||||
|
||||
83
sys-apps/kmscon/kmscon-9.3.4.ebuild
Normal file
83
sys-apps/kmscon/kmscon-9.3.4.ebuild
Normal file
@@ -0,0 +1,83 @@
|
||||
# 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 elogind +fbdev freetype +gles2 +pango systemd 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 )
|
||||
pango? ( x11-libs/pango dev-libs/glib:2 )
|
||||
systemd? ( sys-apps/systemd )"
|
||||
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 freetype font_freetype)
|
||||
$(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"
|
||||
}
|
||||
Reference in New Issue
Block a user