diff options
Diffstat (limited to 'app-i18n/freewnn')
-rw-r--r-- | app-i18n/freewnn/Manifest | 11 | ||||
-rw-r--r-- | app-i18n/freewnn/files/freewnn-1.1.1_alpha22-parallel-build.patch | 318 | ||||
-rw-r--r-- | app-i18n/freewnn/files/freewnn-Wformat-security.patch | 143 | ||||
-rw-r--r-- | app-i18n/freewnn/files/freewnn-uum-EUC-JP.patch | 13 | ||||
-rw-r--r-- | app-i18n/freewnn/files/freewnn.confd-r1 | 1 | ||||
-rw-r--r-- | app-i18n/freewnn/files/freewnn.initd | 16 | ||||
-rw-r--r-- | app-i18n/freewnn/files/freewnn.initd-r1 | 17 | ||||
-rw-r--r-- | app-i18n/freewnn/freewnn-1.1.1_alpha22.ebuild | 54 | ||||
-rw-r--r-- | app-i18n/freewnn/freewnn-1.1.1_alpha23.ebuild | 72 | ||||
-rw-r--r-- | app-i18n/freewnn/metadata.xml | 14 |
10 files changed, 659 insertions, 0 deletions
diff --git a/app-i18n/freewnn/Manifest b/app-i18n/freewnn/Manifest new file mode 100644 index 000000000000..f3ce22b8f2e1 --- /dev/null +++ b/app-i18n/freewnn/Manifest @@ -0,0 +1,11 @@ +AUX freewnn-1.1.1_alpha22-parallel-build.patch 6089 BLAKE2B f73fad172a062d2f6eaac6e5d0d87487e2407c14f853d6cbb6d75c26266ad61cab5b1b20e25f5c123fc854b56746fea39a7747bd4244592a9bf9bd1adfedef01 SHA512 941344392312412fb4f5b42c51df1c58d1efc050e203d54894d4bcd921e884ac82fcf5a29a3a57aa4be88da57586dfa9674b8ea88dcb75e91efe83caaa78ac50 +AUX freewnn-Wformat-security.patch 3658 BLAKE2B 4bce67e8190ec4a6e6a4b8cee446b8beb492057cfedd49c06e631a5949e9ff20b35c4defe9ed0466dc2f0b5edb8a483f5886b8eda30a77435ee8614b0878d7f6 SHA512 7e01d516978eb024fe723a84c6c7cc8e138e7947ed3d4d5ec6e15b28783498e084cd2655ccd2ce7377c9837332ae1b0caec654c0f7f2bb9f78b9657f4cd00830 +AUX freewnn-uum-EUC-JP.patch 279 BLAKE2B a0fe740a49aabb72f8d9b0bcbae59e5841152c02ebb4bb27817c8621a4e6be2fd17b8a18c5104d94f8c7def90342682a015a98883856027901265a11d7d4aa4c SHA512 a065873fe70435a4364a111eed334ea574cd3178ffde947beabac5bb45e468a725f73c5b35c22b577127d03139a6386eebc815b85014048eaf59ca958687c96b +AUX freewnn.confd-r1 16 BLAKE2B 2a2b2a93adf66e719f035900b0efa1f7ccf66912f8c5cddddb8e7b7c1e83c91136d4e747e1b96cad6a54fbbddc29a6b61fc37f7f01330909d27fc1f0cf978723 SHA512 3392644bb5404b83ee3bf3bceffaa769d1dce858fd2a8bd92b79101d0db863002a4f30205498a00777b25b7940fc8dbb41a0e0c4e20be0f6d61be50eb4ddf49e +AUX freewnn.initd 283 BLAKE2B 363b8b99876aa0552f49a10bc973925d7d23900c24601e40ff2c99a3d6476c9b41c60465feb9e01e6fb17324957bb810d63eef52d97b49a61e0f48c96452db6e SHA512 81b5a6246d513f567710e2973bc8fffe86462e8afdee13e1a2aa9b6e5e8a852521a23fd5b20af536092b59f626a5e34be77409d63dcab005473dd11631b67111 +AUX freewnn.initd-r1 306 BLAKE2B 2c5eeede614062832ce9d799e228a7927793679aa129151b68c9f1392056c8faccda4ce3dff5b4dc0f9da5d1557c8799ca663c1b20d9c3b2208b72a26f78adc3 SHA512 306ad8dd6ae7060fc937f2ac2b266f385480961ed0c2074f1dcfc77fa82bb7a23042019672b47c32fc8d55079730ccda68c616c0f5411b0704db2c34d2caaf02 +DIST FreeWnn-1.1.1-a022.tar.bz2 3137954 BLAKE2B 1f3a920ef7ddb4cddaa95de4d60bccf20c8e6d207216e406cb7dc503411e932b4578ed1c3c302249a94e0ede1d948aa62f5ced804d0d142ed5e04dbbd6789277 SHA512 938c8bff69e2f43cce265a6a84822ae08b89725837f808addb66ba202dadafa60c213638f298d9efe1257fd96f7193fd711a3dacecd803289d925d8f6ea6eaf3 +DIST FreeWnn-1.1.1-a023.tar.bz2 3147378 BLAKE2B 63f3fbf37b53e5e6f32f83513d45aaf4915cbd33789ab8edfc93b22de1fbbe242e52e7bd40ce7ef22e24ae1f4ee151261c2041af9c78720875303b5d2b6c18a8 SHA512 f0b8c657f0441463c752314b7d2fd603b4df056b049d247ecd77ff8b2f2f837fed7e75ce89deabca7061d3126afd51bf301bcdd3ac429056f43bfc8e0c7c8385 +EBUILD freewnn-1.1.1_alpha22.ebuild 1095 BLAKE2B 02dd86ccb19c50c54adeecb72a6f5dd83826ff745d378ca4418aceadd0918e7c137533c5a6409343a55c98164d81b74947590a5ba20119b523bd6733d96511c9 SHA512 0118eb863795a57627c85b5ba18247296e8043c69f4088371d10ec1fde724a9704fa4d49d65233b958c4de26bc14c84bbd1c4322a289b606547c180235dede07 +EBUILD freewnn-1.1.1_alpha23.ebuild 1559 BLAKE2B 40ccc0185b58a2bc9fcea76b18d4c65a00b5a6e3288a3122237cdd8f64492cb7290d9237c2edb5564e0bf59657bd126a1e8d58a0559601439b9ba86edd022ce5 SHA512 026e644beb3802f78787b31ba6577ce89b9e376460e37eb5c7e0fd05d004a7fbd9f87b02ec589804094a172d0c33da30bbfe86ba8dd7c19efec87073eb9322b5 +MISC metadata.xml 379 BLAKE2B 7944902387626d8b50d6c99d570e5618d35d5b271141143b635a11808cf3ecf52be22e18304709f708d89b2b88673790379ea4129cc4bd3f303c94835c067023 SHA512 ccecd3e1a8245d6ae953997d87f6daa127eb1759f6f91b866c9cc778a11289e3f72ce671d4c62032210568a7a915387cbcb02bb7b7284d515bb20e4c02bd8a6b diff --git a/app-i18n/freewnn/files/freewnn-1.1.1_alpha22-parallel-build.patch b/app-i18n/freewnn/files/freewnn-1.1.1_alpha22-parallel-build.patch new file mode 100644 index 000000000000..058225c36ee5 --- /dev/null +++ b/app-i18n/freewnn/files/freewnn-1.1.1_alpha22-parallel-build.patch @@ -0,0 +1,318 @@ +Description: Fix potential race condition when building in parallel mode +Origin: upstream, http://cvs.sourceforge.jp/cvs/view/freewnn/FreeWnn/Wnn/pubdicplus/Makefile.in?r1=1.7&r2=1.8&view=patch +Bug-Debian: http://bugs.debian.org/724058 + +--- a/Wnn/pubdicplus/Makefile.in 2010/02/22 17:06:54 1.7 ++++ b/Wnn/pubdicplus/Makefile.in 2013/11/08 18:54:44 1.8 +@@ -1,5 +1,5 @@ + # +-# $Id: Makefile.in,v 1.7 2010/02/22 17:06:54 aonoto Exp $ ++# $Id: Makefile.in,v 1.8 2013/11/08 18:54:44 aonoto Exp $ + # + + # +@@ -10,7 +10,7 @@ + # 1987, 1988, 1989, 1990, 1991, 1992 + # Copyright OMRON Corporation. 1987, 1988, 1989, 1990, 1991, 1992, 1999 + # Copyright ASTEC, Inc. 1987, 1988, 1989, 1990, 1991, 1992 +-# Copyright FreeWnn Project 1999, 2000, 2001, 2002, 2004, 2010 ++# Copyright FreeWnn Project 1999, 2000, 2001, 2002, 2004, 2010, 2013 + # + # Maintainer: FreeWnn Project + # +@@ -42,13 +42,12 @@ + ATOF = $(WNNJUTILOBJ)/atof + WNNTOUCH = $(WNNJUTILOBJ)/wnntouch + HINSI = @HINSI_DATA@ +- FZK_FLAG = + + LINKS = Version bio.hd chimei.hd computer.hd fzk.attr fzk.con fzk.fzkattr fzk.jirattr fzk.jircon fzk.master fzk.shuutan jinmei.hd kihon.hd koyuu.hd setsuji.hd special.hd special.u symbol.hd tankan.hd + + WNNDICS = bio.u chimei.u computer.u jinmei.u kihon.u koyuu.u setsuji.u symbol.u tankan.u + +-FZK_SRC= fzk.master fzk.attr fzk.jirattr fzk.fzkattr fzk.jircon fzk.con fzk.shuutan ++FZK_SRC= fzk.master-.c fzk.attr fzk.jirattr fzk.fzkattr fzk.jircon fzk.con fzk.shuutan + + DIC= bio.dic chimei.dic computer.dic jinmei.dic kihon.dic koyuu.dic setsuji.dic special.dic symbol.dic tankan.dic + +@@ -68,24 +67,14 @@ + $(RM) $@ + $(LN) $? $@ + +-includes:: Version +- + depend:: Version + +-clean:: +- $(RM) Version +- + bio.hd: $(PUBDICPLUSSRC)/bio.hd + $(RM) $@ + $(LN) $? $@ + +-includes:: bio.hd +- + depend:: bio.hd + +-clean:: +- $(RM) bio.hd +- + # bio.u: $(PUBDICPLUSSRC)/bio.u + # $(RM) $@ + # $(LN) $? $@ +@@ -101,13 +90,8 @@ + $(RM) $@ + $(LN) $? $@ + +-includes:: chimei.hd +- + depend:: chimei.hd + +-clean:: +- $(RM) chimei.hd +- + # chimei.u: $(PUBDICPLUSSRC)/chimei.u + # $(RM) $@ + # $(LN) $? $@ +@@ -123,13 +107,8 @@ + $(RM) $@ + $(LN) $? $@ + +-includes:: computer.hd +- + depend:: computer.hd + +-clean:: +- $(RM) computer.hd +- + # computer.u: $(PUBDICPLUSSRC)/computer.u + # $(RM) $@ + # $(LN) $? $@ +@@ -145,90 +124,50 @@ + $(RM) $@ + $(LN) $? $@ + +-includes:: fzk.attr +- + depend:: fzk.attr + +-clean:: +- $(RM) fzk.attr +- + fzk.con: $(PUBDICPLUSSRC)/fzk.con + $(RM) $@ + $(LN) $? $@ + +-includes:: fzk.con +- + depend:: fzk.con + +-clean:: +- $(RM) fzk.con +- + fzk.fzkattr: $(PUBDICPLUSSRC)/fzk.fzkattr + $(RM) $@ + $(LN) $? $@ + +-includes:: fzk.fzkattr +- + depend:: fzk.fzkattr + +-clean:: +- $(RM) fzk.fzkattr +- + fzk.jirattr: $(PUBDICPLUSSRC)/fzk.jirattr + $(RM) $@ + $(LN) $? $@ + +-includes:: fzk.jirattr +- + depend:: fzk.jirattr + +-clean:: +- $(RM) fzk.jirattr +- + fzk.jircon: $(PUBDICPLUSSRC)/fzk.jircon + $(RM) $@ + $(LN) $? $@ + +-includes:: fzk.jircon +- + depend:: fzk.jircon + +-clean:: +- $(RM) fzk.jircon +- + fzk.master: $(PUBDICPLUSSRC)/fzk.master + $(RM) $@ + $(LN) $? $@ + +-includes:: fzk.master +- + depend:: fzk.master + +-clean:: +- $(RM) fzk.master +- + fzk.shuutan: $(PUBDICPLUSSRC)/fzk.shuutan + $(RM) $@ + $(LN) $? $@ + +-includes:: fzk.shuutan +- + depend:: fzk.shuutan + +-clean:: +- $(RM) fzk.shuutan +- + jinmei.hd: $(PUBDICPLUSSRC)/jinmei.hd + $(RM) $@ + $(LN) $? $@ + +-includes:: jinmei.hd +- + depend:: jinmei.hd + +-clean:: +- $(RM) jinmei.hd +- + # jinmei.u: $(PUBDICPLUSSRC)/jinmei.u + # $(RM) $@ + # $(LN) $? $@ +@@ -244,13 +183,8 @@ + $(RM) $@ + $(LN) $? $@ + +-includes:: kihon.hd +- + depend:: kihon.hd + +-clean:: +- $(RM) kihon.hd +- + # kihon.u: $(PUBDICPLUSSRC)/kihon.u + # $(RM) $@ + # $(LN) $? $@ +@@ -266,13 +200,8 @@ + $(RM) $@ + $(LN) $? $@ + +-includes:: koyuu.hd +- + depend:: koyuu.hd + +-clean:: +- $(RM) koyuu.hd +- + # koyuu.u: $(PUBDICPLUSSRC)/koyuu.u + # $(RM) $@ + # $(LN) $? $@ +@@ -288,13 +217,8 @@ + $(RM) $@ + $(LN) $? $@ + +-includes:: setsuji.hd +- + depend:: setsuji.hd + +-clean:: +- $(RM) setsuji.hd +- + # setsuji.u: $(PUBDICPLUSSRC)/setsuji.u + # $(RM) $@ + # $(LN) $? $@ +@@ -310,35 +234,20 @@ + $(RM) $@ + $(LN) $? $@ + +-includes:: special.hd +- + depend:: special.hd + +-clean:: +- $(RM) special.hd +- + special.u: $(PUBDICPLUSSRC)/special.u + $(RM) $@ + $(LN) $? $@ + +-includes:: special.u +- + depend:: special.u + +-clean:: +- $(RM) special.u +- + symbol.hd: $(PUBDICPLUSSRC)/symbol.hd + $(RM) $@ + $(LN) $? $@ + +-includes:: symbol.hd +- + depend:: symbol.hd + +-clean:: +- $(RM) symbol.hd +- + # symbol.u: $(PUBDICPLUSSRC)/symbol.u + # $(RM) $@ + # $(LN) $? $@ +@@ -354,13 +263,8 @@ + $(RM) $@ + $(LN) $? $@ + +-includes:: tankan.hd +- + depend:: tankan.hd + +-clean:: +- $(RM) tankan.hd +- + # tankan.u: $(PUBDICPLUSSRC)/tankan.u + # $(RM) $@ + # $(LN) $? $@ +@@ -421,16 +325,14 @@ + $(RM) $@ + $(LN) $? $@ + +-std.fzk: fzk.master-.c $(FZK_SRC) +- $(FZK_PP) $(FZK_FLAG) fzk.master-.c | egrep -v '^(# |#line |#pragma |$$)' | $(ATOF) -h $(HINSI) $@ ++std.fsrc: $(FZK_SRC) ++ $(FZK_PP) fzk.master-.c > $@ ++ ++full.fsrc: $(FZK_SRC) ++ $(FZK_PP) -DKANSAI fzk.master-.c > $@ + +-full.fzk: $(FZK_SRC) +- $(MAKE) FZK_FLAG=-DKANSAI std.fzk +- $(MV) std.fzk $@ +- +-kougo.fzk: $(FZK_SRC) +- $(MAKE) FZK_FLAG=-DKOUGO std.fzk +- $(MV) std.fzk $@ ++kougo.fsrc: $(FZK_SRC) ++ $(FZK_PP) -DKOUGO fzk.master-.c > $@ + + # additional rule from PubdicPlus/Makefile.in : by aono + pod.o: $(PUBDICPLUSSRC)/pod.c +@@ -442,7 +344,7 @@ + $(WNNDICS): pod $(PUBDICPLUSSRC)/pubdic.p + ./pod $(PUBDICPLUSSRC)/pubdic.p -w -1 -k `basename $@ .u` > $@ + +-.SUFFIXES: .hd .u .dic .more ++.SUFFIXES: .hd .u .dic .more .fsrc .fzk + + .u.dic: + cat $*.hd $< | $(ATOD) -p $(VERSION) -P $(VERSION) -h $(HINSI) $@ +@@ -450,7 +352,10 @@ + .hd.more: + $(ATOD) -h $(HINSI) $@ < $< + ++.fsrc.fzk: ++ egrep -v '^(# |#line |#pragma |$$)' $< | $(ATOF) -h $(HINSI) $@ ++ + $(DIC): $(HINSI) + + clean:: +- $(RM) -f *.fzk *.dic *.more fzk.master-.c pod $(LINKS) ++ $(RM) -f *.fsrc *.dic *.more fzk.master-.c pod $(LINKS) $(FZKDATA) diff --git a/app-i18n/freewnn/files/freewnn-Wformat-security.patch b/app-i18n/freewnn/files/freewnn-Wformat-security.patch new file mode 100644 index 000000000000..b5b68314060d --- /dev/null +++ b/app-i18n/freewnn/files/freewnn-Wformat-security.patch @@ -0,0 +1,143 @@ +--- a/Wnn/uum/jhlp.c ++++ b/Wnn/uum/jhlp.c +@@ -1135,7 +1135,7 @@ + else + { + signal (SIGCHLD, SIG_IGN); +- printf (MSG_GET (3)); ++ printf ("%s", MSG_GET (3)); + /* + printf("\r\nuumを終わります。\r\n"); + */ +@@ -1212,8 +1212,8 @@ + + if ((buf = (unsigned char *) malloc (maxchg * 4)) == NULL) + { +- printf (MSG_GET (2)); +- printf (MSG_GET (3)); ++ printf ("%s", MSG_GET (2)); ++ printf ("%s", MSG_GET (3)); + /* + printf("malloc に失敗しました。uumを終わります。\r\n"); + */ +--- a/Wnn/uum/jis_in.c ++++ b/Wnn/uum/jis_in.c +@@ -64,7 +64,7 @@ + + completely_start: + throw_c (0); /* モード表示の後に出す */ +- printf (MSG_GET (6)); ++ printf ("%s", MSG_GET (6)); + /* + printf("JISコード: "); + */ +--- a/Wnn/uum/jutil.c ++++ b/Wnn/uum/jutil.c +@@ -489,7 +489,7 @@ + /* + printf("只今、辞書を読み込んでいます。"); + */ +- printf (MSG_GET (60)); ++ printf ("%s", MSG_GET (60)); + flush (); + + if ((id = jl_dic_add (bun_data_, fname, hfname, 0, prio, rdonly, hrdonly, NULL, NULL, yes_or_no_or_newline, print_msg1)) == -1 && wnn_errorno != -1) +@@ -571,7 +571,7 @@ + int x; + throw_c (0); + clr_line (); +- printf (string); ++ printf ("%s", string); + flush (); + for (;;) + { +--- a/Wnn/uum/kensaku.c ++++ b/Wnn/uum/kensaku.c +@@ -112,7 +112,7 @@ + u_s_on (); + w_printf (kana_buf, maxlength - strlen (MSG_GET (27)) - 2); + u_s_off (); +- printf (MSG_GET (27)); ++ printf ("%s", MSG_GET (27)); + flush (); + keyin (); + return (NULL); +--- a/Wnn/uum/kuten.c ++++ b/Wnn/uum/kuten.c +@@ -63,7 +63,7 @@ + + completely_start: + throw_c (0); /* モード表示の後に出す */ +- printf (MSG_GET (7)); ++ printf ("%s", MSG_GET (7)); + /* + printf("区点 : "); + */ +--- a/Wnn/uum/prologue.c ++++ b/Wnn/uum/prologue.c +@@ -144,7 +144,7 @@ + /* + fprintf(stderr,"初期化でmalloc不能。\n"); + */ +- fprintf (stderr, MSG_GET (2)); ++ fprintf (stderr, "%s", MSG_GET (2)); + return (-1); + } + +--- a/Wnn/uum/screen.c ++++ b/Wnn/uum/screen.c +@@ -547,7 +547,7 @@ + { + push_cursor (); + throw_c (0); +- printf (msg); ++ printf ("%s", msg); + pop_cursor (); + flush (); + } +--- a/Wnn/uum/sdefine.h ++++ b/Wnn/uum/sdefine.h +@@ -191,8 +191,8 @@ + + + #define flush() fflush(stdout) +-#define print_msg(X) {push_cursor();throw_c(0); clr_line();printf(X);flush();pop_cursor();} +-#define print_msg_getc(X) {push_cursor();throw_c(0); clr_line();printf(X);flush();keyin();pop_cursor();} ++#define print_msg(X) {push_cursor();throw_c(0); clr_line();printf("%s", X);flush();pop_cursor();} ++#define print_msg_getc(X) {push_cursor();throw_c(0); clr_line();printf("%s", X);flush();keyin();pop_cursor();} + + + #define UNDER_LINE_MODE (0x02 | 0x08 | 0x20) +--- a/Wnn/uum/select_ele.c ++++ b/Wnn/uum/select_ele.c +@@ -224,7 +224,7 @@ + + throw_c (0); + clr_line (); +- printf (msg); ++ printf ("%s", msg); + for (k = dd[cc]; k < dd[cc + 1]; k++) + { + cp = findcp (k, cc); +--- a/Wnn/uum/termio.c ++++ b/Wnn/uum/termio.c +@@ -100,7 +100,7 @@ + + if ((strlen (Term_Name) > 2) && (strcmp (Term_Name + (strlen (Term_Name) - 2), "-j") == 0)) + { +- fprintf (stderr, MSG_GET (4)); ++ fprintf (stderr, "%s", MSG_GET (4)); + /* + fprintf(stderr,"Uum:uumからuumはおこせません。\n"); + */ +--- a/Wnn/uum/wnnrc_op.c ++++ b/Wnn/uum/wnnrc_op.c +@@ -754,7 +754,7 @@ + return fp; + } + error: +- fprintf (stderr, MSG_GET (14)); ++ fprintf (stderr, "%s", MSG_GET (14)); + /* + fprintf(stderr , "uumrc ファイルがありません。"); + */ diff --git a/app-i18n/freewnn/files/freewnn-uum-EUC-JP.patch b/app-i18n/freewnn/files/freewnn-uum-EUC-JP.patch new file mode 100644 index 000000000000..919492d912c6 --- /dev/null +++ b/app-i18n/freewnn/files/freewnn-uum-EUC-JP.patch @@ -0,0 +1,13 @@ +--- a/Wnn/include/wnn_config.h ++++ b/Wnn/include/wnn_config.h +@@ -149,8 +149,8 @@ + #define TTY_KCODE J_EUJIS + #define PTY_KCODE J_EUJIS + # else /* !DGUX */ +-#define TTY_KCODE J_JIS +-#define PTY_KCODE J_JIS ++#define TTY_KCODE J_EUJIS ++#define PTY_KCODE J_EUJIS + # endif + #endif + diff --git a/app-i18n/freewnn/files/freewnn.confd-r1 b/app-i18n/freewnn/files/freewnn.confd-r1 new file mode 100644 index 000000000000..c64e27196d50 --- /dev/null +++ b/app-i18n/freewnn/files/freewnn.confd-r1 @@ -0,0 +1 @@ +FREEWNN_OPTS="" diff --git a/app-i18n/freewnn/files/freewnn.initd b/app-i18n/freewnn/files/freewnn.initd new file mode 100644 index 000000000000..ef4e20cf37c8 --- /dev/null +++ b/app-i18n/freewnn/files/freewnn.initd @@ -0,0 +1,16 @@ +#!/sbin/openrc-run +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +command="/usr/bin/Wnn4/jserver" + +depend() { + use logger + need net +} + +stop() { + ebegin "Stopping ${name:-${RC_SVCNAME}}" + /usr/bin/Wnn4/wnnkill + eend ${?} +} diff --git a/app-i18n/freewnn/files/freewnn.initd-r1 b/app-i18n/freewnn/files/freewnn.initd-r1 new file mode 100644 index 000000000000..57fd448f801c --- /dev/null +++ b/app-i18n/freewnn/files/freewnn.initd-r1 @@ -0,0 +1,17 @@ +#!/sbin/openrc-run +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +command="/usr/sbin/jserver" +command_args="${FREEWNN_OPTS}" + +depend() { + use logger + need net +} + +stop() { + ebegin "Stopping ${name:-${RC_SVCNAME}}" + /usr/sbin/wnnkill + eend ${?} +} diff --git a/app-i18n/freewnn/freewnn-1.1.1_alpha22.ebuild b/app-i18n/freewnn/freewnn-1.1.1_alpha22.ebuild new file mode 100644 index 000000000000..f4d5668b35ee --- /dev/null +++ b/app-i18n/freewnn/freewnn-1.1.1_alpha22.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +MY_P="FreeWnn-${PV/_alpha/-a0}" + +DESCRIPTION="Network-Extensible Kana-to-Kanji Conversion System" +HOMEPAGE="http://freewnn.sourceforge.jp/ http://www.freewnn.org/" +SRC_URI="mirror://sourceforge.jp/${PN}/59257/${MY_P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 ~arm64 hppa ia64 ppc ppc64 sparc x86" +IUSE="ipv6" + +S="${WORKDIR}/${MY_P}" + +PATCHES=( + "${FILESDIR}"/${P}-parallel-build.patch + "${FILESDIR}"/${PN}-Wformat-security.patch +) +DOCS="ChangeLog* CONTRIBUTORS" + +src_prepare() { + default + + sed -i \ + -e "s/WNNOWNER = wnn/WNNOWNER = root/" \ + -e "s/@INSTPGMFLAGS@//" \ + makerule.mk.in + + # bug #542534 + sed -i \ + -e "s/egrep -v/egrep -av/" \ + PubdicPlus/Makefile.in \ + Wnn/pubdicplus/Makefile.in \ + cWnn/[ct]dic/Makefile.in \ + kWnn/kdic/Makefile.in +} + +src_configure() { + econf \ + $(use_with ipv6) \ + --disable-cWnn \ + --disable-kWnn +} + +src_install() { + emake DESTDIR="${D}" install install.man + einstalldocs + + newinitd "${FILESDIR}"/${PN}.initd ${PN} +} diff --git a/app-i18n/freewnn/freewnn-1.1.1_alpha23.ebuild b/app-i18n/freewnn/freewnn-1.1.1_alpha23.ebuild new file mode 100644 index 000000000000..e6dae1fef125 --- /dev/null +++ b/app-i18n/freewnn/freewnn-1.1.1_alpha23.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +MY_P="FreeWnn-${PV/_alpha/-a0}" + +DESCRIPTION="Network-Extensible Kana-to-Kanji Conversion System" +HOMEPAGE="http://freewnn.sourceforge.jp/ http://www.freewnn.org/" +SRC_URI="mirror://sourceforge.jp/${PN}/63271/${MY_P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="ipv6 uum" + +RDEPEND="uum? ( sys-libs/ncurses:= )" +DEPEND="${RDEPEND} + uum? ( virtual/pkgconfig )" +S="${WORKDIR}/${MY_P}" + +PATCHES=( + "${FILESDIR}"/${PN}-uum-EUC-JP.patch + "${FILESDIR}"/${PN}-Wformat-security.patch +) +DOCS="ChangeLog* CONTRIBUTORS" + +src_prepare() { + sed -i \ + -e "s/WNNOWNER = wnn/WNNOWNER = root/" \ + -e "s|@mandir@/|@mandir@/ja/|" \ + -e "s/@INSTPGMFLAGS@//" \ + makerule.mk.in + + # bug #542534 + sed -i \ + -e "s/egrep -v/egrep -av/" \ + PubdicPlus/Makefile.in \ + Wnn/pubdicplus/Makefile.in \ + cWnn/[ct]dic/Makefile.in \ + kWnn/kdic/Makefile.in + + default +} + +src_configure() { + econf \ + $(use_enable uum client) \ + $(use_with ipv6) \ + --disable-cWnn \ + --disable-kWnn \ + --disable-traditional-layout \ + --with-term-libs="$(pkg-config --libs ncurses)" +} + +src_compile() { + default + + local m + for m in $(find Wnn/man -name "*.man"); do + iconv -f EUC-JP -t UTF-8 "${m}" > "${m}".UTF-8 || die + mv "${m}"{.UTF-8,} || die + done +} + +src_install() { + emake DESTDIR="${D}" install install.man + einstalldocs + + newconfd "${FILESDIR}"/${PN}.confd-r1 ${PN} + newinitd "${FILESDIR}"/${PN}.initd-r1 ${PN} +} diff --git a/app-i18n/freewnn/metadata.xml b/app-i18n/freewnn/metadata.xml new file mode 100644 index 000000000000..00f1f852743c --- /dev/null +++ b/app-i18n/freewnn/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>cjk@gentoo.org</email> + <name>Cjk</name> + </maintainer> + <use> + <flag name="uum">Build uum</flag> + </use> + <upstream> + <remote-id type="sourceforge-jp">freewnn</remote-id> + </upstream> +</pkgmetadata> |