1 |
commit: f41bd8d1674c1ce38017481c7332d5f34c6478a6 |
2 |
Author: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 19 16:46:48 2022 +0000 |
4 |
Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 19 16:46:59 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f41bd8d1 |
7 |
|
8 |
sys-apps/kmscon: new snapshot |
9 |
|
10 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
11 |
Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org> |
12 |
|
13 |
sys-apps/kmscon/Manifest | 1 + |
14 |
sys-apps/kmscon/kmscon-8_p20220214.ebuild | 145 ++++++++++++++++++++++++++++++ |
15 |
2 files changed, 146 insertions(+) |
16 |
|
17 |
diff --git a/sys-apps/kmscon/Manifest b/sys-apps/kmscon/Manifest |
18 |
index f1c13df79c30..abab6f35882d 100644 |
19 |
--- a/sys-apps/kmscon/Manifest |
20 |
+++ b/sys-apps/kmscon/Manifest |
21 |
@@ -1 +1,2 @@ |
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 |
|
25 |
diff --git a/sys-apps/kmscon/kmscon-8_p20220214.ebuild b/sys-apps/kmscon/kmscon-8_p20220214.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..8015fdc78854 |
28 |
--- /dev/null |
29 |
+++ b/sys-apps/kmscon/kmscon-8_p20220214.ebuild |
30 |
@@ -0,0 +1,145 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+COMMIT="5eed56cfc873df4d7606bc1c470e1d2bb4d42f1c" |
37 |
+SRC_URI="https://github.com/Aetf/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" |
38 |
+KEYWORDS="~amd64 ~x86" |
39 |
+ |
40 |
+inherit autotools flag-o-matic systemd toolchain-funcs vcs-snapshot |
41 |
+ |
42 |
+DESCRIPTION="KMS/DRM based virtual Console Emulator" |
43 |
+HOMEPAGE="https://github.com/Aetf/kmscon" |
44 |
+ |
45 |
+LICENSE="MIT LGPL-2.1 BSD-2" |
46 |
+SLOT="0" |
47 |
+IUSE="debug doc +drm +fbdev +gles2 +optimizations +pango pixman static-libs systemd +unicode" |
48 |
+ |
49 |
+COMMON_DEPEND=" |
50 |
+ >=virtual/udev-172 |
51 |
+ x11-libs/libxkbcommon |
52 |
+ >=dev-libs/libtsm-4.0.0:= |
53 |
+ media-libs/mesa[X(+)] |
54 |
+ drm? ( x11-libs/libdrm |
55 |
+ >=media-libs/mesa-8.0.3[egl(+),gbm(+)] ) |
56 |
+ gles2? ( >=media-libs/mesa-8.0.3[gles2] ) |
57 |
+ systemd? ( sys-apps/systemd ) |
58 |
+ pango? ( x11-libs/pango dev-libs/glib:2 ) |
59 |
+ pixman? ( x11-libs/pixman )" |
60 |
+RDEPEND="${COMMON_DEPEND} |
61 |
+ x11-misc/xkeyboard-config" |
62 |
+DEPEND="${COMMON_DEPEND} |
63 |
+ x11-base/xorg-proto" |
64 |
+BDEPEND="virtual/pkgconfig |
65 |
+ doc? ( dev-util/gtk-doc )" |
66 |
+ |
67 |
+REQUIRED_USE="gles2? ( drm )" |
68 |
+ |
69 |
+# args - names of renderers to enable |
70 |
+renderers_enable() { |
71 |
+ if [[ "x${RENDER}" == "x" ]]; then |
72 |
+ RENDER="$1" |
73 |
+ shift |
74 |
+ else |
75 |
+ for i in $@; do |
76 |
+ RENDER+=",${i}" |
77 |
+ done |
78 |
+ fi |
79 |
+} |
80 |
+ |
81 |
+# args - names of font renderer backends to enable |
82 |
+fonts_enable() { |
83 |
+ if [[ "x${FONTS}" == "x" ]]; then |
84 |
+ FONTS="$1" |
85 |
+ shift |
86 |
+ else |
87 |
+ for i in $@; do |
88 |
+ FONTS+=",${i}" |
89 |
+ done |
90 |
+ fi |
91 |
+} |
92 |
+ |
93 |
+# args - names of video backends to enable |
94 |
+video_enable() { |
95 |
+ if [[ "x${VIDEO}" == "x" ]]; then |
96 |
+ VIDEO="$1" |
97 |
+ shift |
98 |
+ else |
99 |
+ for i in $@; do |
100 |
+ VIDEO+=",${i}" |
101 |
+ done |
102 |
+ fi |
103 |
+} |
104 |
+ |
105 |
+src_prepare() { |
106 |
+ default |
107 |
+ eautoreconf |
108 |
+ |
109 |
+ export CC_FOR_BUILD="$(tc-getBUILD_CC)" |
110 |
+} |
111 |
+ |
112 |
+src_configure() { |
113 |
+ # Video backends |
114 |
+ |
115 |
+ if use fbdev; then |
116 |
+ video_enable fbdev |
117 |
+ fi |
118 |
+ |
119 |
+ if use drm; then |
120 |
+ video_enable drm2d |
121 |
+ fi |
122 |
+ |
123 |
+ if use gles2; then |
124 |
+ video_enable drm3d |
125 |
+ fi |
126 |
+ |
127 |
+ # Font rendering backends |
128 |
+ |
129 |
+ if use unicode; then |
130 |
+ fonts_enable unifont |
131 |
+ fi |
132 |
+ |
133 |
+ if use pango; then |
134 |
+ fonts_enable pango |
135 |
+ fi |
136 |
+ |
137 |
+ # Console rendering backends |
138 |
+ |
139 |
+ renderers_enable bbulk |
140 |
+ |
141 |
+ if use gles2; then |
142 |
+ renderers_enable gltex |
143 |
+ fi |
144 |
+ |
145 |
+ if use pixman; then |
146 |
+ renderers_enable pixman |
147 |
+ fi |
148 |
+ |
149 |
+ # kmscon sets -ffast-math unconditionally |
150 |
+ strip-flags |
151 |
+ |
152 |
+ # xkbcommon not in portage |
153 |
+ econf \ |
154 |
+ $(use_enable static-libs static) \ |
155 |
+ $(use_enable debug) \ |
156 |
+ $(use_enable optimizations) \ |
157 |
+ $(use_enable systemd multi-seat) \ |
158 |
+ --with-video=${VIDEO} \ |
159 |
+ --with-fonts=${FONTS} \ |
160 |
+ --with-renderers=${RENDER} \ |
161 |
+ --with-sessions=dummy,terminal |
162 |
+} |
163 |
+ |
164 |
+src_install() { |
165 |
+ emake DESTDIR="${D}" install |
166 |
+ systemd_dounit "${S}/docs"/kmscon{,vt@}.service |
167 |
+} |
168 |
+ |
169 |
+pkg_postinst() { |
170 |
+ grep -e "^ERASECHAR" "${EROOT}"/etc/login.defs && \ |
171 |
+ ewarn "It is recommended that you comment out the ERASECHAR line in" && \ |
172 |
+ ewarn " /etc/login.defs for proper backspace functionality at the" && \ |
173 |
+ ewarn " kmscon login prompt. For details see:" && \ |
174 |
+ ewarn "https://github.com/dvdhrm/kmscon/issues/69#issuecomment-13827797" |
175 |
+} |