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