Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-i18n/canfep/, profiles/, app-i18n/canfep/files/
Date: Sat, 17 Jul 2021 11:26:48
Message-Id: 1626521125.2a86e32839d7f51ebbe34fa571891f5fbd865fe2.soap@gentoo
1 commit: 2a86e32839d7f51ebbe34fa571891f5fbd865fe2
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jul 17 11:25:25 2021 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 17 11:25:25 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a86e328
7
8 app-i18n/canfep: treeclean
9
10 Closes: https://bugs.gentoo.org/796878
11 Signed-off-by: David Seifert <soap <AT> gentoo.org>
12
13 app-i18n/canfep/Manifest | 2 -
14 app-i18n/canfep/canfep-1.0-r1.ebuild | 46 -----
15 app-i18n/canfep/files/canfep-posix-pty.patch | 67 -------
16 app-i18n/canfep/files/canfep-termcap.patch | 266 ---------------------------
17 app-i18n/canfep/metadata.xml | 8 -
18 profiles/package.mask | 1 -
19 6 files changed, 390 deletions(-)
20
21 diff --git a/app-i18n/canfep/Manifest b/app-i18n/canfep/Manifest
22 deleted file mode 100644
23 index 79bb1548a94..00000000000
24 --- a/app-i18n/canfep/Manifest
25 +++ /dev/null
26 @@ -1,2 +0,0 @@
27 -DIST canfep-1.0.tar.gz 8067 BLAKE2B 1a6e8af357d2b7aaccf442b0f8bab577ed05a5a0fdf2fb4c189105c2c41f739c2e559e740584bf393fcc52d3f3bd0bb6216e06e2b685f62f7dded9d576e95bed SHA512 0fd7c8ca56282fa537b76fe33f46e03d4f0f4727528ccad95cd4726888372da9158fc8bed2cdc67d645defb479040cd4a4d0999f69d38fd8b4080f7ece4e67d6
28 -DIST canfep_utf8.diff 7152 BLAKE2B e3848d5119b01d3296c93b5ed8495c6f93ecb1ef39f168d6e1685636055295b8f7277c6b680cadb648fe6847c92e3b038a9b5a9a58f23fe3490dcbe675bcc96f SHA512 32d946b8b78efd3b95736738497fe46a7d0e2383f2b665c8af79270d7b0d1404ca051e63fc67375f0b953b8f604475c8d6b2d683089bc97b098fa9524b89208c
29
30 diff --git a/app-i18n/canfep/canfep-1.0-r1.ebuild b/app-i18n/canfep/canfep-1.0-r1.ebuild
31 deleted file mode 100644
32 index 4b253181883..00000000000
33 --- a/app-i18n/canfep/canfep-1.0-r1.ebuild
34 +++ /dev/null
35 @@ -1,46 +0,0 @@
36 -# Copyright 1999-2020 Gentoo Authors
37 -# Distributed under the terms of the GNU General Public License v2
38 -
39 -EAPI="7"
40 -
41 -inherit toolchain-funcs
42 -
43 -DESCRIPTION="Canna Japanese kana-kanji frontend processor on console"
44 -#HOMEPAGE="http://www.geocities.co.jp/SiliconValley-Bay/7584/canfep/"
45 -HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
46 -SRC_URI="mirror://gentoo/${P}.tar.gz
47 - unicode? ( http://hp.vector.co.jp/authors/VA020411/patches/${PN}_utf8.diff )"
48 -
49 -LICENSE="canfep"
50 -SLOT="0"
51 -KEYWORDS="~alpha amd64 ppc ~sparc x86"
52 -IUSE="unicode"
53 -
54 -RDEPEND="app-i18n/canna
55 - sys-libs/ncurses:="
56 -DEPEND="${RDEPEND}"
57 -BDEPEND="virtual/pkgconfig"
58 -
59 -PATCHES=(
60 - "${FILESDIR}"/${PN}-posix-pty.patch
61 - "${FILESDIR}"/${PN}-termcap.patch
62 -)
63 -
64 -src_prepare() {
65 - use unicode && eapply "${DISTDIR}"/${PN}_utf8.diff
66 - sed -i 's/$(CFLAGS)/$(CFLAGS) $(LDFLAGS)/' Makefile
67 -
68 - default
69 -}
70 -
71 -src_compile() {
72 - emake \
73 - CC="$(tc-getCXX)" \
74 - CFLAGS="${CXXFLAGS}" \
75 - LIBS="-lcanna $($(tc-getPKG_CONFIG) --libs ncurses)"
76 -}
77 -
78 -src_install() {
79 - dobin ${PN}
80 - dodoc 00{changes,readme}
81 -}
82
83 diff --git a/app-i18n/canfep/files/canfep-posix-pty.patch b/app-i18n/canfep/files/canfep-posix-pty.patch
84 deleted file mode 100644
85 index caa451232ef..00000000000
86 --- a/app-i18n/canfep/files/canfep-posix-pty.patch
87 +++ /dev/null
88 @@ -1,67 +0,0 @@
89 -https://bugs.gentoo.org/show_bug.cgi?id=212709
90 -
91 -Author: OKUMURA N. Shin-ya <oku.ns@×××××.com>
92 -
93 ---- a/pty.C
94 -+++ b/pty.C
95 -@@ -257,6 +257,23 @@
96 - }
97 - }
98 -
99 -+#if defined(_POSIX_C_SOURCE)
100 -+ // BSD pty が開けないので、POSIX の方法を試す
101 -+ if ((master = posix_openpt(O_RDWR)) >= 0) {
102 -+ if (grantpt(master) == 0 && unlockpt(master) == 0) {
103 -+ // マスタデバイス名は固定
104 -+ strcpy(line, "/dev/ptmx");
105 -+ tcgetattr(0, &tt);
106 -+ tt.c_iflag &= ~ISTRIP;
107 -+ ioctl(0, TIOCGWINSZ, (char*) &win);
108 -+ return;
109 -+ }
110 -+ close(master);
111 -+ } else {
112 -+ perror("/dev/ptmx");
113 -+ }
114 -+#endif // _POSIX_C_SOURCE
115 -+
116 - printf("Out of pty's\n");
117 - fail();
118 - }
119 -@@ -265,12 +282,36 @@
120 - void
121 - Pty::getslave()
122 - {
123 -+#if defined(_POSIX_C_SOURCE)
124 -+ // マスタデバイスが POSIX 方式の場合
125 -+ if (strcmp(line, "/dev/ptmx") == 0) {
126 -+ char *slave_devname = ptsname(master);
127 -+ if (slave_devname == NULL) {
128 -+ perror("ptsname");
129 -+ fail();
130 -+ }
131 -+ slave = open(slave_devname, O_RDWR);
132 -+ if (slave < 0) {
133 -+ perror(slave_devname);
134 -+ fail();
135 -+ }
136 -+ strcpy(line, slave_devname);
137 -+ } else {
138 -+ line[strlen("/dev/")] = 't';
139 -+ slave = open(line, O_RDWR);
140 -+ if (slave < 0) {
141 -+ perror(line);
142 -+ fail();
143 -+ }
144 -+ }
145 -+#else // ! _POSIX_C_SOURCE
146 - line[strlen("/dev/")] = 't';
147 - slave = open(line, O_RDWR);
148 - if (slave < 0) {
149 - perror(line);
150 - fail();
151 - }
152 -+#endif // _POSIX_C_SOURCE
153 - tcsetattr(slave, TCSAFLUSH, &tt);
154 - if (!hs)
155 - win.ws_row--;
156
157 diff --git a/app-i18n/canfep/files/canfep-termcap.patch b/app-i18n/canfep/files/canfep-termcap.patch
158 deleted file mode 100644
159 index afd215b07e7..00000000000
160 --- a/app-i18n/canfep/files/canfep-termcap.patch
161 +++ /dev/null
162 @@ -1,266 +0,0 @@
163 ---- a/pty.C
164 -+++ b/pty.C
165 -@@ -4,9 +4,18 @@
166 - int Pty::child = 0;
167 - struct termios Pty::tt;
168 - int Pty::wfd = 0;
169 -+char Pty::buf[] = "";
170 -+char Pty::funcstr[] = "";
171 - int Pty::hs = 0;
172 -+char* Pty::so = 0;
173 -+char* Pty::se = 0;
174 -+char* Pty::us = 0;
175 -+char* Pty::ue = 0;
176 -+char* Pty::sc = 0;
177 -+char* Pty::rc = 0;
178 - char* Pty::ce = 0;
179 - char* Pty::ts = 0;
180 -+char* Pty::fs = 0;
181 - char* Pty::ds = 0;
182 - char Pty::endstr[] = "";
183 - char Pty::endmsg[] = "";
184 -@@ -14,88 +23,7 @@
185 - // コンストラクタだよん
186 - Pty::Pty(int ac, char** av, char* amsg, char* emsg)
187 - {
188 -- // 環境変数 TERM のエントリを取得
189 -- char buff[BUFSIZ];
190 -- char* term = getenv("TERM");
191 -- if (!term)
192 -- term = "vt100";
193 -- int ret = tgetent(buff, term);
194 -- if (ret != 1) {
195 -- tgetent(buff, "vt100");
196 -- putenv("TERM=vt100");
197 -- }
198 --
199 -- // termcap から装飾用のエントリを取ってくる
200 -- char funcstr[BUFSIZ];
201 -- char* pt = funcstr;
202 --
203 -- // スタンドアウト (反転)
204 -- so = tgetstr("so", &pt);
205 -- adjstr(so);
206 -- se = tgetstr("se", &pt);
207 -- adjstr(se);
208 --
209 -- // アンダーライン (下線)
210 -- us = tgetstr("us", &pt);
211 -- adjstr(us);
212 -- ue = tgetstr("ue", &pt);
213 -- adjstr(ue);
214 --
215 -- // カーソル位置の保存,保存した位置への復帰
216 -- sc = tgetstr("sc", &pt);
217 -- adjstr(sc);
218 -- rc = tgetstr("rc", &pt);
219 -- adjstr(rc);
220 --
221 -- // カーソル位置から行の最後までを削除する
222 -- ce = tgetstr("ce", &pt);
223 -- adjstr(ce);
224 --
225 -- // ステータスラインを持っているかどうか
226 -- hs = tgetflag("hs");
227 --
228 -- // kon と jfbterm ではステータスラインを使わない
229 -- if (strcmp(term, "kon") == 0)
230 -- hs = 0;
231 -- if (strcmp(term, "jfbterm") == 0)
232 -- hs = 0;
233 --
234 -- // ステータスラインへ移動,戻る
235 -- if (hs) {
236 -- ts = tgoto(tgetstr("ts", &pt), 0, 0);
237 -- adjstr(ts);
238 -- fs = tgetstr("fs", &pt);
239 -- adjstr(fs);
240 -- ds = tgetstr("ds", &pt);
241 -- adjstr(ds);
242 -- if (ds) {
243 -- strcat(endstr, ds);
244 -- strcat(endstr, ce);
245 -- }
246 -- }
247 -- else {
248 -- char* cs = tgoto(tgetstr("cs", &pt), tgetnum("li") - 2, 0);
249 -- adjstr(cs);
250 -- if (cs) {
251 -- write(1, ce, strlen(ce));
252 -- write(1, cs, strlen(cs));
253 -- }
254 -- char* cl = tgetstr("cl", &pt);
255 -- adjstr(cl);
256 -- if (cl) {
257 -- write(1, cl, strlen(cl));
258 -- strcat(endstr, cl);
259 -- }
260 -- ds = tgoto(tgetstr("cs", &pt), tgetnum("li") - 1, 0);
261 -- adjstr(ds);
262 -- if (ds) {
263 -- strcat(endstr, ds);
264 -- strcat(endstr, ce);
265 -- }
266 -- ts = tgoto(tgetstr("cm", &pt), 0, tgetnum("li") - 1);
267 -- adjstr(ts);
268 -- fs = rc;
269 -- }
270 -+ gettermcap();
271 -
272 - // 開始と終了のメッセージ
273 - if (amsg && ac == 1)
274 -@@ -209,21 +137,75 @@
275 - done();
276 - }
277 -
278 --// termcap エントリからパディングを削除する
279 - void
280 --Pty::adjstr(char* str)
281 -+Pty::gettermcap()
282 - {
283 -- char* sp = strdup(str);
284 -- char* p = sp;
285 -- while (*p != '\0') {
286 -- if (strncmp(p, "$<", 2) == 0) {
287 -- while (*p != '>')
288 -- p++;
289 -- *p = '\0';
290 -+ // 環境変数 TERM のエントリを取得
291 -+ char* term = getenv("TERM");
292 -+ if (!term)
293 -+ term = "vt100";
294 -+ int ret = tgetent(buf, term);
295 -+ if (ret != 1) {
296 -+ tgetent(buf, "vt100");
297 -+ putenv("TERM=vt100");
298 -+ }
299 -+
300 -+ // termcap から装飾用のエントリを取ってくる
301 -+ char* pt = funcstr;
302 -+
303 -+ // スタンドアウト (反転)
304 -+ so = tgetstr("so", &pt);
305 -+ se = tgetstr("se", &pt);
306 -+
307 -+ // アンダーライン (下線)
308 -+ us = tgetstr("us", &pt);
309 -+ ue = tgetstr("ue", &pt);
310 -+
311 -+ // カーソル位置の保存,保存した位置への復帰
312 -+ sc = tgetstr("sc", &pt);
313 -+ rc = tgetstr("rc", &pt);
314 -+
315 -+ // カーソル位置から行の最後までを削除する
316 -+ ce = tgetstr("ce", &pt);
317 -+
318 -+ // ステータスラインを持っているかどうか
319 -+ hs = tgetflag("hs");
320 -+
321 -+ // kon と jfbterm ではステータスラインを使わない
322 -+ if (strcmp(term, "kon") == 0)
323 -+ hs = 0;
324 -+ if (strcmp(term, "jfbterm") == 0)
325 -+ hs = 0;
326 -+
327 -+ // ステータスラインへ移動,戻る
328 -+ if (hs) {
329 -+ ts = tgoto(tgetstr("ts", &pt), 0, 0);
330 -+ fs = tgetstr("fs", &pt);
331 -+ ds = tgetstr("ds", &pt);
332 -+ if (ds) {
333 -+ strcat(endstr, ds);
334 -+ strcat(endstr, ce);
335 - }
336 -- *str++ = *p++;
337 - }
338 -- free(sp);
339 -+ else {
340 -+ char* cs = tgoto(tgetstr("cs", &pt), tgetnum("li") - 2, 0);
341 -+ if (cs) {
342 -+ write(1, ce, strlen(ce));
343 -+ write(1, cs, strlen(cs));
344 -+ }
345 -+ char* cl = tgetstr("cl", &pt);
346 -+ if (cl) {
347 -+ write(1, cl, strlen(cl));
348 -+ strcat(endstr, cl);
349 -+ }
350 -+ ds = tgoto(tgetstr("cs", &pt), tgetnum("li") - 1, 0);
351 -+ if (ds) {
352 -+ strcat(endstr, ds);
353 -+ strcat(endstr, ce);
354 -+ }
355 -+ ts = tgoto(tgetstr("cm", &pt), 0, tgetnum("li") - 1);
356 -+ fs = rc;
357 -+ }
358 - }
359 -
360 - // マスタデバイスを取る
361 -@@ -327,34 +309,7 @@
362 - {
363 - signal(SIGWINCH, SIG_IGN);
364 -
365 -- // ステータスラインが使えない場合は cs/ds/ts を取り直す
366 -- if (!hs) {
367 -- char buff[BUFSIZ];
368 -- char* term = getenv("TERM");
369 -- tgetent(buff, term);
370 -- char funcstr[BUFSIZ];
371 -- char* pt = funcstr;
372 -- char* cs = tgoto(tgetstr("cs", &pt), tgetnum("li") - 2, 0);
373 -- adjstr(cs);
374 -- if (cs) {
375 -- write(1, ce, strlen(ce));
376 -- write(1, cs, strlen(cs));
377 -- }
378 -- char* cl = tgetstr("cl", &pt);
379 -- adjstr(cl);
380 -- if (cl) {
381 -- write(1, cl, strlen(cl));
382 -- strcpy(endstr, cl);
383 -- }
384 -- ds = tgoto(tgetstr("cs", &pt), tgetnum("li") - 1, 0);
385 -- adjstr(ds);
386 -- if (ds) {
387 -- strcat(endstr, ds);
388 -- strcat(endstr, ce);
389 -- }
390 -- ts = tgoto(tgetstr("cm", &pt), 0, tgetnum("li") - 1);
391 -- adjstr(ts);
392 -- }
393 -+ gettermcap();
394 -
395 - // ウィンドウのサイズを設定し直す (stty -a の 行数/桁数 等)
396 - struct winsize win;
397 ---- a/pty.H
398 -+++ b/pty.H
399 -@@ -50,18 +50,21 @@
400 - int rfd;
401 - static int wfd;
402 - private:
403 -- static void adjstr(char* str);
404 -+ static char buf[BUFSIZ];
405 -+ static char funcstr[BUFSIZ];
406 -+private:
407 -+ static void gettermcap();
408 - protected:
409 - static int hs;
410 -- char* so;
411 -- char* se;
412 -- char* us;
413 -- char* ue;
414 -- char* sc;
415 -- char* rc;
416 -+ static char* so;
417 -+ static char* se;
418 -+ static char* us;
419 -+ static char* ue;
420 -+ static char* sc;
421 -+ static char* rc;
422 - static char* ce;
423 - static char* ts;
424 -- char* fs;
425 -+ static char* fs;
426 - static char* ds;
427 - private:
428 - static void finish();
429
430 diff --git a/app-i18n/canfep/metadata.xml b/app-i18n/canfep/metadata.xml
431 deleted file mode 100644
432 index e1a49f49888..00000000000
433 --- a/app-i18n/canfep/metadata.xml
434 +++ /dev/null
435 @@ -1,8 +0,0 @@
436 -<?xml version="1.0" encoding="UTF-8"?>
437 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
438 -<pkgmetadata>
439 - <maintainer type="project">
440 - <email>cjk@g.o</email>
441 - <name>Cjk</name>
442 - </maintainer>
443 -</pkgmetadata>
444
445 diff --git a/profiles/package.mask b/profiles/package.mask
446 index 4c5dfc34753..a45772f8145 100644
447 --- a/profiles/package.mask
448 +++ b/profiles/package.mask
449 @@ -306,7 +306,6 @@ app-dicts/canna-cannadic
450 app-dicts/canna-2ch
451 app-emacs/yc
452 app-i18n/canna
453 -app-i18n/canfep
454
455 # Volkmar W. Pogatzki <gentoo@××××××××.net> (2021-06-20)
456 # no consumer, removal in 30 days