summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkinori Hattori <hattya@gentoo.org>2017-06-25 14:06:49 +0900
committerAkinori Hattori <hattya@gentoo.org>2017-06-25 14:06:49 +0900
commit7850575cba80e1fd6058db4bbca0fac60722a325 (patch)
treeedefe3a18bb5adde112720c34f014965d1ff4322 /app-i18n/skkfep
parentmedia-radio/fldigi: Fix wrong USE deps (bug #622582 and 622616). Thanks Toralf. (diff)
downloadgentoo-7850575cba80e1fd6058db4bbca0fac60722a325.tar.gz
gentoo-7850575cba80e1fd6058db4bbca0fac60722a325.tar.bz2
gentoo-7850575cba80e1fd6058db4bbca0fac60722a325.zip
app-i18n/skkfep: update patches
Package-Manager: Portage-2.3.6, Repoman-2.3.1
Diffstat (limited to 'app-i18n/skkfep')
-rw-r--r--app-i18n/skkfep/files/skkfep-0.87-LDFLAGS.patch21
-rw-r--r--app-i18n/skkfep/files/skkfep-0.87-gentoo.patch131
-rw-r--r--app-i18n/skkfep/files/skkfep-gentoo.patch64
-rw-r--r--app-i18n/skkfep/skkfep-0.87-r1.ebuild8
4 files changed, 68 insertions, 156 deletions
diff --git a/app-i18n/skkfep/files/skkfep-0.87-LDFLAGS.patch b/app-i18n/skkfep/files/skkfep-0.87-LDFLAGS.patch
deleted file mode 100644
index 6532d000770e..000000000000
--- a/app-i18n/skkfep/files/skkfep-0.87-LDFLAGS.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-http://bugs.gentoo.org/334653
-
---- protoMakefile
-+++ protoMakefile
-@@ -13,13 +13,13 @@
- ./jc -`./jc -c romkan-org.c`P romkan-org.c > romkan.c
-
- jc: jc.o
-- $(CC) $(CFLAGS) -o jc jc.o
-+ $(CC) $(LDFLAGS) $(CFLAGS) -o jc jc.o
-
- $(SKKFEP): $(OBJS) $(SKKOBJS)
-- $(CC) $(CFLAGS) -o $(SKKFEP) $(OBJS) $(SKKOBJS) $(LIBS)
-+ $(CC) $(LDFLAGS) $(CFLAGS) -o $(SKKFEP) $(OBJS) $(SKKOBJS) $(LIBS)
-
- simpledic: $(SDICOBJS) $(SKKOBJS)
-- $(CC) $(CFLAGS) -o simpledic $(SDICOBJS) $(SKKOBJS) $(LIBS)
-+ $(CC) $(LDFLAGS) $(CFLAGS) -o simpledic $(SDICOBJS) $(SKKOBJS) $(LIBS)
-
- clean:
- -rm -rf $(OBJS) $(SKKOBJS) $(SDICOBJS) romkan.c
diff --git a/app-i18n/skkfep/files/skkfep-0.87-gentoo.patch b/app-i18n/skkfep/files/skkfep-0.87-gentoo.patch
deleted file mode 100644
index bd1b507580bc..000000000000
--- a/app-i18n/skkfep/files/skkfep-0.87-gentoo.patch
+++ /dev/null
@@ -1,131 +0,0 @@
-diff -Naur skkfep-0.87.orig/config.h skkfep-0.87/config.h
---- skkfep-0.87.orig/config.h 2003-09-03 08:50:18.000000000 +0900
-+++ skkfep-0.87/config.h 2008-11-01 09:53:22.000000000 +0900
-@@ -24,8 +24,8 @@
- /* SKK server */
-
- #define USER_DIC_NAME ".skk-jisyo"
--/* #define SYSTEM_DIC_NAME "/usr/local/emacs/etc/SKK-JISYO.L" */
-+#define SYSTEM_DIC_NAME "/usr/share/skk/SKK-JISYO.L"
-
- #define NATIVECODE euc /* EUC Kanji code */
-
--#define SKK_SERVER_HOST "ei5nazha" /* SKK server host */
-+#define SKK_SERVER_HOST "localhost" /* SKK server host */
-diff -Naur skkfep-0.87.orig/connserv.c skkfep-0.87/connserv.c
---- skkfep-0.87.orig/connserv.c 2003-09-03 08:49:30.000000000 +0900
-+++ skkfep-0.87/connserv.c 2008-11-01 09:59:19.000000000 +0900
-@@ -5,6 +5,7 @@
- */
- #include "config.h"
- #include <stdio.h>
-+#include <string.h>
- #include <sys/types.h>
- #include "skklib.h"
-
-diff -Naur skkfep-0.87.orig/connsh.c skkfep-0.87/connsh.c
---- skkfep-0.87.orig/connsh.c 2003-09-03 08:49:30.000000000 +0900
-+++ skkfep-0.87/connsh.c 2008-11-01 10:03:01.000000000 +0900
-@@ -1,5 +1,8 @@
- #include "config.h"
- #include <stdio.h>
-+#include <stdlib.h>
-+#include <string.h>
-+#include <unistd.h>
- #include <sys/types.h>
- #include <sys/file.h>
- #include <fcntl.h>
-diff -Naur skkfep-0.87.orig/fep.c skkfep-0.87/fep.c
---- skkfep-0.87.orig/fep.c 2003-09-03 08:49:31.000000000 +0900
-+++ skkfep-0.87/fep.c 2008-11-01 09:55:15.000000000 +0900
-@@ -1,6 +1,7 @@
- #include "config.h"
- #include "fep.h"
- #include <stdlib.h>
-+#include <string.h>
- #include <sys/types.h>
- #include <sys/time.h>
- #include "kanjicode.h"
-diff -Naur skkfep-0.87.orig/jc.c skkfep-0.87/jc.c
---- skkfep-0.87.orig/jc.c 2003-09-03 08:49:31.000000000 +0900
-+++ skkfep-0.87/jc.c 2008-11-01 09:54:57.000000000 +0900
-@@ -33,6 +33,8 @@
- */
-
- #include <stdio.h>
-+#include <stdlib.h>
-+#include <string.h>
- #include <ctype.h>
-
- #include "config.h"
-diff -Naur skkfep-0.87.orig/kkconv.c skkfep-0.87/kkconv.c
---- skkfep-0.87.orig/kkconv.c 2003-09-03 08:49:31.000000000 +0900
-+++ skkfep-0.87/kkconv.c 2008-11-01 09:58:26.000000000 +0900
-@@ -1,6 +1,7 @@
- #include "config.h"
- #include "fep.h"
- #include "functions.h"
-+#include <string.h>
- #include <ctype.h>
-
- #ifdef USE_SERVER
-diff -Naur skkfep-0.87.orig/protoMakefile skkfep-0.87/protoMakefile
---- skkfep-0.87.orig/protoMakefile 2003-09-03 08:49:31.000000000 +0900
-+++ skkfep-0.87/protoMakefile 2008-11-01 09:51:59.000000000 +0900
-@@ -1,5 +1,5 @@
- CFLAGS=$(SYSINCLUDE) $(SYSDEFINE) $(DEFINE) $(OPTIMIZE)
--LIBS =$(SYSLIBS) $(EXTRALIBS) -ltermcap
-+LIBS =$(SYSLIBS) $(EXTRALIBS) -lncurses
-
- OBJS=fep.o connsh.o readwrite.o terms.o stty.o keybind.o romkan.o etc.o\
- kkconv.o keymap.o version.o
-diff -Naur skkfep-0.87.orig/readwrite.c skkfep-0.87/readwrite.c
---- skkfep-0.87.orig/readwrite.c 2003-09-03 08:49:31.000000000 +0900
-+++ skkfep-0.87/readwrite.c 2008-11-01 09:56:19.000000000 +0900
-@@ -1,5 +1,6 @@
- #include "config.h"
- #include "fep.h"
-+#include <string.h>
- #include <ctype.h>
- #include "kanjicode.h"
- #include "ctrlcode.h"
-diff -Naur skkfep-0.87.orig/romkan-org.c skkfep-0.87/romkan-org.c
---- skkfep-0.87.orig/romkan-org.c 2003-09-03 08:49:32.000000000 +0900
-+++ skkfep-0.87/romkan-org.c 2008-11-01 09:58:10.000000000 +0900
-@@ -1,5 +1,6 @@
- #include "config.h"
- #include "fep.h"
-+#include <string.h>
- #include <ctype.h>
- #include "functions.h"
-
-diff -Naur skkfep-0.87.orig/skklib.c skkfep-0.87/skklib.c
---- skkfep-0.87.orig/skklib.c 2003-09-03 08:49:32.000000000 +0900
-+++ skkfep-0.87/skklib.c 2008-11-01 09:58:48.000000000 +0900
-@@ -6,6 +6,7 @@
-
- #include "config.h"
- #include <stdio.h>
-+#include <string.h>
- #include <sys/types.h>
- #include <sys/stat.h>
- #include "skklib.h"
-diff -Naur skkfep-0.87.orig/stty.c skkfep-0.87/stty.c
---- skkfep-0.87.orig/stty.c 2003-09-03 08:49:32.000000000 +0900
-+++ skkfep-0.87/stty.c 2008-11-01 09:57:30.000000000 +0900
-@@ -1,5 +1,6 @@
- #include "config.h"
- #include <stdio.h>
-+#include <stdlib.h>
- #include <signal.h>
- #include <fcntl.h>
- #include "fep.h"
-diff -Naur skkfep-0.87.orig/terms.c skkfep-0.87/terms.c
---- skkfep-0.87.orig/terms.c 2003-09-03 08:49:32.000000000 +0900
-+++ skkfep-0.87/terms.c 2008-11-01 09:56:59.000000000 +0900
-@@ -1,4 +1,5 @@
- #include "config.h"
-+#include <string.h>
- #include "fep.h"
-
- /*#define SHOW_ESCSEQ /* show escape sequences for debugging */
diff --git a/app-i18n/skkfep/files/skkfep-gentoo.patch b/app-i18n/skkfep/files/skkfep-gentoo.patch
new file mode 100644
index 000000000000..c0e1e4172eb4
--- /dev/null
+++ b/app-i18n/skkfep/files/skkfep-gentoo.patch
@@ -0,0 +1,64 @@
+--- a/Makefile
++++ b/Makefile
+@@ -2,16 +2,16 @@
+ # Makefile for skkfep
+ #
+ all: genMakefile
+- make -f genMakefile all
++ $(MAKE) -f genMakefile all
+
+ skkfep: genMakefile
+- make -f genMakefile skkfep
++ $(MAKE) -f genMakefile skkfep
+
+ simpledic: genMakefile
+- make -f genMakefile simpledic
++ $(MAKE) -f genMakefile simpledic
+
+ clean: genMakefile
+- make -f genMakefile clean
++ $(MAKE) -f genMakefile clean
+ rm -f genMakefile
+
+ genMakefile: protoMakefile config.h
+--- a/config.h
++++ b/config.h
+@@ -14,7 +14,7 @@
+ #define DEFAULT_KANAKEY "^j"
+
+ /* By Y. Kaneko */
+-/*#define KUTOUTEN /* "."->maru, ","->ten */
++#define KUTOUTEN /* "."->maru, ","->ten */
+
+ #define KANJIBS /* do/don't shuft-out BS code in JIS mode */
+ #define KANJIBS_DEFAULT 0 /* 0 -> shift out / 1 -> don't shift out */
+@@ -28,4 +28,4 @@
+
+ #define NATIVECODE euc /* EUC Kanji code */
+
+-#define SKK_SERVER_HOST "ei5nazha" /* SKK server host */
++#define SKK_SERVER_HOST "localhost" /* SKK server host */
+--- a/configs/linux.h
++++ b/configs/linux.h
+@@ -10,3 +10,12 @@
+ #define NO_VFORK
+
+ #define HAVE_SETREUID
++#define HAVE_BSD_OPENPTY
++
++#include <stdlib.h>
++#include <string.h>
++#include <unistd.h>
++
++#if makefile_parameter
++SYSLIBS=-lutil
++#endif
+--- a/protoMakefile
++++ b/protoMakefile
+@@ -1,5 +1,5 @@
+ CFLAGS=$(SYSINCLUDE) $(SYSDEFINE) $(DEFINE) $(OPTIMIZE)
+-LIBS =$(SYSLIBS) $(EXTRALIBS) -ltermcap
++LIBS =$(SYSLIBS) $(EXTRALIBS) $(LDFLAGS) -lncurses
+
+ OBJS=fep.o connsh.o readwrite.o terms.o stty.o keybind.o romkan.o etc.o\
+ kkconv.o keymap.o version.o
diff --git a/app-i18n/skkfep/skkfep-0.87-r1.ebuild b/app-i18n/skkfep/skkfep-0.87-r1.ebuild
index 6c67c4f1c2d5..20ba6931e3e9 100644
--- a/app-i18n/skkfep/skkfep-0.87-r1.ebuild
+++ b/app-i18n/skkfep/skkfep-0.87-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2013 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=4
@@ -21,9 +21,9 @@ RDEPEND="${RDEPEND}
app-i18n/skk-jisyo"
src_prepare() {
- epatch \
- "${FILESDIR}"/${P}-gentoo.patch \
- "${FILESDIR}"/${P}-LDFLAGS.patch
+ sed -i "/SYSTEM_DIC_NAME/a#define SYSTEM_DIC_NAME \"${EPREFIX}/usr/share/skk/SKK-JISYO.L\"" config.h
+
+ epatch "${FILESDIR}"/${PN}-gentoo.patch
}
src_compile() {