From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- dev-libs/wnn7sdk/Manifest | 10 +++++ dev-libs/wnn7sdk/files/wnn7sdk-gcc4.patch | 30 +++++++++++++ dev-libs/wnn7sdk/files/wnn7sdk-gentoo.patch | 67 +++++++++++++++++++++++++++++ dev-libs/wnn7sdk/files/wnn7sdk-malloc.patch | 20 +++++++++ dev-libs/wnn7sdk/files/wnn7sdk-qa.patch | 52 ++++++++++++++++++++++ dev-libs/wnn7sdk/metadata.xml | 8 ++++ dev-libs/wnn7sdk/wnn7sdk-20011017-r1.ebuild | 51 ++++++++++++++++++++++ dev-libs/wnn7sdk/wnn7sdk-20011017.ebuild | 44 +++++++++++++++++++ 8 files changed, 282 insertions(+) create mode 100644 dev-libs/wnn7sdk/Manifest create mode 100644 dev-libs/wnn7sdk/files/wnn7sdk-gcc4.patch create mode 100644 dev-libs/wnn7sdk/files/wnn7sdk-gentoo.patch create mode 100644 dev-libs/wnn7sdk/files/wnn7sdk-malloc.patch create mode 100644 dev-libs/wnn7sdk/files/wnn7sdk-qa.patch create mode 100644 dev-libs/wnn7sdk/metadata.xml create mode 100644 dev-libs/wnn7sdk/wnn7sdk-20011017-r1.ebuild create mode 100644 dev-libs/wnn7sdk/wnn7sdk-20011017.ebuild (limited to 'dev-libs/wnn7sdk') diff --git a/dev-libs/wnn7sdk/Manifest b/dev-libs/wnn7sdk/Manifest new file mode 100644 index 000000000000..c57b7373bd2a --- /dev/null +++ b/dev-libs/wnn7sdk/Manifest @@ -0,0 +1,10 @@ +AUX wnn7sdk-gcc4.patch 810 SHA256 d1085e03efba5f4bb1980b9b2cfbf0293337965270707b396205b3f8163f3e9d SHA512 b0134c1393a98eff49eaf5f31a0cb9d99e4e40675f1c6abddfc7f790c70ac0ae1d0c79397beb46bd665e8da8cdae3cffb76200b447d16dca94de4db1b2722809 WHIRLPOOL 423a1b5b2746da1d4ee978250bfa18356844f61d7681eececc17763552309cfc7c33bbcb01450d373d221778c6afcfc0df8625c04300f6ebbd221e93682b3f1e +AUX wnn7sdk-gentoo.patch 2120 SHA256 929c62d76b77185cb9a08a6e39f7f213a8e44b4627d7e01409c5ad53814bf410 SHA512 554c189689d5028eca6ea61f41dcf51e5bbbbdf724974c17fe94c8dfa4177d56dea50ab609c2736cf142ed2bf6edcc6f00fabd5ca930973ad7467fe22696f04e WHIRLPOOL 09850fc53f7d04f684ed2bda2eae9809e422b802745d526a41e2f0e2c5560df3f8cd7ce94fb0bfeb3eba728a18ecde73a50c3ddf067bf783e55ade19df867f75 +AUX wnn7sdk-malloc.patch 366 SHA256 fd3a1c04445c1eb6fcfd6b1822b03f2e9f3214bcbb5c95459cdb85a84cd8d330 SHA512 cdc2142a1bdd16158b765fda01983cd530dc8271383177b4bb7e534ba192e07dcccd042c234f4160d346ce69ed1b0eacf366ee86fe7209b4d54fe91befbc3b89 WHIRLPOOL 7b71894abb1a81e309c54445c54f974cdfd79b94698c8506a8758cd46940a80b42deec4f5321ebb7c8b3b7701130fb75ffe6bdb59179500898e3df17e7895a58 +AUX wnn7sdk-qa.patch 1459 SHA256 b7ed2aefc33abe0b69671f403ff66c8491a1f092e93dd6e87f878d59f15a9934 SHA512 0f29f0e3b26b0038473f9601cd9179095422882dfbc62c371e17055d9a9143b8b35f5d7ad2165301f935bfabe2b90768591789a8a5cbbcc931e65c16441b681e WHIRLPOOL 1b9faebdb00bc44e8ee8407f1cee6b99166b68f434e339d340557c40f50c1bcb80d48b46dfc6bb0e23a259333d0b1de288f14b7c33c01df3fb5b056ece433772 +DIST Wnn7SDK.tgz 178403 SHA256 725d2900707076a0aeb6f793e01e2deade45c28daf4a6a37049b48bb6a6e561a SHA512 d6e24357c0071eb29e3a91cd3484c8fe7901a5e1537bff6632fa04eef21d0e56d7a5f3d7d899599401f607eee259cab36026321f09eea45590d00425d1963f52 WHIRLPOOL 8b4c51bba7253e736249ed699d6be8cc78537dcfe6a6907e74ca8d58355ac7e68f0bb92856ed28ed16cdda7b1c2b5906e37815f506ee908e184900b16ff8787f +EBUILD wnn7sdk-20011017-r1.ebuild 1251 SHA256 d00aa387615cc83c381e65393bbe25d9b62f29ac87521afcb7f24098435aee65 SHA512 49209c70b96e6d3714d14ae08a24a2ab8c270e311ff5329cee9ff88cd0da2261a7fec02140b8ffcba3749df2f61e789472f6574c5e40cf7eacd070b967ba51a6 WHIRLPOOL 8b97222a3eb6fa85837b857f2b09d4c02d7d7b9bbe6bd7bf9f0296ca6d98aa88176dcf0eda558e11fc59f9c1c24da2ff1d16056d0c39a09ab47e8d5b4422aca1 +EBUILD wnn7sdk-20011017.ebuild 862 SHA256 53e28e31a5a1bfa46387ebe0a386ee72b97179cefa25b3a9377f9b498d1b8eff SHA512 6c75c59e3319606584010106f4acbbbae59d7aa7e1d690e6ab51067a559b8ee821d3a80594334cefc598cad1c6542391c4230021dc368edb65d63b3c75302460 WHIRLPOOL 5d70c73fcac67ba2241537e9c8cf492c5abe1227122818997674b54b59cbffe969158c90f52dd898d6e7c80c76c72de0adf3eb87c606fcc5c18b626ccdb94655 +MISC ChangeLog 2611 SHA256 ee19f3fb8df6659f09802411bcc4a9b7ecb75d52cde68fafbaf5ab4af0c073c1 SHA512 8dc192ec55dc2a8f100e7ebf8bdf72c3e55bc668c1f40091ec672af23aeb09742196e67eaf5cdc854099a1fab540f2d2180c4eb2ae90aaef3616d57b1a927588 WHIRLPOOL e90b9ddc6e490aacf65f845f72e482faa8a632b3973dc8c0bcd5e17067a3083f8a479a41364e0d9dc8f37487171f12362d1303aa08901b684729d303b750ca5d +MISC ChangeLog-2015 1319 SHA256 156a8dbc42461cd168171e9da337ba39d15a4c069cd63542f351f31ea7bc01c8 SHA512 79090a2618a3df043bb830059ccd4df4d35d99759b409bc784fa55cbc0033e7206a789e4d3eda08b8e2b5bf54e8ded1bda89f1294702e966edd45e3dab9f5fac WHIRLPOOL 73d4c2d8bf23d0791dfbf92084c7ba656627cb7af5f4dba05740b9f8dcf6cc59f83accad6a23c9c4a4a313dc24ec993af2b591ac306647f5fc8b7bcf93b713b6 +MISC metadata.xml 230 SHA256 5fc421627b578ee2d1317320525119c0b406026597bb1d054f96254a241bf96a SHA512 74065bee639a38ecdef7c32280ed43a8f1627362cd8e97e714a09bcf116ae8bc4c61b2ab13c31bd02a22ae8a5a201263981ee519a0b6ba9df81a4d5f3cd94eb1 WHIRLPOOL b3c1363540645200abd5bf0b5b7fb3cae0b738bfd359f7b13b56d97650f9381fccede1e3f867dbc736461ee7c7906725a3c53eabd9ac99929d5c7c520a831082 diff --git a/dev-libs/wnn7sdk/files/wnn7sdk-gcc4.patch b/dev-libs/wnn7sdk/files/wnn7sdk-gcc4.patch new file mode 100644 index 000000000000..f97845f449f1 --- /dev/null +++ b/dev-libs/wnn7sdk/files/wnn7sdk-gcc4.patch @@ -0,0 +1,30 @@ +diff -urN Wnn/etc/bdic.c Wnn-gcc4/etc/bdic.c +--- Wnn/etc/bdic.c 2001-10-17 10:37:17.000000000 +0900 ++++ Wnn-gcc4/etc/bdic.c 2006-11-06 01:31:31.000000000 +0900 +@@ -177,6 +177,14 @@ + #define max(a, b) ((a < b)? b:a) + #endif + ++#ifdef WNN_CHECK_INODE ++static int change_file_uniq1(); ++#else ++#ifdef JS ++static int change_file_uniq1(); ++#endif ++#endif ++ + /*:::DOC_START + * + * Function Name: dic_fopen +diff -urN Wnn/jlib/jl.c Wnn-gcc4/jlib/jl.c +--- Wnn/jlib/jl.c 2001-10-17 10:37:17.000000000 +0900 ++++ Wnn-gcc4/jlib/jl.c 2006-11-06 01:33:13.000000000 +0900 +@@ -297,6 +297,8 @@ + static int insert_dai_or_ikeiji(); + static int jl_dic_save_all_e_body(); + ++static void jl_disconnect_if_server_dead_body_by_jsid(); ++ + static struct wnn_buf *jl_open_lang_core(); + static struct wnn_env *jl_connect_lang_core(); + diff --git a/dev-libs/wnn7sdk/files/wnn7sdk-gentoo.patch b/dev-libs/wnn7sdk/files/wnn7sdk-gentoo.patch new file mode 100644 index 000000000000..e203c8b5fa83 --- /dev/null +++ b/dev-libs/wnn7sdk/files/wnn7sdk-gentoo.patch @@ -0,0 +1,67 @@ +--- work/src/Wnn/jlib/Imakefile Wed Oct 17 10:37:17 2001 ++++ Wnn/jlib/Imakefile Sat Oct 19 17:15:25 2002 +@@ -60,9 +60,9 @@ + + LibraryObjectRule() + #if DoSharedLib +-AllTarget($(OBJS) libwnn.a libwnn.so.$(SOWNN7LIBREV)) ++AllTarget($(OBJS) libwnn7.a libwnn7.so.$(SOWNN7LIBREV)) + #else +-AllTarget($(OBJS) libwnn.a) ++AllTarget($(OBJS) libwnn7.a) + #endif + + +@@ -75,23 +75,23 @@ + SingleProgramTarget(kankana,kankana.o,$(WNNJLIB),) + + #if DoSharedLib +-SharedLibraryTarget(wnn,$(SOWNN7LIBREV),$(OBJS),.,.) ++SharedLibraryTarget(wnn7,$(SOWNN7LIBREV),$(OBJS),.,.) + #endif +-UnsharedLibraryTarget(wnn,$(UNSHAREDOBJS),unshared,..) +-LintLibraryTarget(wnn,$(SRCS)) ++UnsharedLibraryTarget(wnn7,$(UNSHAREDOBJS),unshared,..) ++LintLibraryTarget(wnn7,$(SRCS)) + + + + instlib:: install + + #if DoSharedLib +-InstallSharedLibrary(wnn,$(SOWNN7LIBREV),$(WNNLIBDIR)) ++InstallSharedLibrary(wnn7,$(SOWNN7LIBREV),$(WNNLIBDIR)) + #endif +-InstallLibrary(wnn,$(WNNLIBDIR)) ++InstallLibrary(wnn7,$(WNNLIBDIR)) + + #if ProfileLibJlib +-ProfiledLibraryTarget(wnn,$(OBJS)) +-InstallLibrary(wnn_p,$(WNNLIBDIR)) ++ProfiledLibraryTarget(wnn7,$(OBJS)) ++InstallLibrary(wnn7_p,$(WNNLIBDIR)) + #endif + + #if DoSharedLib +--- work/src/config/Project.tmpl.orig Wed Oct 17 10:37:18 2001 ++++ config/Project.tmpl Sat Oct 19 18:04:30 2002 +@@ -599,7 +599,7 @@ + XWNMOJDSRC = $(XWNMOTOP)/jd + XWNMOROMKANMSRC = $(XWNMOTOP)/romkan_m + XWNMOINCLUDES = -I$(XWNMOROMKANMSRC) -I$(WNNINCLUDESRC) +- XWNMOJLIB = $(XWNMOJLIBSRC)/libwnn_m.a ++ XWNMOJLIB = $(XWNMOJLIBSRC)/libwnn7_m.a + XWNMOLIBRARIES = $(XWNMOJLIB) + XWNMODEFS = $(XVERSION) -DUSING_BUSHU + XCOMMONDIR = $(IMTOP)/XClient/Common/src +--- work/src/config/X11.tmpl~ Wed Oct 17 10:37:18 2001 ++++ config/X11.tmpl Sat Oct 19 18:08:32 2002 +@@ -599,7 +599,7 @@ + XWNMOJDSRC = $(XWNMOTOP)/jd + XWNMOROMKANMSRC = $(XWNMOTOP)/romkan_m + XWNMOINCLUDES = -I$(XWNMOROMKANMSRC) -I$(WNNINCLUDESRC) +- XWNMOJLIB = $(XWNMOJLIBSRC)/libwnn_m.a ++ XWNMOJLIB = $(XWNMOJLIBSRC)/libwnn7_m.a + XWNMOLIBRARIES = $(XWNMOJLIB) + XWNMODEFS = $(XVERSION) -DUSING_BUSHU + XCOMMONDIR = $(IMTOP)/XClient/Common/src diff --git a/dev-libs/wnn7sdk/files/wnn7sdk-malloc.patch b/dev-libs/wnn7sdk/files/wnn7sdk-malloc.patch new file mode 100644 index 000000000000..0a0ce4337080 --- /dev/null +++ b/dev-libs/wnn7sdk/files/wnn7sdk-malloc.patch @@ -0,0 +1,20 @@ +--- Wnn/jlib/js.c.bak 2005-01-20 12:33:10.000000000 +0900 ++++ Wnn/jlib/js.c 2005-01-20 12:33:10.000000000 +0900 +@@ -159,7 +159,7 @@ + */ + + +-extern char *malloc(); ++extern void *malloc(); + + #include + #include +@@ -199,7 +199,7 @@ + #include "../etc/pwd.c" + + +-char *malloc(); ++void *malloc(); + + typedef struct _host_address { + int address_len; diff --git a/dev-libs/wnn7sdk/files/wnn7sdk-qa.patch b/dev-libs/wnn7sdk/files/wnn7sdk-qa.patch new file mode 100644 index 000000000000..a41223af8e6f --- /dev/null +++ b/dev-libs/wnn7sdk/files/wnn7sdk-qa.patch @@ -0,0 +1,52 @@ +diff -Naur src.orig/Wnn/etc/msg.c src/Wnn/etc/msg.c +--- src.orig/Wnn/etc/msg.c 2001-10-17 10:37:17.000000000 +0900 ++++ src/Wnn/etc/msg.c 2008-11-22 10:38:22.000000000 +0900 +@@ -148,6 +148,8 @@ + \t + */ + #include ++#include ++#include + #include "commonhd.h" + #include "config.h" + #include "dslib.h" +@@ -156,7 +158,7 @@ + + + static char * +-bsearch(ky, bs, nel, width, compar) ++a_bsearch(ky, bs, nel, width, compar) + char *ky; + char *bs; + unsigned long nel; +@@ -244,7 +246,7 @@ + return(NULL); + if (cd->msg_bd == 0 || cd->msg_cnt == 0) + return(NULL); +- bd = (struct msg_bd *)bsearch(id, cd->msg_bd, cd->msg_cnt, ++ bd = (struct msg_bd *)a_bsearch(id, cd->msg_bd, cd->msg_cnt, + sizeof(struct msg_bd), _search); + if (bd == NULL) + return(NULL); +diff -Naur src.orig/Wnn/jlib/jl.c src/Wnn/jlib/jl.c +--- src.orig/Wnn/jlib/jl.c 2001-10-17 10:37:17.000000000 +0900 ++++ src/Wnn/jlib/jl.c 2008-11-22 10:18:36.000000000 +0900 +@@ -143,6 +143,7 @@ + #include "commonhd.h" + #include "config.h" + #include ++#include + #include + #ifdef SYSVR2 + # include +diff -Naur src.orig/Wnn/jlib/js.c src/Wnn/jlib/js.c +--- src.orig/Wnn/jlib/js.c 2001-10-17 10:37:17.000000000 +0900 ++++ src/Wnn/jlib/js.c 2008-11-22 10:27:04.000000000 +0900 +@@ -162,6 +162,7 @@ + extern char *malloc(); + + #include ++#include + #include + #ifdef UX386 + #include diff --git a/dev-libs/wnn7sdk/metadata.xml b/dev-libs/wnn7sdk/metadata.xml new file mode 100644 index 000000000000..c921b96adf6c --- /dev/null +++ b/dev-libs/wnn7sdk/metadata.xml @@ -0,0 +1,8 @@ + + + + + cjk@gentoo.org + Cjk + + diff --git a/dev-libs/wnn7sdk/wnn7sdk-20011017-r1.ebuild b/dev-libs/wnn7sdk/wnn7sdk-20011017-r1.ebuild new file mode 100644 index 000000000000..e30c06ce0e72 --- /dev/null +++ b/dev-libs/wnn7sdk/wnn7sdk-20011017-r1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +inherit eutils multilib toolchain-funcs + +DESCRIPTION="Library and headers for Wnn7 client" +HOMEPAGE="http://www.omronsoft.co.jp/SP/pcunix/sdk/index.html" +SRC_URI="ftp://ftp.omronsoft.co.jp/pub/Wnn7/sdk_source/Wnn7SDK.tgz" + +LICENSE="freedist" + +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +# x11 is required for imake +DEPEND="x11-misc/imake" +RDEPEND="" + +S="${WORKDIR}/src" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${PN}-malloc.patch" + epatch "${FILESDIR}/${PN}-gentoo.patch" + epatch "${FILESDIR}/${PN}-gcc4.patch" + epatch "${FILESDIR}/${PN}-qa.patch" + + # Fix path to point to Xorg directory + sed -e "s:X11R6/::g" -i config/X11.tmpl || sed "sed 1 failed" + + sed -i -e "/CONFIGSRC =/s:=.*:= /usr/$(get_libdir)/X11/config:" Makefile.ini || die "sed 2 failed" +} + +src_compile() { + emake \ + CC="$(tc-getCC)" CDEBUGFLAGS="${CFLAGS}" \ + SHLIBGLOBALSFLAGS="${LDFLAGS}" \ + World -f Makefile.ini || die "make World failed" +} + +src_install() { + dolib.so Wnn/jlib/*.so* || die "dolib.so failed" + dolib.a Wnn/jlib/*.a || die "dolib.a failed" + + insinto /usr/include/${PN}/wnn + doins Wnn/include/*.h || die "doins failed" + + dodoc README +} diff --git a/dev-libs/wnn7sdk/wnn7sdk-20011017.ebuild b/dev-libs/wnn7sdk/wnn7sdk-20011017.ebuild new file mode 100644 index 000000000000..fe2867ee39c3 --- /dev/null +++ b/dev-libs/wnn7sdk/wnn7sdk-20011017.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +inherit eutils + +DESCRIPTION="Library and headers for Wnn7 client" +HOMEPAGE="http://www.omronsoft.co.jp/SP/download/pcunix/sdk.html" +SRC_URI="ftp://ftp.omronsoft.co.jp/pub/Wnn7/sdk_source/Wnn7SDK.tgz" + +LICENSE="freedist" + +SLOT="0" +KEYWORDS="~amd64 x86" +IUSE="" + +# x11 is required for imake +DEPEND="x11-misc/imake" +RDEPEND="" + +S="${WORKDIR}/src" + +src_unpack() { + unpack ${A} + cd ${S} + epatch "${FILESDIR}/${PN}-malloc.patch" + epatch "${FILESDIR}/${PN}-gentoo.patch" + epatch "${FILESDIR}/${PN}-gcc4.patch" +} + +src_compile() { + make World -f Makefile.ini || die "make World failed" +} + +src_install() { + cd ${S}/Wnn/jlib + dolib.so *.so* || die + dolib.a *.a || die + + cd ${S}/Wnn/include + insinto /usr/include/${PN}/wnn + doins *.h || die + + dodoc ${S}/README +} -- cgit v1.2.3