1 |
commit: 7850575cba80e1fd6058db4bbca0fac60722a325 |
2 |
Author: Akinori Hattori <hattya <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jun 25 05:06:49 2017 +0000 |
4 |
Commit: Akinori Hattori <hattya <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jun 25 05:06:49 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7850575c |
7 |
|
8 |
app-i18n/skkfep: update patches |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.1 |
11 |
|
12 |
app-i18n/skkfep/files/skkfep-0.87-LDFLAGS.patch | 21 ---- |
13 |
app-i18n/skkfep/files/skkfep-0.87-gentoo.patch | 131 ------------------------ |
14 |
app-i18n/skkfep/files/skkfep-gentoo.patch | 64 ++++++++++++ |
15 |
app-i18n/skkfep/skkfep-0.87-r1.ebuild | 8 +- |
16 |
4 files changed, 68 insertions(+), 156 deletions(-) |
17 |
|
18 |
diff --git a/app-i18n/skkfep/files/skkfep-0.87-LDFLAGS.patch b/app-i18n/skkfep/files/skkfep-0.87-LDFLAGS.patch |
19 |
deleted file mode 100644 |
20 |
index 6532d000770..00000000000 |
21 |
--- a/app-i18n/skkfep/files/skkfep-0.87-LDFLAGS.patch |
22 |
+++ /dev/null |
23 |
@@ -1,21 +0,0 @@ |
24 |
-http://bugs.gentoo.org/334653 |
25 |
- |
26 |
---- protoMakefile |
27 |
-+++ protoMakefile |
28 |
-@@ -13,13 +13,13 @@ |
29 |
- ./jc -`./jc -c romkan-org.c`P romkan-org.c > romkan.c |
30 |
- |
31 |
- jc: jc.o |
32 |
-- $(CC) $(CFLAGS) -o jc jc.o |
33 |
-+ $(CC) $(LDFLAGS) $(CFLAGS) -o jc jc.o |
34 |
- |
35 |
- $(SKKFEP): $(OBJS) $(SKKOBJS) |
36 |
-- $(CC) $(CFLAGS) -o $(SKKFEP) $(OBJS) $(SKKOBJS) $(LIBS) |
37 |
-+ $(CC) $(LDFLAGS) $(CFLAGS) -o $(SKKFEP) $(OBJS) $(SKKOBJS) $(LIBS) |
38 |
- |
39 |
- simpledic: $(SDICOBJS) $(SKKOBJS) |
40 |
-- $(CC) $(CFLAGS) -o simpledic $(SDICOBJS) $(SKKOBJS) $(LIBS) |
41 |
-+ $(CC) $(LDFLAGS) $(CFLAGS) -o simpledic $(SDICOBJS) $(SKKOBJS) $(LIBS) |
42 |
- |
43 |
- clean: |
44 |
- -rm -rf $(OBJS) $(SKKOBJS) $(SDICOBJS) romkan.c |
45 |
|
46 |
diff --git a/app-i18n/skkfep/files/skkfep-0.87-gentoo.patch b/app-i18n/skkfep/files/skkfep-0.87-gentoo.patch |
47 |
deleted file mode 100644 |
48 |
index bd1b507580b..00000000000 |
49 |
--- a/app-i18n/skkfep/files/skkfep-0.87-gentoo.patch |
50 |
+++ /dev/null |
51 |
@@ -1,131 +0,0 @@ |
52 |
-diff -Naur skkfep-0.87.orig/config.h skkfep-0.87/config.h |
53 |
---- skkfep-0.87.orig/config.h 2003-09-03 08:50:18.000000000 +0900 |
54 |
-+++ skkfep-0.87/config.h 2008-11-01 09:53:22.000000000 +0900 |
55 |
-@@ -24,8 +24,8 @@ |
56 |
- /* SKK server */ |
57 |
- |
58 |
- #define USER_DIC_NAME ".skk-jisyo" |
59 |
--/* #define SYSTEM_DIC_NAME "/usr/local/emacs/etc/SKK-JISYO.L" */ |
60 |
-+#define SYSTEM_DIC_NAME "/usr/share/skk/SKK-JISYO.L" |
61 |
- |
62 |
- #define NATIVECODE euc /* EUC Kanji code */ |
63 |
- |
64 |
--#define SKK_SERVER_HOST "ei5nazha" /* SKK server host */ |
65 |
-+#define SKK_SERVER_HOST "localhost" /* SKK server host */ |
66 |
-diff -Naur skkfep-0.87.orig/connserv.c skkfep-0.87/connserv.c |
67 |
---- skkfep-0.87.orig/connserv.c 2003-09-03 08:49:30.000000000 +0900 |
68 |
-+++ skkfep-0.87/connserv.c 2008-11-01 09:59:19.000000000 +0900 |
69 |
-@@ -5,6 +5,7 @@ |
70 |
- */ |
71 |
- #include "config.h" |
72 |
- #include <stdio.h> |
73 |
-+#include <string.h> |
74 |
- #include <sys/types.h> |
75 |
- #include "skklib.h" |
76 |
- |
77 |
-diff -Naur skkfep-0.87.orig/connsh.c skkfep-0.87/connsh.c |
78 |
---- skkfep-0.87.orig/connsh.c 2003-09-03 08:49:30.000000000 +0900 |
79 |
-+++ skkfep-0.87/connsh.c 2008-11-01 10:03:01.000000000 +0900 |
80 |
-@@ -1,5 +1,8 @@ |
81 |
- #include "config.h" |
82 |
- #include <stdio.h> |
83 |
-+#include <stdlib.h> |
84 |
-+#include <string.h> |
85 |
-+#include <unistd.h> |
86 |
- #include <sys/types.h> |
87 |
- #include <sys/file.h> |
88 |
- #include <fcntl.h> |
89 |
-diff -Naur skkfep-0.87.orig/fep.c skkfep-0.87/fep.c |
90 |
---- skkfep-0.87.orig/fep.c 2003-09-03 08:49:31.000000000 +0900 |
91 |
-+++ skkfep-0.87/fep.c 2008-11-01 09:55:15.000000000 +0900 |
92 |
-@@ -1,6 +1,7 @@ |
93 |
- #include "config.h" |
94 |
- #include "fep.h" |
95 |
- #include <stdlib.h> |
96 |
-+#include <string.h> |
97 |
- #include <sys/types.h> |
98 |
- #include <sys/time.h> |
99 |
- #include "kanjicode.h" |
100 |
-diff -Naur skkfep-0.87.orig/jc.c skkfep-0.87/jc.c |
101 |
---- skkfep-0.87.orig/jc.c 2003-09-03 08:49:31.000000000 +0900 |
102 |
-+++ skkfep-0.87/jc.c 2008-11-01 09:54:57.000000000 +0900 |
103 |
-@@ -33,6 +33,8 @@ |
104 |
- */ |
105 |
- |
106 |
- #include <stdio.h> |
107 |
-+#include <stdlib.h> |
108 |
-+#include <string.h> |
109 |
- #include <ctype.h> |
110 |
- |
111 |
- #include "config.h" |
112 |
-diff -Naur skkfep-0.87.orig/kkconv.c skkfep-0.87/kkconv.c |
113 |
---- skkfep-0.87.orig/kkconv.c 2003-09-03 08:49:31.000000000 +0900 |
114 |
-+++ skkfep-0.87/kkconv.c 2008-11-01 09:58:26.000000000 +0900 |
115 |
-@@ -1,6 +1,7 @@ |
116 |
- #include "config.h" |
117 |
- #include "fep.h" |
118 |
- #include "functions.h" |
119 |
-+#include <string.h> |
120 |
- #include <ctype.h> |
121 |
- |
122 |
- #ifdef USE_SERVER |
123 |
-diff -Naur skkfep-0.87.orig/protoMakefile skkfep-0.87/protoMakefile |
124 |
---- skkfep-0.87.orig/protoMakefile 2003-09-03 08:49:31.000000000 +0900 |
125 |
-+++ skkfep-0.87/protoMakefile 2008-11-01 09:51:59.000000000 +0900 |
126 |
-@@ -1,5 +1,5 @@ |
127 |
- CFLAGS=$(SYSINCLUDE) $(SYSDEFINE) $(DEFINE) $(OPTIMIZE) |
128 |
--LIBS =$(SYSLIBS) $(EXTRALIBS) -ltermcap |
129 |
-+LIBS =$(SYSLIBS) $(EXTRALIBS) -lncurses |
130 |
- |
131 |
- OBJS=fep.o connsh.o readwrite.o terms.o stty.o keybind.o romkan.o etc.o\ |
132 |
- kkconv.o keymap.o version.o |
133 |
-diff -Naur skkfep-0.87.orig/readwrite.c skkfep-0.87/readwrite.c |
134 |
---- skkfep-0.87.orig/readwrite.c 2003-09-03 08:49:31.000000000 +0900 |
135 |
-+++ skkfep-0.87/readwrite.c 2008-11-01 09:56:19.000000000 +0900 |
136 |
-@@ -1,5 +1,6 @@ |
137 |
- #include "config.h" |
138 |
- #include "fep.h" |
139 |
-+#include <string.h> |
140 |
- #include <ctype.h> |
141 |
- #include "kanjicode.h" |
142 |
- #include "ctrlcode.h" |
143 |
-diff -Naur skkfep-0.87.orig/romkan-org.c skkfep-0.87/romkan-org.c |
144 |
---- skkfep-0.87.orig/romkan-org.c 2003-09-03 08:49:32.000000000 +0900 |
145 |
-+++ skkfep-0.87/romkan-org.c 2008-11-01 09:58:10.000000000 +0900 |
146 |
-@@ -1,5 +1,6 @@ |
147 |
- #include "config.h" |
148 |
- #include "fep.h" |
149 |
-+#include <string.h> |
150 |
- #include <ctype.h> |
151 |
- #include "functions.h" |
152 |
- |
153 |
-diff -Naur skkfep-0.87.orig/skklib.c skkfep-0.87/skklib.c |
154 |
---- skkfep-0.87.orig/skklib.c 2003-09-03 08:49:32.000000000 +0900 |
155 |
-+++ skkfep-0.87/skklib.c 2008-11-01 09:58:48.000000000 +0900 |
156 |
-@@ -6,6 +6,7 @@ |
157 |
- |
158 |
- #include "config.h" |
159 |
- #include <stdio.h> |
160 |
-+#include <string.h> |
161 |
- #include <sys/types.h> |
162 |
- #include <sys/stat.h> |
163 |
- #include "skklib.h" |
164 |
-diff -Naur skkfep-0.87.orig/stty.c skkfep-0.87/stty.c |
165 |
---- skkfep-0.87.orig/stty.c 2003-09-03 08:49:32.000000000 +0900 |
166 |
-+++ skkfep-0.87/stty.c 2008-11-01 09:57:30.000000000 +0900 |
167 |
-@@ -1,5 +1,6 @@ |
168 |
- #include "config.h" |
169 |
- #include <stdio.h> |
170 |
-+#include <stdlib.h> |
171 |
- #include <signal.h> |
172 |
- #include <fcntl.h> |
173 |
- #include "fep.h" |
174 |
-diff -Naur skkfep-0.87.orig/terms.c skkfep-0.87/terms.c |
175 |
---- skkfep-0.87.orig/terms.c 2003-09-03 08:49:32.000000000 +0900 |
176 |
-+++ skkfep-0.87/terms.c 2008-11-01 09:56:59.000000000 +0900 |
177 |
-@@ -1,4 +1,5 @@ |
178 |
- #include "config.h" |
179 |
-+#include <string.h> |
180 |
- #include "fep.h" |
181 |
- |
182 |
- /*#define SHOW_ESCSEQ /* show escape sequences for debugging */ |
183 |
|
184 |
diff --git a/app-i18n/skkfep/files/skkfep-gentoo.patch b/app-i18n/skkfep/files/skkfep-gentoo.patch |
185 |
new file mode 100644 |
186 |
index 00000000000..c0e1e4172eb |
187 |
--- /dev/null |
188 |
+++ b/app-i18n/skkfep/files/skkfep-gentoo.patch |
189 |
@@ -0,0 +1,64 @@ |
190 |
+--- a/Makefile |
191 |
++++ b/Makefile |
192 |
+@@ -2,16 +2,16 @@ |
193 |
+ # Makefile for skkfep |
194 |
+ # |
195 |
+ all: genMakefile |
196 |
+- make -f genMakefile all |
197 |
++ $(MAKE) -f genMakefile all |
198 |
+ |
199 |
+ skkfep: genMakefile |
200 |
+- make -f genMakefile skkfep |
201 |
++ $(MAKE) -f genMakefile skkfep |
202 |
+ |
203 |
+ simpledic: genMakefile |
204 |
+- make -f genMakefile simpledic |
205 |
++ $(MAKE) -f genMakefile simpledic |
206 |
+ |
207 |
+ clean: genMakefile |
208 |
+- make -f genMakefile clean |
209 |
++ $(MAKE) -f genMakefile clean |
210 |
+ rm -f genMakefile |
211 |
+ |
212 |
+ genMakefile: protoMakefile config.h |
213 |
+--- a/config.h |
214 |
++++ b/config.h |
215 |
+@@ -14,7 +14,7 @@ |
216 |
+ #define DEFAULT_KANAKEY "^j" |
217 |
+ |
218 |
+ /* By Y. Kaneko */ |
219 |
+-/*#define KUTOUTEN /* "."->maru, ","->ten */ |
220 |
++#define KUTOUTEN /* "."->maru, ","->ten */ |
221 |
+ |
222 |
+ #define KANJIBS /* do/don't shuft-out BS code in JIS mode */ |
223 |
+ #define KANJIBS_DEFAULT 0 /* 0 -> shift out / 1 -> don't shift out */ |
224 |
+@@ -28,4 +28,4 @@ |
225 |
+ |
226 |
+ #define NATIVECODE euc /* EUC Kanji code */ |
227 |
+ |
228 |
+-#define SKK_SERVER_HOST "ei5nazha" /* SKK server host */ |
229 |
++#define SKK_SERVER_HOST "localhost" /* SKK server host */ |
230 |
+--- a/configs/linux.h |
231 |
++++ b/configs/linux.h |
232 |
+@@ -10,3 +10,12 @@ |
233 |
+ #define NO_VFORK |
234 |
+ |
235 |
+ #define HAVE_SETREUID |
236 |
++#define HAVE_BSD_OPENPTY |
237 |
++ |
238 |
++#include <stdlib.h> |
239 |
++#include <string.h> |
240 |
++#include <unistd.h> |
241 |
++ |
242 |
++#if makefile_parameter |
243 |
++SYSLIBS=-lutil |
244 |
++#endif |
245 |
+--- a/protoMakefile |
246 |
++++ b/protoMakefile |
247 |
+@@ -1,5 +1,5 @@ |
248 |
+ CFLAGS=$(SYSINCLUDE) $(SYSDEFINE) $(DEFINE) $(OPTIMIZE) |
249 |
+-LIBS =$(SYSLIBS) $(EXTRALIBS) -ltermcap |
250 |
++LIBS =$(SYSLIBS) $(EXTRALIBS) $(LDFLAGS) -lncurses |
251 |
+ |
252 |
+ OBJS=fep.o connsh.o readwrite.o terms.o stty.o keybind.o romkan.o etc.o\ |
253 |
+ kkconv.o keymap.o version.o |
254 |
|
255 |
diff --git a/app-i18n/skkfep/skkfep-0.87-r1.ebuild b/app-i18n/skkfep/skkfep-0.87-r1.ebuild |
256 |
index 6c67c4f1c2d..20ba6931e3e 100644 |
257 |
--- a/app-i18n/skkfep/skkfep-0.87-r1.ebuild |
258 |
+++ b/app-i18n/skkfep/skkfep-0.87-r1.ebuild |
259 |
@@ -1,4 +1,4 @@ |
260 |
-# Copyright 1999-2013 Gentoo Foundation |
261 |
+# Copyright 1999-2017 Gentoo Foundation |
262 |
# Distributed under the terms of the GNU General Public License v2 |
263 |
|
264 |
EAPI=4 |
265 |
@@ -21,9 +21,9 @@ RDEPEND="${RDEPEND} |
266 |
app-i18n/skk-jisyo" |
267 |
|
268 |
src_prepare() { |
269 |
- epatch \ |
270 |
- "${FILESDIR}"/${P}-gentoo.patch \ |
271 |
- "${FILESDIR}"/${P}-LDFLAGS.patch |
272 |
+ sed -i "/SYSTEM_DIC_NAME/a#define SYSTEM_DIC_NAME \"${EPREFIX}/usr/share/skk/SKK-JISYO.L\"" config.h |
273 |
+ |
274 |
+ epatch "${FILESDIR}"/${PN}-gentoo.patch |
275 |
} |
276 |
|
277 |
src_compile() { |