Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
Chinput is a Chinese input server. It supports XIM(X Input Method)
Protocol and its own protocol for Chinese platform. XIM is the
standard input protocol for DBCS input in X11. All the clients can
use it if they support XIM. Chinput now use the input engine(IME)
from Unicon, and it can support both GB and Big5 charset.

View File

@@ -0,0 +1,37 @@
# $NetBSD: Makefile,v 1.15 2012/10/06 14:25:10 asau Exp $
DISTNAME= Chinput-3.0
PKGREVISION= 3
CATEGORIES= inputmethod
MASTER_SITES= http://download.linuxbyte.net/Chinese/Input/
MAINTAINER= rxg@NetBSD.org
HOMEPAGE= http://www.opencjk.org/~yumj/project-chinput.html
COMMENT= Chinese input server
USE_X11BASE= yes
BUILD_TARGET= chinput
INSTALLATION_DIRS= bin etc
post-patch:
${SED} -e 's:/usr/dict:'${LOCALBASE}/lib/unicon':g' < \
${WRKSRC}/src/init.c > ${WRKSRC}/src/init.c.tmp
${SED} -e 's:/usr/lib/ZWinPro:'${PREFIX}/etc':g' < \
${WRKSRC}/src/init.c.tmp > ${WRKSRC}/src/init.c
${MV} ${WRKSRC}/resource/Chinput.ad ${WRKSRC}/resource/Chinput.ad.tmp
${SED} -e 's:/usr/lib/unicon2:'${LOCALBASE}/lib/unicon':g' < \
${WRKSRC}/resource/Chinput.ad.tmp > \
${WRKSRC}/resource/Chinput.ad
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/chinput ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/resource/Chinput.ad ${DESTDIR}${PREFIX}/etc
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/Chinput
${INSTALL_DATA} ${WRKSRC}/doc/* ${DESTDIR}${PREFIX}/share/doc/Chinput
.include "../../inputmethod/unicon-im/buildlink3.mk"
.include "../../x11/libXext/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

11
inputmethod/Chinput/PLIST Normal file
View File

@@ -0,0 +1,11 @@
@comment $NetBSD: PLIST,v 1.2 2009/06/14 18:01:28 joerg Exp $
bin/chinput
etc/Chinput.ad
share/doc/Chinput/API
share/doc/Chinput/BUGS
share/doc/Chinput/CHANGES
share/doc/Chinput/COPYING
share/doc/Chinput/FAQ
share/doc/Chinput/INSTALL
share/doc/Chinput/README
share/doc/Chinput/USAGE

View File

@@ -0,0 +1,15 @@
$NetBSD: distinfo,v 1.5 2009/07/06 16:06:58 joerg Exp $
SHA1 (Chinput-3.0.tar.gz) = de6da2c8c53b38c1b23aee73c1aced90628e57d8
RMD160 (Chinput-3.0.tar.gz) = f51ee0f87bc38b760bf4d585466d25d4b6176518
Size (Chinput-3.0.tar.gz) = 484374 bytes
SHA1 (patch-aa) = c014ab66c2e6f32d66b55dec073ad9fccc1c5df0
SHA1 (patch-ab) = e2b98ae50ddc28c986e3235345a67af964f02a60
SHA1 (patch-ac) = f4d45c2ea45e3e8288cdb0363dc9dba127288990
SHA1 (patch-ad) = 8a9fb407307bcd823e6050ab65e9e20bb512e367
SHA1 (patch-ae) = f3854f86cb2780bf710db84e2bc38b51671dd4b1
SHA1 (patch-af) = db621ebb06d22d948513451c4b5b670494dd5d46
SHA1 (patch-ag) = ca121a6672f02808275b6ffe73ad1f2287e75443
SHA1 (patch-ah) = 88caa0cd5a7c689c28096b2f6537570c6dc7b493
SHA1 (patch-ai) = 79d0e1ac1d99fe4cb79eea957ba9f1153c39a783
SHA1 (patch-aj) = 7ba12e09e26b289be34e07c9e84eb2c69e890299

View File

@@ -0,0 +1,36 @@
$NetBSD: patch-aa,v 1.1.1.1 2002/06/15 09:31:39 shell Exp $
--- src/Makefile.orig Mon Jun 10 21:05:56 2002
+++ src/Makefile
@@ -1,20 +1,16 @@
-CC = gcc
# do you have imlib?
#No, I don't have that strange library
#IMLIB =
#LIBIMLIB =
-#Yes I have
-IMLIB = -DIMLIB
-LIBIMLIB = -lImlib
#CFLAGS = -Wall -g -DFOR_PILOT_COMPAT -O2 -fno-strength-reduce -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE=500L -D_BSD_SOURCE -D_SVID_SOURCE -DFUNCPROTO=15 -DNARROWPROTO
-CFLAGS = -Wall -g -DFOR_PILOT_COMPAT -O2 -fno-strength-reduce
+CFLAGS += -Wall -DFOR_PILOT_COMPAT -O2 -fno-strength-reduce
INC = -I./include -I./IMdkit/include -I/usr/include -I/usr/X11R6/include
-LIB = -L/usr/X11R6/lib -lXext -lX11 ./IMdkit/lib/libXimd.a -L/usr/lib/unicon2 -limmclient -Wl,-rpath=/usr/lib/unicon2 -limm_server -lpth -ldl
+LIB = -lXext -lX11 ./IMdkit/lib/libXimd.a -limmclient -limm_server -lpth
SRC = chinput.c init.c server.c config.c color.c util.c convert.c IC.c XIM.c focus.c root.c overspot.c onspot.c offspot.c voice.c keyboard.c handw.c hwengine.c loop.c
@@ -23,7 +19,7 @@
all: chinput
chinput: IMdkit/lib/libXimd.a $(OBJ)
- g++ -o chinput $(OBJ) $(LIB) $(LIBIMLIB)
+ $(CC) -o chinput $(OBJ) $(LDFLAGS) $(LIB) $(LIBIMLIB)
.c.o:
$(CC) -c $(CFLAGS) $(IMLIB) $(INC) $<

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ab,v 1.1.1.1 2002/06/15 09:31:39 shell Exp $
--- src/XIM.h.orig Mon Jun 10 21:19:55 2002
+++ src/XIM.h
@@ -25,7 +25,7 @@
//setenv XMODIFIERS @im=Chinput (csh, tcsh)
#define DEFAULT_IMNAME "Chinput"
-#define LOCALE_GB "zh_CN.GBK"
+#define LOCALE_GB "zh_CN.eucCN"
#define LOCALE_BIG5 "zh_TW.Big5"
//This input server support CJK by default

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ac,v 1.1.1.1 2002/06/15 09:31:39 shell Exp $
--- src/chinput.c.orig Mon Jun 10 21:16:56 2002
+++ src/chinput.c
@@ -75,7 +75,7 @@
HZloadRCFile(); //resource file
HZloadRCIME(); //IME lists from Chinput.ad
HZparseParameters(argc, argv); //parse parameters
- setlocale(LC_ALL, deflocale); //locale set
+ setlocale(LC_CTYPE, deflocale); //locale set
HZinitDisplay(); //display init
HZinitServerFont(); //font init
HZinitWindows(); //windows geometry init

View File

@@ -0,0 +1,31 @@
$NetBSD: patch-ad,v 1.1.1.1 2002/06/15 09:31:39 shell Exp $
--- src/config.c.orig Mon Jun 10 22:53:45 2002
+++ src/config.c
@@ -388,7 +388,7 @@
if(method == cur_inputmethod) return;
//change the encoding for later use
- if(!strcmp(chinputime[method].encoding, "GB"))
+ if(!strcmp(chinputime[method].encoding, "eucCN"))
HZServer.encoding = HZSERVER_ENCODING_GB;
else
HZServer.encoding = HZSERVER_ENCODING_BIG5;
@@ -681,7 +681,7 @@
if(HZServer.encoding == HZSERVER_ENCODING_GB){
for(i=0; i<index_ime; i++){
if(!strcmp(chinputime[i].name, imd) &&
- !strcmp(chinputime[i].encoding, "GB")){
+ !strcmp(chinputime[i].encoding, "eucCN")){
return i;
}
}
@@ -738,7 +738,7 @@
//chinput_imserver = IMM_OpenClient("127.0.0.1", 9010);
cur_inputmethod = id;
- if(!strcmp(chinputime[cur_inputmethod].encoding, "GB"))
+ if(!strcmp(chinputime[cur_inputmethod].encoding, "eucCN"))
HZServer.encoding = HZSERVER_ENCODING_GB;
else
HZServer.encoding = HZSERVER_ENCODING_BIG5;

View File

@@ -0,0 +1,22 @@
$NetBSD: patch-ae,v 1.1.1.1 2002/06/15 09:31:39 shell Exp $
--- src/init.c.orig Mon Jun 10 21:23:44 2002
+++ src/init.c
@@ -342,7 +342,7 @@
//enable two locales at the same time
strcpy(imlocale, IMLOCALE);
- if(getenv("LC_ALL") && strstr(getenv("LC_ALL"), "zh_TW")){
+ if(getenv("LC_CTYPE") && strstr(getenv("LC_CTYPE"), "zh_TW.Big5")){
strcpy(deflocale, LOCALE_BIG5);
//strcpy(imlocale, "zh_TW");
flag_encoding = HZSERVER_ENCODING_BIG5;
@@ -567,7 +567,7 @@
}
fclose(fp);
- if(strstr(getenv("LC_ALL"), "zh_TW"))
+ if(strstr(getenv("LC_CTYPE"), "zh_TW.Big5"))
cur_inputmethod = HZgetInputMethod(input_method_big5);
else
cur_inputmethod = HZgetInputMethod(input_method_gb);

View File

@@ -0,0 +1,15 @@
$NetBSD: patch-af,v 1.1.1.1 2002/06/15 09:31:39 shell Exp $
--- resource/Chinput.ad.orig Mon Jun 10 21:55:02 2002
+++ resource/Chinput.ad
@@ -55,8 +55,8 @@
! 16 point font set
!
chinput.font = 8x16
-chinput.gbfont = -*-song-medium-r-normal--16-*-*-*-*-*-gbk-0
-chinput.big5font = -*-song-medium-r-normal--16-*-*-*-*-*-big5-0
+chinput.gbfont = -*-medium-r-normal--16-*-*-*-*-*-gb2312.1980-0
+chinput.big5font = -*-medium-r-normal--16-*-*-*-*-*-big5-0
!
!
! inputbar width in chars

View File

@@ -0,0 +1,12 @@
$NetBSD: patch-ag,v 1.1 2006/01/04 12:04:46 rxg Exp $
--- src/handw.c.orig 2006-01-04 19:57:26.000000000 +0800
+++ src/handw.c
@@ -25,7 +25,6 @@
#define F_STRING 0
#define F_CONTROL 1
-extern int ForwardEvent();
static int in_hwkeys(int x0, int y0);
static void set_hwkey(int n, char c, int f, char *label, char *blabel,
int x, int y, int w, int h);

View File

@@ -0,0 +1,12 @@
$NetBSD: patch-ah,v 1.1 2006/01/04 12:04:46 rxg Exp $
--- src/keyboard.c.orig 2006-01-04 19:58:25.000000000 +0800
+++ src/keyboard.c
@@ -24,7 +24,6 @@
#define INC (x0 += KEY_WIDTH)
#define HALFINC (x0 += KEY_WIDTH/2)
-extern int ForwardEvent();
static void set_key(int n, unsigned long keysym, int x, int y, int w, int h);
static int in_keys(int x0, int y0);

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ai,v 1.1 2007/07/24 15:14:50 joerg Exp $
--- src/IMdkit/lib/IMConn.c.orig 2007-07-24 14:18:46.000000000 +0000
+++ src/IMdkit/lib/IMConn.c
@@ -30,7 +30,7 @@ IN CONNECTION WITH THE USE OR PERFORMANC
******************************************************************/
#include <X11/Xlib.h>
-#include <malloc.h>
+#include <stdlib.h>
#include "IMdkit.h"
#include <stdarg.h>

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-aj,v 1.1 2009/07/06 16:06:58 joerg Exp $
--- src/IMdkit/lib/i18nClbk.c.orig 2010-05-31 09:18:25.000000000 +0200
+++ src/IMdkit/lib/i18nClbk.c
@@ -129,7 +129,7 @@ int _Xi18nPreeditDrawCallback (XIMS ims,
XIMPreeditDrawCallbackStruct *draw =
(XIMPreeditDrawCallbackStruct *) &preedit_CB->todo.draw;
CARD16 connect_id = call_data->any.connect_id;
- register int feedback_count;
+ int feedback_count;
register int i;
BITMASK32 status = 0x0;