Gentoo Archives: gentoo-commits

From: Ben Kohler <bkohler@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/kmscon/, sys-apps/kmscon/files/
Date: Thu, 30 Jun 2022 16:14:47
Message-Id: 1656605676.3b08d25f6cb19235da2847e6da424a03ff1179c9.bkohler@gentoo
1 commit: 3b08d25f6cb19235da2847e6da424a03ff1179c9
2 Author: Ben Kohler <bkohler <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 30 16:11:18 2022 +0000
4 Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 30 16:14:36 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b08d25f
7
8 sys-apps/kmscon: add 9.0.0
9
10 Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>
11
12 sys-apps/kmscon/Manifest | 1 +
13 .../files/kmscon-9.0.0-systemd-path-fix.patch | 13 ++++
14 sys-apps/kmscon/kmscon-9.0.0.ebuild | 75 ++++++++++++++++++++++
15 3 files changed, 89 insertions(+)
16
17 diff --git a/sys-apps/kmscon/Manifest b/sys-apps/kmscon/Manifest
18 index abab6f35882d..e729f7c3ca1f 100644
19 --- a/sys-apps/kmscon/Manifest
20 +++ b/sys-apps/kmscon/Manifest
21 @@ -1,2 +1,3 @@
22 DIST kmscon-8_p20180906.tar.gz 1156350 BLAKE2B 52c024ca6e9652b468efb23d38cda34bf0c05e1e2bb4268435e17adb8858439ac6bf0e1783cfdd24a48fcb2dcf7c1cb20eee09aeb90db08c2e94224d01efeff7 SHA512 2ccdc5b30df6d96ac7a75d01d674b295bcdb0d445169716638a20c9884b090bbfe509e0aee79cb674a2d9b0eb18ea6284b9d4e2939cb5bf290cade4c1a02487a
23 DIST kmscon-8_p20220214.tar.gz 1158069 BLAKE2B a64b19da4bc57e4baed8d3822cbf7cca472614a30fe604a09c53f8ab3e024725abdad7286c6c183e7de3b24bd80e01c5141d6c7f10794b9101530832602dad4f SHA512 837026b3f9702fe487d63d665140ea9e37a39975161e86f78a4c989b18eabd3c3429a4a6ebc384790389042b014dbaaa8225a136290f9310b113b606e551f4c2
24 +DIST kmscon-9.0.0.tar.xz 736668 BLAKE2B a44a4b3739b1ed4a597713ca2ef7adb33f1ab7130322a419ee88517addfbf0edf01ef59f06c5626e95a7bc1708cf4cebe49d5853558aa3fedb3aa9c7c28a7dd7 SHA512 2d4bca093c40307e155c9cfa349eef433d7ab6d08f8e134a61fa9c5ccb9ad594575725371075aaf917c2a9dfb3cb3cd148296dce25065a02b3a211650cde9c3c
25
26 diff --git a/sys-apps/kmscon/files/kmscon-9.0.0-systemd-path-fix.patch b/sys-apps/kmscon/files/kmscon-9.0.0-systemd-path-fix.patch
27 new file mode 100644
28 index 000000000000..417c38b77c1f
29 --- /dev/null
30 +++ b/sys-apps/kmscon/files/kmscon-9.0.0-systemd-path-fix.patch
31 @@ -0,0 +1,13 @@
32 +diff --git a/meson.build b/meson.build
33 +index 4544587..f2ca004 100644
34 +--- a/meson.build
35 ++++ b/meson.build
36 +@@ -37,7 +37,7 @@ sysconfdir = get_option('sysconfdir') / meson.project_name()
37 + libexecdir = get_option('libexecdir') / meson.project_name()
38 + mandir = get_option('mandir')
39 + moduledir = get_option('libdir') / meson.project_name()
40 +-systemddir = get_option('libdir') / 'systemd'
41 ++systemddir = '/lib/systemd'
42 +
43 + #
44 + # Required dependencies
45
46 diff --git a/sys-apps/kmscon/kmscon-9.0.0.ebuild b/sys-apps/kmscon/kmscon-9.0.0.ebuild
47 new file mode 100644
48 index 000000000000..cadf2d7c4b3f
49 --- /dev/null
50 +++ b/sys-apps/kmscon/kmscon-9.0.0.ebuild
51 @@ -0,0 +1,75 @@
52 +# Copyright 1999-2022 Gentoo Authors
53 +# Distributed under the terms of the GNU General Public License v2
54 +
55 +EAPI=7
56 +
57 +SRC_URI="https://github.com/Aetf/kmscon/releases/download/v${PV}/${P}.tar.xz"
58 +KEYWORDS="~amd64 ~x86"
59 +
60 +inherit meson flag-o-matic systemd toolchain-funcs
61 +
62 +DESCRIPTION="KMS/DRM based virtual Console Emulator"
63 +HOMEPAGE="https://github.com/Aetf/kmscon"
64 +
65 +LICENSE="MIT LGPL-2.1 BSD-2"
66 +SLOT="0"
67 +IUSE="debug doc +drm +fbdev +gles2 +pango pixman systemd +unicode"
68 +
69 +COMMON_DEPEND="
70 + >=virtual/udev-172
71 + x11-libs/libxkbcommon
72 + >=dev-libs/libtsm-4.0.0:=
73 + media-libs/mesa[X(+)]
74 + drm? ( x11-libs/libdrm
75 + >=media-libs/mesa-8.0.3[egl(+),gbm(+)] )
76 + gles2? ( >=media-libs/mesa-8.0.3[gles2] )
77 + systemd? ( sys-apps/systemd )
78 + pango? ( x11-libs/pango dev-libs/glib:2 )
79 + pixman? ( x11-libs/pixman )"
80 +RDEPEND="${COMMON_DEPEND}
81 + x11-misc/xkeyboard-config"
82 +DEPEND="${COMMON_DEPEND}
83 + x11-base/xorg-proto"
84 +BDEPEND="virtual/pkgconfig
85 + doc? ( dev-util/gtk-doc )"
86 +
87 +REQUIRED_USE="gles2? ( drm )"
88 +
89 +PATCHES=( "${FILESDIR}"/kmscon-9.0.0-systemd-path-fix.patch )
90 +
91 +src_prepare() {
92 + default
93 + export CC_FOR_BUILD="$(tc-getBUILD_CC)"
94 +}
95 +
96 +src_configure() {
97 +
98 + # kmscon sets -ffast-math unconditionally
99 + strip-flags
100 +
101 + local emesonargs=(
102 + $(meson_feature doc docs)
103 + $(meson_use debug)
104 + $(meson_feature systemd multi_seat)
105 + $(meson_feature fbdev video_fbdev)
106 + $(meson_feature drm video_drm2d)
107 + $(meson_feature drm video_drm3d)
108 + $(meson_feature unicode font_unifont)
109 + $(meson_feature pango font_pango)
110 + -Drenderer_bbulk=enabled
111 + $(meson_feature gles2 renderer_gltex)
112 + $(meson_feature pixman renderer_pixman)
113 + -Dsession_dummy=enabled
114 + -Dsession_terminal=enabled
115 + )
116 +
117 + meson_src_configure
118 +}
119 +
120 +pkg_postinst() {
121 + grep -e "^ERASECHAR" "${EROOT}"/etc/login.defs && \
122 + ewarn "It is recommended that you comment out the ERASECHAR line in" && \
123 + ewarn " /etc/login.defs for proper backspace functionality at the" && \
124 + ewarn " kmscon login prompt. For details see:" && \
125 + ewarn "https://github.com/dvdhrm/kmscon/issues/69#issuecomment-13827797"
126 +}