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