1 |
commit: f732d20204713d7d89c230263d48ec691a34fe51 |
2 |
Author: Yixun Lan <dlan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 26 15:13:57 2016 +0000 |
4 |
Commit: Yixun Lan <dlan <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 26 15:14:28 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f732d202 |
7 |
|
8 |
app-i18n/fbterm: fix gcc6 build err |
9 |
|
10 |
thanks Peter Levine for providing patches |
11 |
|
12 |
Gentoo-Bug: 594308 |
13 |
|
14 |
Package-Manager: portage-2.3.1 |
15 |
|
16 |
app-i18n/fbterm/fbterm-1.7-r2.ebuild | 61 ++++++++++++++++++++++++++ |
17 |
app-i18n/fbterm/files/fbterm-1.7-gcc6.patch | 68 +++++++++++++++++++++++++++++ |
18 |
2 files changed, 129 insertions(+) |
19 |
|
20 |
diff --git a/app-i18n/fbterm/fbterm-1.7-r2.ebuild b/app-i18n/fbterm/fbterm-1.7-r2.ebuild |
21 |
new file mode 100644 |
22 |
index 00000000..15f6b83 |
23 |
--- /dev/null |
24 |
+++ b/app-i18n/fbterm/fbterm-1.7-r2.ebuild |
25 |
@@ -0,0 +1,61 @@ |
26 |
+# Copyright 1999-2016 Gentoo Foundation |
27 |
+# Distributed under the terms of the GNU General Public License v2 |
28 |
+# $Id$ |
29 |
+ |
30 |
+EAPI="5" |
31 |
+inherit autotools-utils |
32 |
+ |
33 |
+DESCRIPTION="Fast terminal emulator for the Linux framebuffer" |
34 |
+HOMEPAGE="https://fbterm.googlecode.com/" |
35 |
+SRC_URI="https://fbterm.googlecode.com/files/${P}.0.tar.gz" |
36 |
+ |
37 |
+LICENSE="GPL-2" |
38 |
+SLOT="0" |
39 |
+KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
40 |
+IUSE="caps gpm video_cards_vesa" |
41 |
+ |
42 |
+RDEPEND="caps? ( sys-libs/libcap ) |
43 |
+ gpm? ( sys-libs/gpm ) |
44 |
+ video_cards_vesa? ( dev-libs/libx86 ) |
45 |
+ media-libs/fontconfig |
46 |
+ media-libs/freetype:2" |
47 |
+DEPEND="${RDEPEND} |
48 |
+ sys-libs/ncurses |
49 |
+ virtual/pkgconfig" |
50 |
+ |
51 |
+AUTOTOOLS_IN_SOURCE_BUILD=1 |
52 |
+ |
53 |
+DOCS=( AUTHORS NEWS README ) |
54 |
+ |
55 |
+PATCHES=( |
56 |
+ "${FILESDIR}"/${P}-gcc6.patch |
57 |
+) |
58 |
+ |
59 |
+src_configure() { |
60 |
+ local myeconfargs=( |
61 |
+ $(use_enable gpm) |
62 |
+ $(use_enable video_cards_vesa vesa) |
63 |
+ ) |
64 |
+ autotools-utils_src_configure |
65 |
+} |
66 |
+ |
67 |
+src_install() { |
68 |
+ autotools-utils_src_install |
69 |
+ $(type -P tic) -o "${ED}/usr/share/terminfo/" \ |
70 |
+ "${S}"/terminfo/fbterm || die "Failed to generate terminfo database" |
71 |
+ if use caps; then |
72 |
+ setcap "cap_sys_tty_config+ep" "${ED}"/usr/bin/fbterm |
73 |
+ else |
74 |
+ fperms u+s /usr/bin/fbterm |
75 |
+ fi |
76 |
+} |
77 |
+ |
78 |
+pkg_postinst() { |
79 |
+ einfo |
80 |
+ einfo " ${PN} won't work with vga16fb. You have to use other native" |
81 |
+ einfo " framebuffer drivers or vesa driver." |
82 |
+ einfo " See ${EPREFIX}/usr/share/doc/${P}/README for details." |
83 |
+ einfo " To use ${PN}, ensure you are in video group." |
84 |
+ einfo " To input CJK merge app-i18n/fbterm-ucimf" |
85 |
+ einfo |
86 |
+} |
87 |
|
88 |
diff --git a/app-i18n/fbterm/files/fbterm-1.7-gcc6.patch b/app-i18n/fbterm/files/fbterm-1.7-gcc6.patch |
89 |
new file mode 100644 |
90 |
index 00000000..26d39f0 |
91 |
--- /dev/null |
92 |
+++ b/app-i18n/fbterm/files/fbterm-1.7-gcc6.patch |
93 |
@@ -0,0 +1,68 @@ |
94 |
+--- fbterm-1.7/src/lib/vterm_states.cpp.old 2016-09-24 00:44:29.981247206 -0400 |
95 |
++++ fbterm-1.7/src/lib/vterm_states.cpp 2016-09-24 00:48:40.463777924 -0400 |
96 |
+@@ -39,14 +39,14 @@ |
97 |
+ { 0x1B, 0, ESesc }, |
98 |
+ { 0x7F, 0, ESkeep }, |
99 |
+ { 0x9B, 0, ESsquare }, |
100 |
+- { -1} |
101 |
++ { (u16) -1} |
102 |
+ }; |
103 |
+ |
104 |
+ const VTerm::Sequence VTerm::escape_sequences[] = { |
105 |
+ { 0, 0, ESnormal }, |
106 |
+ |
107 |
+ // ESnormal |
108 |
+- { -1 }, |
109 |
++ { (u16) -1 }, |
110 |
+ |
111 |
+ // ESesc |
112 |
+ { '[', &VTerm::clear_param, ESsquare }, |
113 |
+@@ -65,7 +65,7 @@ |
114 |
+ { '8', &VTerm::restore_cursor, ESnormal }, |
115 |
+ { '>', &VTerm::keypad_numeric, ESnormal }, |
116 |
+ { '=', &VTerm::keypad_application, ESnormal }, |
117 |
+- { -1 }, |
118 |
++ { (u16) -1 }, |
119 |
+ |
120 |
+ // ESsquare |
121 |
+ { '[', 0, ESfunckey }, |
122 |
+@@ -104,7 +104,7 @@ |
123 |
+ { '`', &VTerm::cursor_position_col, ESnormal }, |
124 |
+ { ']', &VTerm::linux_specific, ESnormal }, |
125 |
+ { '}', &VTerm::fbterm_specific, ESnormal }, |
126 |
+- { -1 }, |
127 |
++ { (u16) -1 }, |
128 |
+ |
129 |
+ // ESnonstd |
130 |
+ { '0' | ADDSAME(9), &VTerm::set_palette, ESkeep }, |
131 |
+@@ -112,25 +112,25 @@ |
132 |
+ { 'a' | ADDSAME(5), &VTerm::set_palette, ESkeep }, |
133 |
+ { 'P', &VTerm::begin_set_palette, ESkeep }, |
134 |
+ { 'R', &VTerm::reset_palette, ESnormal }, |
135 |
+- { -1 }, |
136 |
++ { (u16) -1 }, |
137 |
+ |
138 |
+ // ESpercent |
139 |
+ { '@', &VTerm::clear_utf8, ESnormal }, |
140 |
+ { 'G', &VTerm::set_utf8, ESnormal }, |
141 |
+ { '8', &VTerm::set_utf8, ESnormal }, |
142 |
+- { -1 }, |
143 |
++ { (u16) -1 }, |
144 |
+ |
145 |
+ // EScharset |
146 |
+ { '0', &VTerm::set_charset, ESnormal }, |
147 |
+ { 'B', &VTerm::set_charset, ESnormal }, |
148 |
+ { 'U', &VTerm::set_charset, ESnormal }, |
149 |
+ { 'K', &VTerm::set_charset, ESnormal }, |
150 |
+- { -1 }, |
151 |
++ { (u16) -1 }, |
152 |
+ |
153 |
+ // EShash |
154 |
+ { '8', &VTerm::screen_align, ESnormal }, |
155 |
+- { -1 }, |
156 |
++ { (u16) -1 }, |
157 |
+ |
158 |
+ // ESfunckey |
159 |
+- { -1 }, |
160 |
++ { (u16) -1 }, |
161 |
+ }; |