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;

128
inputmethod/Makefile Normal file
View File

@@ -0,0 +1,128 @@
# $NetBSD: Makefile,v 1.55 2013/03/13 15:08:16 ryoon Exp $
#
COMMENT= Input method tools and libraries
SUBDIR+= Chinput
SUBDIR+= anthy
SUBDIR+= anthy-elisp
SUBDIR+= canna
SUBDIR+= canna-canuum
SUBDIR+= canna-dict
SUBDIR+= canna-lib
SUBDIR+= canna-server
SUBDIR+= dbskkd-cdb
SUBDIR+= fcitx
SUBDIR+= gcin
SUBDIR+= gtk-im-libthai
SUBDIR+= ibus
SUBDIR+= ibus-anthy
SUBDIR+= ibus-array
SUBDIR+= ibus-chewing
SUBDIR+= ibus-el
SUBDIR+= ibus-handwrite
SUBDIR+= ibus-hangul
SUBDIR+= ibus-input-pad
SUBDIR+= ibus-m17n
SUBDIR+= ibus-mozc
SUBDIR+= ibus-pinyin
SUBDIR+= ibus-qt
SUBDIR+= ibus-skk
SUBDIR+= ibus-t9
SUBDIR+= ibus-table
SUBDIR+= ibus-table-chinese
SUBDIR+= ibus-table-others
SUBDIR+= ibus-tegaki
SUBDIR+= ibus-unikey
SUBDIR+= iiimecf
SUBDIR+= im-ja
SUBDIR+= imhangul
SUBDIR+= imhangul_status_applet
SUBDIR+= input-pad
SUBDIR+= ja-freewnn-lib
SUBDIR+= ja-freewnn-server
SUBDIR+= kasumi
SUBDIR+= kimera
SUBDIR+= kimera-tomoe-gtk
SUBDIR+= kinput2
SUBDIR+= libchewing
SUBDIR+= libchewing02
SUBDIR+= libhangul
SUBDIR+= libskk
SUBDIR+= libtabe
SUBDIR+= m17n-im-config
SUBDIR+= mozc-elisp
SUBDIR+= mozc-server
SUBDIR+= mozc-tool
SUBDIR+= multiskkserv
SUBDIR+= nabi
SUBDIR+= novel-pinyin
SUBDIR+= p5-zinnia
SUBDIR+= prime
SUBDIR+= prime-dict
SUBDIR+= prime-el
SUBDIR+= py-input-pad
SUBDIR+= py-zinnia
SUBDIR+= ruby-zinnia
SUBDIR+= scim
SUBDIR+= scim-anthy
SUBDIR+= scim-array
SUBDIR+= scim-canna
SUBDIR+= scim-ccinput
SUBDIR+= scim-chewing
SUBDIR+= scim-fcitx
SUBDIR+= scim-hangul
SUBDIR+= scim-input-pad
SUBDIR+= scim-m17n
SUBDIR+= scim-pinyin
SUBDIR+= scim-prime
SUBDIR+= scim-python
SUBDIR+= scim-sinhala
SUBDIR+= scim-skk
SUBDIR+= scim-tables
SUBDIR+= scim-tables-vietnamese-ext
SUBDIR+= scim-tegaki
SUBDIR+= scim-thai
SUBDIR+= scim-tomoe
SUBDIR+= scim-uim
SUBDIR+= scim-unikey
SUBDIR+= sj3
SUBDIR+= sj3-client
SUBDIR+= sj3-server
SUBDIR+= skk
SUBDIR+= skk-jisyo
SUBDIR+= skk-jisyo-cdb
SUBDIR+= skkfep
SUBDIR+= skkinput
SUBDIR+= skkserv
SUBDIR+= skktools
SUBDIR+= tc
SUBDIR+= tegaki-pygtk
SUBDIR+= tegaki-python
SUBDIR+= tegaki-recognize
SUBDIR+= tegaki-tools
SUBDIR+= tegaki-train
SUBDIR+= tegaki-wagomu
SUBDIR+= tegaki-wagomu-japanese
SUBDIR+= tegaki-wagomu-japanese-joyo
SUBDIR+= tegaki-wagomu-japanese-kyoiku
SUBDIR+= tegaki-wagomu-simplified-chinese
SUBDIR+= tegaki-zinnia-japanese
SUBDIR+= tegaki-zinnia-japanese-joyo
SUBDIR+= tegaki-zinnia-japanese-kyoiku
SUBDIR+= tegaki-zinnia-japanese-light
SUBDIR+= tegaki-zinnia-simplified-chinese
SUBDIR+= tegaki-zinnia-simplified-chinese-light
SUBDIR+= tegaki-zinnia-traditional-chinese
SUBDIR+= tegaki-zinnia-traditional-chinese-light
SUBDIR+= tomoe
SUBDIR+= tomoe-gtk
SUBDIR+= uim
SUBDIR+= uim-elisp
SUBDIR+= uim-tomoe-gtk
SUBDIR+= unicon-im
SUBDIR+= xcin
SUBDIR+= zinnia
SUBDIR+= zinnia-tomoe
.include "../mk/misc/category.mk"

View File

@@ -0,0 +1 @@
Emacs lisp files for inputmethod/anthy.

View File

@@ -0,0 +1,27 @@
# $NetBSD: Makefile,v 1.12 2013/02/17 19:18:03 dholland Exp $
.include "../../inputmethod/anthy/Makefile.common"
PKGNAME= ${EMACS_PKGNAME_PREFIX}anthy-elisp-${ANTHY_VERSION}
PKGREVISION= 5
CATEGORIES= inputmethod editors
MAINTAINER= taya@NetBSD.org
COMMENT= Emacs lisp files for inputmethod/anthy
DEPENDS+= anthy>=${ANTHY_VERSION}:../../inputmethod/anthy
GNU_CONFIGURE= yes
CONFIGURE_ENV+= EMACS=${EMACS_BIN:Q}
EMACS_MODULES+= base leim
.include "../../editors/emacs/modules.mk"
do-build:
cd ${WRKSRC}/src-util && ${MAKE} elc-stamp
do-install:
${INSTALL_DATA_DIR} ${DESTDIR}${EMACS_LISPPREFIX}/anthy
${INSTALL_DATA} ${WRKSRC}/src-util/*.el ${DESTDIR}${EMACS_LISPPREFIX}/anthy
${INSTALL_DATA} ${WRKSRC}/src-util/*.elc ${DESTDIR}${EMACS_LISPPREFIX}/anthy
.include "../../mk/bsd.pkg.mk"

View File

@@ -0,0 +1,15 @@
@comment $NetBSD: PLIST,v 1.8 2013/03/10 14:14:31 obache Exp $
${EMACS_LISPPREFIX}/anthy/anthy-azik.el
${EMACS_LISPPREFIX}/anthy/anthy-azik.elc
${EMACS_LISPPREFIX}/anthy/anthy-conf.el
${EMACS_LISPPREFIX}/anthy/anthy-conf.elc
${EMACS_LISPPREFIX}/anthy/anthy-dic.el
${EMACS_LISPPREFIX}/anthy/anthy-dic.elc
${EMACS_LISPPREFIX}/anthy/anthy-isearch.el
${EMACS_LISPPREFIX}/anthy/anthy-isearch.elc
${EMACS_LISPPREFIX}/anthy/anthy-kyuri.el
${EMACS_LISPPREFIX}/anthy/anthy-kyuri.elc
${EMACS_LISPPREFIX}/anthy/anthy.el
${EMACS_LISPPREFIX}/anthy/anthy.elc
${EMACS_LISPPREFIX}/anthy/leim-list.el
${FOR_emacs_no_byte_compile}${EMACS_LISPPREFIX}/anthy/leim-list.elc

1
inputmethod/anthy/DESCR Normal file
View File

@@ -0,0 +1 @@
Anthy is a free and secure Japanese input method.

View File

@@ -0,0 +1,49 @@
# $NetBSD: Makefile,v 1.17 2012/10/06 14:25:10 asau Exp $
.include "../../inputmethod/anthy/Makefile.common"
EXTRACT_ONLY= ${DISTNAME}.tar.gz
MAINTAINER= taya@NetBSD.org
COMMENT= Kana Kanji conversion system
USE_LIBTOOL= yes
USE_LANGUAGES= c
USE_TOOLS+= printf
GNU_CONFIGURE= yes
CONFIGURE_ENV+= EMACS=no
EGDIR= ${PREFIX}/share/examples/anthy
INSTALL_MAKE_FLAGS+= sysconfdir=${EGDIR}
INSTALLATION_DIRS= share/doc/anthy
CONF_FILES+= ${EGDIR}/anthy-conf ${PKG_SYSCONFDIR}/anthy-conf
PKGCONFIG_OVERRIDE+= anthy.pc.in
UNLIMIT_RESOURCES+= stacksize
.include "options.mk"
post-patch:
.if !empty(PKG_OPTIONS:Manthy-2ch-dict)
${CP} ${DISTDIR}/2ch.t ${WRKSRC}/mkworddic
# Don't change "\n".
@${PRINTF} "/read @top_srcdir@\\\\/mkworddic\\\\/base.t\na\nread @top_srcdir@/mkworddic/2ch.t\n.\nw\n" | \
ed -s ${WRKSRC}/mkworddic/dict.args.in
.endif
.if !empty(PKG_OPTIONS:Manthy-okinawa-dict)
${CP} ${DISTDIR}/${OKIDIC_VERSION}.t ${WRKSRC}/mkworddic/okinawa.t
# Don't change "\n".
@${PRINTF} "/read @top_srcdir@\\\\/mkworddic\\\\/base.t\na\nread @top_srcdir@/mkworddic/okinawa.t\n.\nw\n" | \
ed -s ${WRKSRC}/mkworddic/dict.args.in
.endif
post-install:
${INSTALL_DATA} ${WRKSRC}/doc/DICUTIL ${DESTDIR}${PREFIX}/share/doc/anthy
${INSTALL_DATA} ${WRKSRC}/doc/ELISP ${DESTDIR}${PREFIX}/share/doc/anthy
${INSTALL_DATA} ${WRKSRC}/doc/GUIDE.english ${DESTDIR}${PREFIX}/share/doc/anthy
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/anthy
${INSTALL_DATA} ${WRKSRC}/README.en ${DESTDIR}${PREFIX}/share/doc/anthy
.include "../../mk/bsd.pkg.mk"

View File

@@ -0,0 +1,14 @@
# $NetBSD: Makefile.common,v 1.8 2009/08/03 23:30:06 taya Exp $
# used by inputmethod/anthy/Makefile
# used by inputmethod/anthy-elisp/Makefile
ANTHY_VERSION= 9100h
DISTNAME= anthy-${ANTHY_VERSION}
CATEGORIES= inputmethod
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_JP:=anthy/37536/}
DISTFILES= ${DISTNAME}.tar.gz
DISTINFO_FILE= ${.CURDIR}/../../inputmethod/anthy/distinfo
PATCHDIR= ${.CURDIR}/../../inputmethod/anthy/patches
HOMEPAGE= http://anthy.sourceforge.jp/

21
inputmethod/anthy/PLIST Normal file
View File

@@ -0,0 +1,21 @@
@comment $NetBSD: PLIST,v 1.6 2009/06/14 18:01:29 joerg Exp $
bin/anthy-agent
bin/anthy-dic-tool
bin/anthy-morphological-analyzer
include/anthy/anthy.h
include/anthy/dicutil.h
include/anthy/input.h
lib/libanthy.la
lib/libanthydic.la
lib/libanthyinput.la
lib/pkgconfig/anthy.pc
share/anthy/anthy.dic
share/anthy/dic-tool-usage.txt
share/anthy/typetab
share/anthy/zipcode.t
share/doc/anthy/DICUTIL
share/doc/anthy/ELISP
share/doc/anthy/GUIDE.english
share/doc/anthy/README
share/doc/anthy/README.en
share/examples/anthy/anthy-conf

View File

@@ -0,0 +1,13 @@
# $NetBSD: buildlink3.mk,v 1.8 2012/05/07 01:53:38 dholland Exp $
BUILDLINK_TREE+= anthy
.if !defined(ANTHY_BUILDLINK3_MK)
ANTHY_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.anthy+= anthy>=6300
BUILDLINK_ABI_DEPENDS.anthy+= anthy>=7900
BUILDLINK_PKGSRCDIR.anthy?= ../../inputmethod/anthy
.endif # ANTHY_BUILDLINK3_MK
BUILDLINK_TREE+= -anthy

View File

@@ -0,0 +1,11 @@
$NetBSD: distinfo,v 1.11 2009/08/03 23:30:06 taya Exp $
SHA1 (2ch.t) = 2160d7b0079e2c1a14093da968f34e7f8dbc07c2
RMD160 (2ch.t) = b05902485829eebb4e09c554f095275f5278dd8b
Size (2ch.t) = 142157 bytes
SHA1 (anthy-9100h.tar.gz) = bfea9e74e208c4b976b6bd7ac6784cd290c636fd
RMD160 (anthy-9100h.tar.gz) = 6ddb26c0a47daf2f765b2973817cfbe84fa85606
Size (anthy-9100h.tar.gz) = 4446148 bytes
SHA1 (okinawa-20090801.t) = 60026d16c85e35053169f40175b504cee749e7d9
RMD160 (okinawa-20090801.t) = 6def11412277a1fadefa74ddbc98058e5c13540b
Size (okinawa-20090801.t) = 165520 bytes

View File

@@ -0,0 +1,22 @@
# $NetBSD: options.mk,v 1.3 2009/08/03 23:30:06 taya Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.anthy
PKG_SUPPORTED_OPTIONS= anthy-2ch-dict anthy-okinawa-dict
PKG_OPTIONS_LEGACY_OPTS+= 2ch_dict:anthy-2ch-dict
PKG_OPTIONS_LEGACY_OPTS+= okinawa_dict:anthy-okinawa-dict
.include "../../mk/bsd.options.mk"
###
### Optional dictionary support
###
.if !empty(PKG_OPTIONS:Manthy-2ch-dict)
DISTFILES+= 2ch.t
SITES.2ch.t+= http://omaemona.sourceforge.net/packages/Zisyo/
.endif
.if !empty(PKG_OPTIONS:Manthy-okinawa-dict)
OKIDIC_VERSION= okinawa-20090801
DISTFILES+= ${OKIDIC_VERSION}.t
SITES.${OKIDIC_VERSION}.t+= http://www.ofug.net/~yamajun/files/o-dic/
.endif

View File

@@ -0,0 +1 @@
Canuum is a Japanese input frontend program from Wnn tty frontend uum.

View File

@@ -0,0 +1,9 @@
===========================================================================
$NetBSD: MESSAGE,v 1.2 2006/07/05 04:48:28 jlam Exp $
You at least should set up key functions in ~/.canna, e.g.:
(set-key 'alpha-mode "\C-i" 'japanese-mode)
(set-key 'empty-mode "\C-i" 'alpha-mode)
===========================================================================

View File

@@ -0,0 +1,34 @@
# $NetBSD: Makefile,v 1.13 2012/10/06 14:25:10 asau Exp $
PKGREVISION= 3
CANNA_MODULE= canuum
.include "../../inputmethod/canna/Makefile.common"
MAINTAINER= pkgsrc-users@NetBSD.org
INSTALLATION_DIRS= ${PKGMANDIR}/ja_JP.EUC/man1
CONFIGURE_DIRS= . canuum
BUILD_DIRS= canuum
INSTALL_MAKE_FLAGS+= INSTUGIDFLAGS=
SPECIAL_PERMS+= bin/canuum ${SETUID_ROOT_PERMS}
.include "../../mk/curses.buildlink3.mk"
SUBST_CLASSES+= fix_curs
SUBST_STAGE.fix_curs= post-patch
SUBST_MESSAGE.fix_curs= Fixing curses
SUBST_FILES.fix_curs+= canuum/Imakefile
SUBST_SED.fix_curs+= -e 's/TERMCAP_LIB = .*/TERMCAP_LIB = -l'${BUILDLINK_LIBNAME.curses}'/g'
.include "../../inputmethod/canna-lib/buildlink3.mk"
pre-configure:
${CP} ${PKGSRCDIR}/mk/gnu-config/config.guess ${WRKSRC}/canuum
${CP} ${PKGSRCDIR}/mk/gnu-config/config.sub ${WRKSRC}/canuum
${LN} -fs ${WRKSRC}/cannaconf.h ${WRKSRC}/canuum
${LN} -fs ${WRKSRC}/canna/ccompat.h ${WRKSRC}/canuum
.include "../../mk/bsd.pkg.mk"

View File

@@ -0,0 +1,4 @@
@comment $NetBSD: PLIST,v 1.3 2010/02/20 10:34:04 obache Exp $
bin/canuum
man/ja_JP.EUC/man1/canuum.1
man/man1/canuum.1

View File

@@ -0,0 +1 @@
Dictionary part of Canna Japanese input method.

View File

@@ -0,0 +1,75 @@
# $NetBSD: Makefile,v 1.13 2012/10/06 14:25:10 asau Exp $
PKGREVISION= 2
CANNA_MODULE= dict
MAKE_JOBS_SAFE= no
.include "../../inputmethod/canna/Makefile.common"
BUILD_DEPENDS+= Canna-server>=${CANNA_VERSION}:../../inputmethod/canna-server
EVAL_PREFIX+= CANNASERVERBINDIR=Canna-server
.for cmd in MERGE FORCPP FORSORT SPLITWORD MERGEWORD CRXGRAM CRXDIC CRFREQ KPDIC
CANNA_CMD_SED_SCRIPT+= \
-e 's|\(${cmd} = \).*/\(.*\)|\1${CANNASERVERBINDIR}/bin/\2|'
.endfor
CONFIGURE_DIRS= ${DICT_WRKSRC}
DICT_WRKSRC= ${WRKSRC}/dic/ideo
CANNA_DICTDIR= ${PREFIX}/libdata/canna
PKG_GROUPS= ${CANNA_GROUP}
PKG_USERS= ${CANNA_USER}:${CANNA_GROUP}
post-patch:
@${MV} ${WRKSRC}/Canna.conf ${WRKSRC}/Canna.conf.orig
@${SED} -e 's|\(DicDir.*=\).*|\1${IMDICTDIR}/canna|' \
${WRKSRC}/Canna.conf.orig > ${WRKSRC}/Canna.conf
@for file in `${FIND} ${DICT_WRKSRC} -name Imakefile -print`; do \
${MV} $$file $$file.orig; \
${SED} ${CANNA_CMD_SED_SCRIPT} $$file.orig > $$file; \
done
INSTALLATION_DIRS+= ${CANNA_DICTDIR}
do-install:
${INSTALL_DATA} ${DICT_WRKSRC}/grammar/fuzokugo.cbd \
${DESTDIR}${CANNA_DICTDIR}
${INSTALL_DATA} ${DICT_WRKSRC}/words/bushu.cld \
${DESTDIR}${CANNA_DICTDIR}
${INSTALL_DATA} ${DICT_WRKSRC}/words/dics.dir \
${DESTDIR}${CANNA_DICTDIR}
${INSTALL_DATA} ${DICT_WRKSRC}/words/iroha.cbd \
${DESTDIR}${CANNA_DICTDIR}
${INSTALL_DATA} ${DICT_WRKSRC}/words/iroha.cld \
${DESTDIR}${CANNA_DICTDIR}
${INSTALL_DATA} ${DICT_WRKSRC}/words/chimei.t \
${DESTDIR}${CANNA_DICTDIR}/chimei.ctd
${INSTALL_DATA} ${DICT_WRKSRC}/words/hojomwd.t \
${DESTDIR}${CANNA_DICTDIR}/hojomwd.ctd
${INSTALL_DATA} ${DICT_WRKSRC}/words/hojoswd.t \
${DESTDIR}${CANNA_DICTDIR}/hojoswd.ctd
${INSTALL_DATA} ${DICT_WRKSRC}/words/kanasmpl.t \
${DESTDIR}${CANNA_DICTDIR}/kanasmpl.ctd
${INSTALL_DATA} ${DICT_WRKSRC}/words/katakana.t \
${DESTDIR}${CANNA_DICTDIR}/katakana.ctd
${INSTALL_DATA} ${DICT_WRKSRC}/words/keishiki.t \
${DESTDIR}${CANNA_DICTDIR}/keishiki.ctd
${INSTALL_DATA} ${DICT_WRKSRC}/words/necgaiji.t \
${DESTDIR}${CANNA_DICTDIR}/necgaiji.ctd
${INSTALL_DATA} ${DICT_WRKSRC}/words/number.t \
${DESTDIR}${CANNA_DICTDIR}/number.ctd
${INSTALL_DATA} ${DICT_WRKSRC}/words/software.t \
${DESTDIR}${CANNA_DICTDIR}/software.ctd
${INSTALL_DATA} ${DICT_WRKSRC}/words/suffix.t \
${DESTDIR}${CANNA_DICTDIR}/suffix.ctd
REQD_DIRS_PERMS+= ${CANNA_DICTDIR} ${CANNA_USER} ${CANNA_GROUP} 0775
.for d in fuzokugo.cbd bushu.cld dics.dir iroha.cbd iroha.cld \
chimei.ctd hojomwd.ctd hojoswd.ctd kanasmpl.ctd katakana.ctd \
keishiki.ctd necgaiji.ctd number.ctd software.ctd suffix.ctd
SPECIAL_PERMS+= ${CANNA_DICTDIR}/${d} ${CANNA_USER} ${CANNA_GROUP} 0664
.endfor
.include "../../mk/bsd.pkg.mk"

View File

@@ -0,0 +1,16 @@
@comment $NetBSD: PLIST,v 1.4 2009/06/14 18:01:29 joerg Exp $
libdata/canna/bushu.cld
libdata/canna/chimei.ctd
libdata/canna/dics.dir
libdata/canna/fuzokugo.cbd
libdata/canna/hojomwd.ctd
libdata/canna/hojoswd.ctd
libdata/canna/iroha.cbd
libdata/canna/iroha.cld
libdata/canna/kanasmpl.ctd
libdata/canna/katakana.ctd
libdata/canna/keishiki.ctd
libdata/canna/necgaiji.ctd
libdata/canna/number.ctd
libdata/canna/software.ctd
libdata/canna/suffix.ctd

View File

@@ -0,0 +1 @@
Library part of Canna Japanese input method.

View File

@@ -0,0 +1,30 @@
# $NetBSD: Makefile,v 1.14 2012/10/06 14:25:10 asau Exp $
PKGREVISION= 3
CANNA_MODULE= lib
.include "../../inputmethod/canna/Makefile.common"
# (1) Change SUBDIRS.
# (2) Don't install `forcpp', `kpdic'.
#
post-patch:
@${MV} ${WRKSRC}/Imakefile ${WRKSRC}/Imakefile.orig
@${SED} -e 's|\(SUBDIRS = lib canna\).*\( misc\)|\1 cmd/forcpp cmd/kpdic dic/phono\2|' \
-e 's|\(SGSDIR = \).*|\1 lib canna dic/phono misc doc|' \
${WRKSRC}/Imakefile.orig > ${WRKSRC}/Imakefile
.for f in forcpp kpdic
@${MV} ${WRKSRC}/cmd/${f}/Imakefile ${WRKSRC}/cmd/${f}/Imakefile.orig
@${SED} -e '/InstallProgram/d' ${WRKSRC}/cmd/${f}/Imakefile.orig \
> ${WRKSRC}/cmd/${f}/Imakefile
.endfor
MAKE_ENV+= AWK=${AWK:Q}
post-extract:
${CP} ${FILESDIR}/dic-phono-filter.awk ${WRKSRC}/dic/phono/
post-configure:
@${LN} -s ${WRKSRC}/server/*.h ${WRKSRC}/include
.include "../../mk/bsd.pkg.mk"

150
inputmethod/canna-lib/PLIST Normal file
View File

@@ -0,0 +1,150 @@
@comment $NetBSD: PLIST,v 1.8 2009/06/14 18:01:29 joerg Exp $
include/canna/RK.h
include/canna/jrkanji.h
include/canna/keydef.h
include/canna/mfdef.h
lib/libRKC.a
lib/libRKC.so
lib/libRKC.so.1
lib/libRKC.so.1.1
lib/libRKC16.a
lib/libRKC16.so
lib/libRKC16.so.1
lib/libRKC16.so.1.1
lib/libcanna.a
lib/libcanna.so
lib/libcanna.so.1
lib/libcanna.so.1.1
lib/libcanna16.a
lib/libcanna16.so
lib/libcanna16.so.1
lib/libcanna16.so.1.1
man/ja_JP.EUC/man3/RkBgnBun.3
man/ja_JP.EUC/man3/RkCloseRoma.3
man/ja_JP.EUC/man3/RkCvtEuc.3
man/ja_JP.EUC/man3/RkCvtHan.3
man/ja_JP.EUC/man3/RkCvtHira.3
man/ja_JP.EUC/man3/RkCvtKana.3
man/ja_JP.EUC/man3/RkCvtRoma.3
man/ja_JP.EUC/man3/RkCvtZen.3
man/ja_JP.EUC/man3/RkDefineDic.3
man/ja_JP.EUC/man3/RkDeleteDic.3
man/ja_JP.EUC/man3/RkEndBun.3
man/ja_JP.EUC/man3/RkEnlarge.3
man/ja_JP.EUC/man3/RkFinalize.3
man/ja_JP.EUC/man3/RkGetDicList.3
man/ja_JP.EUC/man3/RkGetKanji.3
man/ja_JP.EUC/man3/RkGetLex.3
man/ja_JP.EUC/man3/RkGetStat.3
man/ja_JP.EUC/man3/RkGetYomi.3
man/ja_JP.EUC/man3/RkGoto.3
man/ja_JP.EUC/man3/RkInitialize.3
man/ja_JP.EUC/man3/RkIntro.3
man/ja_JP.EUC/man3/RkLeft.3
man/ja_JP.EUC/man3/RkMapPhonogram.3
man/ja_JP.EUC/man3/RkMapRoma.3
man/ja_JP.EUC/man3/RkMountDic.3
man/ja_JP.EUC/man3/RkNext.3
man/ja_JP.EUC/man3/RkNfer.3
man/ja_JP.EUC/man3/RkOpenRoma.3
man/ja_JP.EUC/man3/RkPrev.3
man/ja_JP.EUC/man3/RkRemountDic.3
man/ja_JP.EUC/man3/RkResize.3
man/ja_JP.EUC/man3/RkRight.3
man/ja_JP.EUC/man3/RkShorten.3
man/ja_JP.EUC/man3/RkStoreYomi.3
man/ja_JP.EUC/man3/RkUnmountDic.3
man/ja_JP.EUC/man3/RkXfer.3
man/ja_JP.EUC/man3/XKanjiControl.3
man/ja_JP.EUC/man3/XLookupKanjiString.3
man/ja_JP.EUC/man3/cannalib.3
man/ja_JP.EUC/man3/jrKanjiControl.3
man/ja_JP.EUC/man3/jrKanjiString.3
man/ja_JP.EUC/man3/uilib.3
man/man3/RkBgnBun.3
man/man3/RkCloseRoma.3
man/man3/RkCvtEuc.3
man/man3/RkCvtHan.3
man/man3/RkCvtHira.3
man/man3/RkCvtKana.3
man/man3/RkCvtRoma.3
man/man3/RkCvtZen.3
man/man3/RkDefineDic.3
man/man3/RkDeleteDic.3
man/man3/RkEndBun.3
man/man3/RkEnlarge.3
man/man3/RkFinalize.3
man/man3/RkGetDicList.3
man/man3/RkGetKanji.3
man/man3/RkGetLex.3
man/man3/RkGetStat.3
man/man3/RkGetYomi.3
man/man3/RkGoto.3
man/man3/RkInitialize.3
man/man3/RkIntro.3
man/man3/RkLeft.3
man/man3/RkMapPhonogram.3
man/man3/RkMapRoma.3
man/man3/RkMountDic.3
man/man3/RkNext.3
man/man3/RkNfer.3
man/man3/RkOpenRoma.3
man/man3/RkPrev.3
man/man3/RkRemountDic.3
man/man3/RkResize.3
man/man3/RkRight.3
man/man3/RkShorten.3
man/man3/RkStoreYomi.3
man/man3/RkUnmountDic.3
man/man3/RkXfer.3
man/man3/XKanjiControl.3
man/man3/XLookupKanjiString.3
man/man3/cannalib.3
man/man3/jrKanjiControl.3
man/man3/jrKanjiString.3
man/man3/uilib.3
share/canna/default.canna
share/canna/dic/default.cbp
share/canna/dic/english.cbp
share/canna/dic/jdaemon.cbp
share/canna/dic/just.cbp
share/canna/dic/kaisoku.cbp
share/canna/dic/kana.cbp
share/canna/dic/lan5.cbp
share/canna/dic/matsu.cbp
share/canna/dic/newjis.cbp
share/canna/dic/romaji.cbp
share/canna/dic/sample/src/default.ctd
share/canna/dic/sample/src/english.ctd
share/canna/dic/sample/src/jdaemon.ctd
share/canna/dic/sample/src/just.ctd
share/canna/dic/sample/src/kaisoku.ctd
share/canna/dic/sample/src/kana.ctd
share/canna/dic/sample/src/lan5.ctd
share/canna/dic/sample/src/matsu.ctd
share/canna/dic/sample/src/newjis.ctd
share/canna/dic/sample/src/romaji.ctd
share/canna/dic/sample/src/sokuon.ctd
share/canna/dic/sample/src/tut.ctd
share/canna/dic/sample/src/vje.ctd
share/canna/dic/sample/src/wx2+.ctd
share/canna/dic/sokuon.cbp
share/canna/dic/tut.cbp
share/canna/dic/vje.cbp
share/canna/dic/wx2+.cbp
share/canna/sample/1.1.canna
share/canna/sample/1.2.canna
share/canna/sample/fixer.canna
share/canna/sample/jdemon.canna
share/canna/sample/just.canna
share/canna/sample/lan5.canna
share/canna/sample/matsu.canna
share/canna/sample/modes.canna
share/canna/sample/sample.canna
share/canna/sample/skk.canna
share/canna/sample/src/is.c
share/canna/sample/tut.canna
share/canna/sample/unix.canna
share/canna/sample/verbose.canna
share/canna/sample/vje.canna
share/canna/sample/wx2+.canna

View File

@@ -0,0 +1,12 @@
# $NetBSD: buildlink3.mk,v 1.7 2009/03/20 19:24:46 joerg Exp $
BUILDLINK_TREE+= Canna-lib
.if !defined(CANNA_LIB_BUILDLINK3_MK)
CANNA_LIB_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.Canna-lib+= Canna-lib>=3.6pl4
BUILDLINK_PKGSRCDIR.Canna-lib?= ../../inputmethod/canna-lib
.endif # CANNA_LIB_BUILDLINK3_MK
BUILDLINK_TREE+= -Canna-lib

View File

@@ -0,0 +1 @@
Server part of Canna Japanese input method.

View File

@@ -0,0 +1,11 @@
# $NetBSD: INSTALL,v 1.3 2003/09/23 15:14:54 uebayasi Exp $
case ${STAGE} in
POST-INSTALL)
(${GREP} -v ^# /etc/services | ${GREP} 'canna.*5680' >/dev/null) || \
(${ECHO} "" >> /etc/services; \
${ECHO} "# canna package" >> /etc/services; \
${ECHO} "canna 5680/tcp" >> /etc/services; \
)
;;
esac

View File

@@ -0,0 +1,20 @@
===========================================================================
$NetBSD: MESSAGE,v 1.5 2005/12/05 20:50:23 rillig Exp $
If you want Canna server to boot automatically,
1) Copy ${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR}/canna to /etc/rc.d/.
2) Add the following line to /etc/rc.conf.
canna=YES canna_flags="-u ${CANNA_USER}"
canna_flags="-u ${CANNA_USER}" is not required, but recommended. Note
that our Canna package no longer uses setuid(2) to make the server run
as user "${CANNA_USER}", owing to the implementation of "-u" option (3.6
and above). See cannaserver(1M).
Also note that by default cannaserver(1M) no longer allows connections
through tcp port 5680. You need to explicitly specify the port by the
"-inet" option.
===========================================================================

View File

@@ -0,0 +1,37 @@
# $NetBSD: Makefile,v 1.22 2010/02/20 10:48:00 obache Exp $
PKGREVISION= 4
CANNA_MODULE= server
.include "../../inputmethod/canna/Makefile.common"
PKG_DESTDIR_SUPPORT= destdir
INSTALL_TARGET= instserver
MESSAGE_SUBST+= CANNA_USER=${CANNA_USER}
MESSAGE_SUBST+= CANNA_GROUP=${CANNA_GROUP}
PKG_GROUPS= ${CANNA_GROUP}
PKG_USERS= ${CANNA_USER}:${CANNA_GROUP}
MAKE_DIRS+= ${IMDICTDIR}
OWN_DIRS+= ${IMDICTDIR}/canna
OWN_DIRS+= ${IMDICTDIR}/canna/canna
OWN_DIRS_PERMS+= ${CANNA_SPOOL} \
${CANNA_USER} ${CANNA_GROUP} ${CANNA_MODE}
RCD_SCRIPTS= canna
.include "../../inputmethod/canna-lib/buildlink3.mk"
post-patch:
${MV} ${WRKSRC}/Imakefile ${WRKSRC}/Imakefile.orig
${SED} -e 's|\(SUBDIRS = \).*|\1 canna lib server cmd doc|' \
-e 's|\(SERVERDIR = \).*|\1 server cmd doc|' \
${WRKSRC}/Imakefile.orig > ${WRKSRC}/Imakefile
${MV} ${WRKSRC}/Canna.conf ${WRKSRC}/Canna.conf.orig
${SED} -e 's|\(DicDir.*=\).*|\1${IMDICTDIR}/canna|' \
${WRKSRC}/Canna.conf.orig > ${WRKSRC}/Canna.conf
.include "../../mk/bsd.pkg.mk"

View File

@@ -0,0 +1,78 @@
@comment $NetBSD: PLIST,v 1.7 2005/05/02 20:33:59 reed Exp $
bin/addwords
bin/canlisp
bin/cannacheck
bin/cannastat
bin/catdic
bin/chmoddic
bin/cpdic
bin/crfreq
bin/crxdic
bin/crxgram
bin/cshost
bin/ctow
bin/delwords
bin/dicar
bin/dpbindic
bin/dpromdic
bin/dpxdic
bin/forcpp
bin/forsort
bin/kpdic
bin/lsdic
bin/mergeword
bin/mkbindic
bin/mkdic
bin/mkromdic
bin/mvdic
bin/rmdic
bin/splitword
bin/syncdic
bin/wtoc
man/ja_JP.EUC/man1/addwords.1
man/ja_JP.EUC/man1/cannacheck.1
man/ja_JP.EUC/man1/cannakill.1
man/ja_JP.EUC/man1/cannaserver.1
man/ja_JP.EUC/man1/cannastat.1
man/ja_JP.EUC/man1/catdic.1
man/ja_JP.EUC/man1/chmoddic.1
man/ja_JP.EUC/man1/cpdic.1
man/ja_JP.EUC/man1/cshost.1
man/ja_JP.EUC/man1/ctow.1
man/ja_JP.EUC/man1/delwords.1
man/ja_JP.EUC/man1/dicar.1
man/ja_JP.EUC/man1/dpbindic.1
man/ja_JP.EUC/man1/dpromdic.1
man/ja_JP.EUC/man1/lsdic.1
man/ja_JP.EUC/man1/mkbindic.1
man/ja_JP.EUC/man1/mkdic.1
man/ja_JP.EUC/man1/mkromdic.1
man/ja_JP.EUC/man1/mvdic.1
man/ja_JP.EUC/man1/rmdic.1
man/ja_JP.EUC/man1/splitword.1
man/ja_JP.EUC/man1/wtoc.1
man/man1/addwords.1
man/man1/cannacheck.1
man/man1/cannakill.1
man/man1/cannaserver.1
man/man1/cannastat.1
man/man1/catdic.1
man/man1/chmoddic.1
man/man1/cpdic.1
man/man1/cshost.1
man/man1/ctow.1
man/man1/delwords.1
man/man1/dicar.1
man/man1/dpbindic.1
man/man1/dpromdic.1
man/man1/lsdic.1
man/man1/mkbindic.1
man/man1/mkdic.1
man/man1/mkromdic.1
man/man1/mvdic.1
man/man1/rmdic.1
man/man1/splitword.1
man/man1/wtoc.1
sbin/cannakill
sbin/cannaserver
share/examples/rc.d/canna

3
inputmethod/canna/DESCR Normal file
View File

@@ -0,0 +1,3 @@
Canna is a Japanese input method server/client. Canna supports
Emacs/Mule (Multi-lingual extension Emacs), kinput2 X11 input methods,
cannum front end, and some others.

View File

@@ -0,0 +1,15 @@
# $NetBSD: Makefile,v 1.11 2010/02/20 10:39:01 obache Exp $
META_PACKAGE= yes
.include "Makefile.common"
PKGNAME:= Canna-${CANNA_VERSION}
PKGREVISION= 2
DEPENDS+= Canna-server>=${CANNA_VERSION}nb2:../../inputmethod/canna-server
DEPENDS+= Canna-dict>=${CANNA_VERSION}nb1:../../inputmethod/canna-dict
CANNA_MODULE= meta-package
.include "../../mk/bsd.pkg.mk"

View File

@@ -0,0 +1,45 @@
# $NetBSD: Makefile.common,v 1.21 2010/05/28 11:06:34 obache Exp $
#
# Canna common makefile.
#
# used by inputmethod/canna-canuum/Makefile
# used by inputmethod/canna-dict/Makefile
# used by inputmethod/canna-lib/Makefile
# used by inputmethod/canna-server/Makefile
# "Pkgsrc" version.
CANNA_VERSION= 3.6pl4
DISTNAME= Canna${CANNA_VERSION:S|.||:S|pl|p|}
PKGNAME= Canna-${CANNA_MODULE}-${CANNA_VERSION}
CATEGORIES= japanese inputmethod
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_JP:=canna/6059/}
MAINTAINER= tech-pkg-ja@jp.NetBSD.org
HOMEPAGE= http://canna.sourceforge.jp/
COMMENT= Kana-Kanji conversion system (${CANNA_MODULE})
FILESDIR= ${.CURDIR}/../../inputmethod/canna/files
DISTINFO_FILE= ${.CURDIR}/../../inputmethod/canna/distinfo
PATCHDIR= ${.CURDIR}/../../inputmethod/canna/patches
USE_IMAKE= yes
CANNA_SPOOL= ${VARBASE}/spool/canna
CANNA_MODE= 0755
PKG_GROUPS_VARS+= CANNA_GROUP
PKG_USERS_VARS+= CANNA_USER
CANNA_ENV= CANNA_USER=${CANNA_USER} \
CANNA_GROUP=${CANNA_GROUP} \
CANNA_SPOOL=${CANNA_SPOOL} \
CANNA_MODE=${CANNA_MODE} \
IMDICTDIR=${IMDICTDIR}
MAKE_ENV+= ${CANNA_ENV}
SCRIPTS_ENV+= ${CANNA_ENV}
PLIST_SUBST+= ${CANNA_ENV}
FILES_SUBST+= ${CANNA_ENV}
INSTALL_MAKE_FLAGS+= CHOWN=${TRUE}
INSTALL_MAKE_FLAGS+= CHGRP=${TRUE}
INSTALL_MAKE_FLAGS+= CHMOD=${TRUE}

View File

@@ -0,0 +1,22 @@
$NetBSD: distinfo,v 1.11 2012/07/03 17:44:39 joerg Exp $
SHA1 (Canna36p4.tar.gz) = 4edc22e2e4e5c6db42daa2083fabb53aa1ae8168
RMD160 (Canna36p4.tar.gz) = 7f8bb7f5d87e6b939ff2b84edf58072c75a5d09d
Size (Canna36p4.tar.gz) = 1455672 bytes
SHA1 (patch-aa) = 6bb6da1cc2a458ebbcfe09fe19a371d7e8aea7da
SHA1 (patch-ab) = b203ad0cb1285ffed0037e0eced3ae298bec5eb9
SHA1 (patch-ac) = a81a07db87d3b501dedd423e148a8e7e1d1804c4
SHA1 (patch-ad) = d4b5720c206f81124e0d53e71590de86f66c524c
SHA1 (patch-ae) = 9e8de536052d76d8aeeab2d443dc42450ae53947
SHA1 (patch-af) = 2700fc8395895176c16562af66ea5bf0b13d4e10
SHA1 (patch-ag) = cb435e54334ead8dba6a9ac9f14368d69d6e3a7c
SHA1 (patch-ah) = 5d2f01fa4810dafa7a83d02edaec36fc274173fe
SHA1 (patch-ai) = b44d683b2c1d489746f1174f8ae6d06ddca66a59
SHA1 (patch-aj) = 30d19c8ef9c1129e5214cb9a8a1d8b2b636b0361
SHA1 (patch-ak) = 18b408344b8b617142ced8804990e87b7ae27f56
SHA1 (patch-al) = f6025d6fb7a3247ef44b0a50ae13b67ef3dad2d9
SHA1 (patch-am) = 756aed6fc81a9d75a55d123c8dc00c0932b8df7f
SHA1 (patch-an) = ef892b0837e7b3b5b569a7a9a518df2379c43f1c
SHA1 (patch-ao) = c577319f50df6624333726cd62b48d869989d881
SHA1 (patch-ap) = 3f514037c4d67b2e18b27285370fe2ea84d977cc
SHA1 (patch-dic_phono_Imakefile) = 3192d7c6e38caf2e5e8378283d673df29c2dc430

View File

@@ -0,0 +1,42 @@
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: canna.sh,v 1.2 2006/07/05 04:48:28 jlam Exp $
#
# PROVIDE: canna
# REQUIRE: DAEMON
. /etc/rc.subr
name="canna"
rcvar=$name
command="@PREFIX@/sbin/cannaserver"
start_precmd="canna_prestart"
stop_cmd="@PREFIX@/sbin/cannakill"
mkdir_perms() {
dir="$1"; user="$2"; group="$3"; mode="$4"
@TEST@ -d $dir || @MKDIR@ $dir
@CHOWN@ $user $dir
@CHGRP@ $group $dir
@CHMOD@ $mode $dir
}
canna_prestart()
{
mkdir_perms @CANNA_SPOOL@ @CANNA_USER@ @CANNA_GROUP@ 0755
mkdir_perms @IMDICTDIR@/canna @CANNA_USER@ @CANNA_GROUP@ 0775
mkdir_perms @IMDICTDIR@/canna/canna @CANNA_USER@ @CANNA_GROUP@ 0775
srcdictdir="@PREFIX@/libdata/canna"
dictdir="@IMDICTDIR@/canna/canna"
if @TEST@ -d $srcdictdir; then
( cd $srcdictdir; for f in *; do
@TEST@ "$f" != "*" || continue
@RM@ -f $dictdir/$f
@LN@ -fs $srcdictdir/$f $dictdir/$f
done )
fi
}
load_rc_config $name
run_rc_command "$1"

View File

@@ -0,0 +1,13 @@
BEGIN {
skip = 0
}
/^#ifdef SHIFT/ { skip = 0 }
/^#ifdef ASCII/ { skip = 1 }
/^#ifndef SHIFT/ { skip = 1 }
/^#ifndef ASCII/ { skip = 0 }
/^#else/ { skip = !skip }
/^#endif/ { skip = 0 }
/^#/ { next; }
{ if (!skip) print }

View File

@@ -0,0 +1,110 @@
$NetBSD: patch-aa,v 1.3 2008/05/20 18:53:17 tnn Exp $
--- Canna.conf.orig 2003-09-22 12:27:12.000000000 +0200
+++ Canna.conf
@@ -133,18 +133,18 @@
/* rootにならずにインストールする時はこれを定義して下さい */
/* #define InstallAsUser */
/* 従来と互換のディレクトリ構造にする場合はこれを定義してください */
-#define ObsoleteInstallDir
+/* #define ObsoleteInstallDir */
#ifdef InstallAsUser
# define DefCannaPrefix $(HOME)/canna
# define DefErrDir $(cannaPrefix)/log
# define DefLibCannaDir $(cannaExecPrefix)/lib
#else
-# define DefCannaPrefix /usr/local/canna
+# define DefCannaPrefix ${PREFIX}
# ifdef ObsoleteInstallDir
# define DefErrDir /usr/spool/canna
# define DefLibCannaDir /usr/lib
# else
-# define DefErrDir /var/log
+# define DefErrDir ${CANNA_SPOOL}
# define DefLibCannaDir $(cannaExecPrefix)/lib
# endif
#endif
@@ -164,7 +164,7 @@ XCOMM cannaLibDir = /var/lib/canna
XCOMM cannaLibDir = /var/db/canna
cannaLibDir = DefCannaLibDir
XCOMM cannaManDir = $(cannaPrefix)/share/man
-cannaManDir = $(cannaPrefix)/man
+cannaManDir = $(cannaPrefix)/$(PKGMANDIR)
cannaIncDir = $(cannaPrefix)/include/canna
libCannaDir = DefLibCannaDir
@@ -173,10 +173,10 @@ ErrDir = DefErrDir
/* 次の3行は変更しないでください */
wcharDefinition = -DCANNA_WCHAR
Wlib =
-JapaneseLocale = japanese
+JapaneseLocale = ja_JP.eucJP
-cannaOwner = bin
-cannaGroup = bin
+cannaOwner = ${CANNA_USER}
+cannaGroup = ${CANNA_GROUP}
#ifdef InstallAsUser
cannaOwnerGroup =
@@ -249,7 +249,7 @@ dontHaveRename = 0
* コマンド類をリンクする時は、次を YES にしてくだい。
*/
/* #define UseInstalledLibCanna YES */
-#define UseInstalledLibCanna NO
+#define UseInstalledLibCanna YES
DicDir = $(cannaLibDir)/dic
@@ -294,18 +294,18 @@ DicDir = $(cannaLibDir)/dic
DEPCANNALIB = $(libCannaDir)/libcanna.a
#endif
# endif
- CANNALIB = -L$(libCannaDir) -lcanna $(DLLIB)
+ CANNALIB = -Wl,-rpath,$(libCannaDir) -L$(libCannaDir) -lcanna $(DLLIB)
#else /* ! UseInstalledLibCanna */
# if DoSharedLib
- DEPCANNALIB = $(CANNASRC)/libcanna.$(sharedLibExtension)
+ DEPCANNALIB = $(libCannaDir)/libcanna.$(sharedLibExtension)
# else
#ifdef __EMX__
- DEPCANNALIB = $(CANNASRC)/canna.a
+ DEPCANNALIB = $(libCannaDir)/canna.a
#else
- DEPCANNALIB = $(CANNASRC)/libcanna.a
+ DEPCANNALIB = $(libCannaDir)/libcanna.a
#endif
# endif
- CANNALIB = -L$(CANNASRC) -lcanna $(DLLIB)
+ CANNALIB = -Wl,-rpath,$(libCannaDir) -L$(CANNASRC) -lcanna $(DLLIB)
#endif /* UseInstalledLibCanna */
#if UseInstalledLibCanna
@@ -314,14 +314,14 @@ DicDir = $(cannaLibDir)/dic
# else
DEPCANNALIB16 = $(libCannaDir)/libcanna16.a
# endif
- CANNALIB16 = -L$(libCannaDir) -lcanna16 $(DLLIB)
+ CANNALIB16 = -Wl,-rpath,$(libCannaDir) -L$(libCannaDir) -lcanna16 $(DLLIB)
#else /* ! UseInstalledLibCanna */
# if DoSharedLib
- DEPCANNALIB16 = $(CANNASRC)/libcanna16.$(sharedLibExtension)
+ DEPCANNALIB16 = $(libCannaDir)/libcanna16.$(sharedLibExtension)
# else
- DEPCANNALIB16 = $(CANNASRC)/libcanna16.a
+ DEPCANNALIB16 = $(libCannaDir)/libcanna16.a
# endif
- CANNALIB16 = -L$(CANNASRC) -lcanna16 $(DLLIB)
+ CANNALIB16 = -Wl,-rpath,$(libCannaDir) -L$(CANNASRC) -lcanna16 $(DLLIB)
#endif /* UseInstalledLibCanna */
/*
@@ -338,7 +338,7 @@ DicDir = $(cannaLibDir)/dic
SCRIPTS_DEFINES =
#ifdef JAPANESEMAN
-JMNLOCALE = ja
+JMNLOCALE = ja_JP.EUC
#endif
/* USE_OBSOLETE_STYLE_FILENAME を定義するための定義 */

View File

@@ -0,0 +1,21 @@
$NetBSD: patch-ab,v 1.1 2003/05/31 07:24:41 uebayasi Exp $
--- Imakefile.orig Thu Dec 5 22:39:41 2002
+++ Imakefile Thu Dec 5 22:40:03 2002
@@ -60,7 +60,7 @@
for i in $(SERVERDIR) ;\
do \
(cd $$i ; echo "installing" "in $(CURRENT_DIR)/$$i..."; \
- $(MAKE) $(MFLAGS) DESTDIR='$(DESTDIR)' install); \
+ $(MAKE) $(MFLAGS) DESTDIR='$(DESTDIR)' install install.man); \
done
instclient::
@@ -68,7 +68,7 @@
for i in $(CLIENTDIR) ;\
do \
(cd $$i ; echo "installing" "in $(CURRENT_DIR)/$$i..."; \
- $(MAKE) $(MFLAGS) DESTDIR='$(DESTDIR)' install); \
+ $(MAKE) $(MFLAGS) DESTDIR='$(DESTDIR)' install install.man); \
done
instsgs::

View File

@@ -0,0 +1,17 @@
$NetBSD: patch-ac,v 1.2 2005/01/13 12:18:42 minskim Exp $
--- dic/phono/Imakefile.orig 2002-10-19 03:27:40.000000000 -0500
+++ dic/phono/Imakefile
@@ -27,9 +27,9 @@
ROMAJI_DIC_DEF = -DSHIFT
- DICDIR = $(cannaLibDir)/dic
- SAMPLEDIR = $(cannaLibDir)/sample
- SAMPLESRCDIR = $(cannaLibDir)/sample/src
+ DICDIR = $(DicDir)
+ SAMPLEDIR = $(DicDir)/sample
+ SAMPLESRCDIR = $(DicDir)/sample/src
KPDEF = default.kpdef jdaemon.kpdef just.kpdef kaisoku.kpdef kana.kpdef \
lan5.kpdef matsu.kpdef newjis.kpdef romaji.kpdef sokuon.kpdef \

View File

@@ -0,0 +1,12 @@
$NetBSD: patch-ad,v 1.1 2003/05/31 07:24:42 uebayasi Exp $
--- dic/ideo/pubdic/Imakefile.orig Thu Dec 5 23:43:40 2002
+++ dic/ideo/pubdic/Imakefile Thu Dec 5 23:43:52 2002
@@ -9,7 +9,7 @@
CANNAROOT = ../../..
CANNACMDDIR = $(CANNAROOT)/cmd
MERGE = $(CANNACMDDIR)/mergewd/mergeword
- INCLUDES = -I$(CANNAROOT)/include
+ INCLUDES = -I$(CANNAROOT)/canna
#endif
TARGETS = iroha.t
PUBDICS = a.p k.p s.p t.p n.p h.p m.p y.p r.p w.p x.p

View File

@@ -0,0 +1,16 @@
$NetBSD: patch-ae,v 1.1 2005/12/29 15:29:12 joerg Exp $
--- canna/widedef.h.orig 2003-09-12 14:32:52.000000000 +0000
+++ canna/widedef.h
@@ -66,7 +66,10 @@
#endif /* !nec_ews_svr2 */
#endif /* HAVE_WCHAR_OPERATION */
-#if (defined(__FreeBSD__) && __FreeBSD_version < 500000) \
+#if defined(__DragonFly__)
+# include <wchar.h>
+# define _WCHAR_T
+#elif (defined(__FreeBSD__) && __FreeBSD_version < 500000) \
|| defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__)
# ifdef _BSD_WCHAR_T_
# undef _BSD_WCHAR_T_

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-af,v 1.1 2003/05/31 07:24:42 uebayasi Exp $
--- lib/RKC/convert.c.orig Wed May 22 22:02:57 1996
+++ lib/RKC/convert.c
@@ -32,7 +32,7 @@
#ifndef WIN
#include "sglobal.h"
#endif
-#include "IRproto.h"
+#include "../server/IRproto.h"
#include <errno.h>
#include <sys/types.h>

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ag,v 1.1 2005/12/30 15:16:21 joerg Exp $
--- cmd/cannastat/cannastat.c.orig 2005-12-30 14:28:41.000000000 +0000
+++ cmd/cannastat/cannastat.c
@@ -95,8 +95,6 @@ static IRwReq cRreq ;
static IRReq iRreq ;
static long cur_time ;
-extern int errno;
-
static int
*TotalReqCount, OldTotalReqCount[ OLD_MAXREQUESTNO ],
ProtoCount,

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ah,v 1.1 2005/12/30 15:16:21 joerg Exp $
--- cmd/cshost/cshost.c.orig 2005-12-30 14:37:58.000000000 +0000
+++ cmd/cshost/cshost.c
@@ -70,8 +70,6 @@ static IRReq iRreq ;
static int ServerFD ;
static int ProtocolVersion ;
-extern int errno;
-
main(argc, argv)
int argc ;
char **argv ;

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ai,v 1.1 2005/12/30 15:16:21 joerg Exp $
--- server/WaitFor.c.orig 2005-12-30 14:38:44.000000000 +0000
+++ server/WaitFor.c
@@ -78,8 +78,6 @@ extern void CheckConnections();
extern void EstablishNewConnections();
extern void CheckSignal pro((void));
-extern int errno;
-
static int
_anyset(src)
long *src;

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-aj,v 1.1 2005/12/30 15:16:21 joerg Exp $
--- server/connection.c.orig 2005-12-30 14:39:13.000000000 +0000
+++ server/connection.c
@@ -69,8 +69,6 @@ static char rcs_id[] = "$Id: connection.
#include "net.h"
#include "IR.h"
-extern int errno;
-
long *AllSockets; /* select on this */
long *AllClients; /* available clients */
long *LastSelectMask ; /* mask returned from last select call */

View File

@@ -0,0 +1,12 @@
$NetBSD: patch-ak,v 1.1 2005/12/30 15:16:21 joerg Exp $
--- server/convert.c.orig 2005-12-30 14:39:52.000000000 +0000
+++ server/convert.c
@@ -57,7 +57,6 @@ static char rcs_id[] = "@(#) 102.1 $Id:
#define IR_INT_INVAL(x) ((unsigned int)x > IR_INT_MAX)
extern void CheckSignal pro((void));
-extern int errno;
#ifdef DEBUGPROTO
static void

View File

@@ -0,0 +1,12 @@
$NetBSD: patch-al,v 1.1 2005/12/30 15:16:21 joerg Exp $
--- server/wconvert.c.orig 2005-12-30 14:40:19.000000000 +0000
+++ server/wconvert.c
@@ -84,7 +84,6 @@ static char rcs_id[] = "@(#) 102.1 $Id:
#include "IR.h"
extern void CheckSignal pro((void));
-extern int errno;
typedef struct {
#ifdef __STDC__

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-am,v 1.1 2005/12/30 15:16:21 joerg Exp $
--- server/misc.c.orig 2005-12-30 14:40:43.000000000 +0000
+++ server/misc.c
@@ -75,8 +75,6 @@ extern void CheckConnections();
void
FatalError();
-extern int errno;
-
#ifdef DEBUG
#define LOGFILE "/tmp/canna.log"
static FILE *ServerLogFp = (FILE *)0;

View File

@@ -0,0 +1,22 @@
$NetBSD: patch-an,v 1.2 2011/12/07 16:05:59 roy Exp $
--- canuum/canna.c.orig 2005-12-30 14:56:11.000000000 +0000
+++ canuum/canna.c
@@ -92,8 +92,6 @@ static char rcsid[] = "$Id: canna.c,v 1.
#define PARTIALREDRAW 1
#define NOREDRAW 0
-extern int errno;
-
static int maxmodelen;
static int maxwidth = 0;
@@ -1268,7 +1266,7 @@
cannakeyentry(key_end, CANNA_KEY_End);
#endif
- resetterm();
+ reset_shell_mode();
#endif
if (terminalname = malloc(strlen(term) + 1)) {

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ao,v 1.1 2008/09/18 12:33:44 taca Exp $
--- lib/RK/ncache.c.orig 2002-10-19 17:27:45.000000000 +0900
+++ lib/RK/ncache.c
@@ -27,7 +27,7 @@ static char rcsid[]="$Id: ncache.c,v 1.1
#include "RKintern.h"
#define NCHASH 101
-#define hash(x) ((int)((x)%NCHASH))
+#define hash(x) ((int)(((unsigned long)(x))%NCHASH))
static struct ncache Nchash[NCHASH];
static struct ncache Ncfree;

View File

@@ -0,0 +1,30 @@
$NetBSD: patch-ap,v 1.1 2011/12/07 16:05:59 roy Exp $
--- canuum/termio.c.orig 2011-12-07 13:20:41.000000000 +0000
+++ canuum/termio.c 2011-12-07 15:58:50.000000000 +0000
@@ -175,7 +175,6 @@
void
closeTermData ()
{
- resetterm ();
reset_shell_mode ();
}
@@ -195,7 +194,7 @@
set_scroll_region (start, end)
int start, end;
{
- tputs (tparm (change_scroll_region, start, end), 1, putchar);
+ tputs (tparm (change_scroll_region, start, end, 0, 0, 0, 0, 0, 0, 0), 1, putchar);
}
void
@@ -223,7 +222,7 @@
throw_cur_raw (col, row)
int col, row;
{
- tputs (tparm (cursor_address, row, col), 1, putchar);
+ tputs (tparm (cursor_address, row, col, 0, 0, 0, 0, 0, 0, 0), 1, putchar);
}
void

View File

@@ -0,0 +1,25 @@
$NetBSD: patch-dic_phono_Imakefile,v 1.1 2012/07/03 17:44:39 joerg Exp $
--- dic/phono/Imakefile.orig 2012-06-17 06:10:27.000000000 +0000
+++ dic/phono/Imakefile
@@ -54,16 +54,16 @@ AllTarget($(ROMKANA_TABLES))
#ifdef __EMX__
.kpdef.kp:
- $(FORCPP) -7 < $< | $(CPP) $(ROMAJI_DIC_DEF) | $(FORCPP) -8 | $(KPDIC) > $@
+ $(FORCPP) -7 < $< | tee ${.TARGET}.before | ${AWK} -f dic-phono-filter.awk | tee ${.TARGET}.after |$(FORCPP) -8 | $(KPDIC) > $@
.kpdef.cbp:
- $(FORCPP) -7 < $< | $(CPP) $(ROMAJI_DIC_DEF) | $(FORCPP) -8 | $(KPDIC) > $@
+ $(FORCPP) -7 < $< | tee ${.TARGET}.before | ${AWK} -f dic-phono-filter.awk | tee ${.TARGET}.after | $(FORCPP) -8 | $(KPDIC) > $@
#else
.kpdef.kp:
- $(FORCPP) -7 < $< | $(CPP) $(ROMAJI_DIC_DEF) | $(FORCPP) -8 | $(KPDIC) > `basename $< '.kpdef'`.kp
+ $(FORCPP) -7 < $< | tee ${.TARGET}.before | ${AWK} -f dic-phono-filter.awk | tee ${.TARGET}.after | $(FORCPP) -8 | $(KPDIC) > `basename $< '.kpdef'`.kp
.kpdef.cbp:
- $(FORCPP) -7 < $< | $(CPP) $(ROMAJI_DIC_DEF) | $(FORCPP) -8 | $(KPDIC) > `basename $< '.kpdef'`.cbp
+ $(FORCPP) -7 < $< | tee ${.TARGET}.before | ${AWK} -f dic-phono-filter.awk | tee ${.TARGET}.after | $(FORCPP) -8 | $(KPDIC) > `basename $< '.kpdef'`.cbp
#endif
MakeDirectories(install,$(DICDIR))

View File

@@ -0,0 +1,2 @@
dbskkd-cdb is a dictionary server for SKK Japanese Input Method
system. For building the executable file, TinyCDB is required.

View File

@@ -0,0 +1,12 @@
===========================================================================
$NetBSD: MESSAGE,v 1.2 2011/03/03 10:50:52 ryoon Exp $
Please add the following lines to /etc/inetd.conf.
skkserv stream tcp nowait nobody ${PREFIX}/libexec/dbskkd-cdb dbskkd-cdb
skkserv stream tcp6 nowait nobody ${PREFIX}/libexec/dbskkd-cdb dbskkd-cdb
And please add the following line to /etc/services and update database.
skkserv 1178/tcp
===========================================================================

View File

@@ -0,0 +1,56 @@
# $NetBSD: Makefile,v 1.4 2012/10/06 14:25:10 asau Exp $
#
DISTNAME= dbskkd-cdb-2.00
PKGREVISION= 1
CATEGORIES= inputmethod japanese
MASTER_SITES= http://dbskkd-cdb.googlecode.com/files/
MAINTAINER= ryoon@NetBSD.org
HOMEPAGE= http://github.com/jj1bdx/dbskkd-cdb
COMMENT= SKK dictionary server based on cdb
LICENSE= gnu-gpl-v3
DOCSDIR= ${PREFIX}/share/doc/${PKGBASE}
INSTALLATION_DIRS= libexec \
${DOCSDIR} \
bin
DEPENDS= skk-jisyo-cdb-[0-9]*:../../inputmethod/skk-jisyo-cdb
FIND_PREFIX:= SKKJISYOCDBDIR=skk-jisyo-cdb
SUBST_CLASSES+= fix-paths
SUBST_STAGE.fix-paths= pre-configure
SUBST_MESSAGE.fix-paths= fixing pathes
SUBST_FILES.fix-paths= dbskkd-cdb.c
SUBST_SED.fix-paths= -e 's,/usr/local/share/skk/SKK-JISYO.L.cdb,${SKKJISYOCDBDIR}/share/skk/SKK-JISYO.L.cdb,g'
CDBLIB= ${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.tinycdb}/lib \
-L${BUILDLINK_PREFIX.tinycdb}/lib -lcdb
MAKE_FLAGS+= CDBLIB=${CDBLIB:Q}
MAKE_FLAGS+= INSTALLDIR=${DESTDIR}${PREFIX}/libexec
INSTALL_DOCS= CHANGES \
LICENSE \
README \
READMEJP \
example-daemontools.txt \
example-inetd.txt \
skk-server-protocol.txt
INSTALL_SCRIPTS= makeskkcdb.sh \
skktocdbm.sh
post-install:
.for filename in ${INSTALL_DOCS}
${INSTALL_DATA} ${WRKSRC}/${filename} ${DESTDIR}/${DOCSDIR}
.endfor
.for filename in ${INSTALL_SCRIPTS}
${INSTALL_SCRIPT} ${WRKSRC}/${filename} ${DESTDIR}${DOCSDIR}
.endfor
.include "../../mk/find-prefix.mk"
.include "../../databases/tinycdb/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

View File

@@ -0,0 +1,11 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2010/09/10 09:11:34 obache Exp $
libexec/dbskkd-cdb
share/doc/dbskkd-cdb/CHANGES
share/doc/dbskkd-cdb/LICENSE
share/doc/dbskkd-cdb/README
share/doc/dbskkd-cdb/READMEJP
share/doc/dbskkd-cdb/example-daemontools.txt
share/doc/dbskkd-cdb/example-inetd.txt
share/doc/dbskkd-cdb/makeskkcdb.sh
share/doc/dbskkd-cdb/skk-server-protocol.txt
share/doc/dbskkd-cdb/skktocdbm.sh

View File

@@ -0,0 +1,5 @@
$NetBSD: distinfo,v 1.1.1.1 2010/09/10 09:11:34 obache Exp $
SHA1 (dbskkd-cdb-2.00.tar.gz) = 645e3a2f2a65c81dd3d04bdf2a4208c94c01f3fe
RMD160 (dbskkd-cdb-2.00.tar.gz) = 7841a3830663a10d6bd331e73d46c725edd44845
Size (dbskkd-cdb-2.00.tar.gz) = 9296 bytes

2
inputmethod/fcitx/DESCR Normal file
View File

@@ -0,0 +1,2 @@
fctix is a collection of Simplified Chinese input methods based on XIM (X Input
Method), including WuBi, PinYin and QuWei.

View File

@@ -0,0 +1,25 @@
# $NetBSD: Makefile,v 1.12 2013/06/06 12:54:36 wiz Exp $
#
DISTNAME= fcitx-3.1.1
PKGREVISION= 6
CATEGORIES= inputmethod
MASTER_SITES= http://www.fcitx.org/download/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= rxg@NetBSD.org
HOMEPAGE= http://www.fcitx.org/main/
COMMENT= Free Chinese Input Toy of X
USE_TOOLS+= pkg-config
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --enable-xft
BUILDLINK_DEPMETHOD.libXt?= build
.include "../../converters/libiconv/buildlink3.mk"
.include "../../x11/libX11/buildlink3.mk"
.include "../../x11/libXft/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

17
inputmethod/fcitx/PLIST Normal file
View File

@@ -0,0 +1,17 @@
@comment $NetBSD: PLIST,v 1.2 2009/06/14 18:01:29 joerg Exp $
bin/createPYMB
bin/fcitx
bin/mb2txt
bin/txt2mb
share/fcitx/data/cj.mb
share/fcitx/data/erbi.mb
share/fcitx/data/punc.mb
share/fcitx/data/pySym.mb
share/fcitx/data/pybase.mb
share/fcitx/data/pyphrase.mb
share/fcitx/data/sp.dat
share/fcitx/data/tables.conf
share/fcitx/data/wbx.mb
share/fcitx/doc/cjkvinput.txt
share/fcitx/doc/fcitx3.pdf
share/fcitx/doc/wb_fh.htm

View File

@@ -0,0 +1,7 @@
$NetBSD: distinfo,v 1.1.1.1 2006/01/16 13:04:07 rxg Exp $
SHA1 (fcitx-3.1.1.tar.bz2) = 3d23a0786edd6ff6e69d353692849d9041442038
RMD160 (fcitx-3.1.1.tar.bz2) = 229155ec71deb189ffc52851ee9a242ba9192a5b
Size (fcitx-3.1.1.tar.bz2) = 2920856 bytes
SHA1 (patch-aa) = 53bc014f925d326ed76dfd79721b5d49b2fa5222
SHA1 (patch-ab) = 50cacd5cb281638d3b0e2468a339a21475d536f2

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-aa,v 1.1.1.1 2006/01/16 13:04:07 rxg Exp $
--- Makefile.in.orig 2005-12-16 23:28:36.000000000 +0800
+++ Makefile.in 2005-12-16 23:30:08.000000000 +0800
@@ -164,7 +164,7 @@
sysconfdir = @sysconfdir@
target_alias = @target_alias@
AUTOMAKE_OPTIONS = foreign
-SUBDIRS = doc tools data debian xpm lib src
+SUBDIRS = doc tools data lib src
EXTRA_DIST = autogen.sh fcitx.spec
MAINTAINERCLEANFILES = \
aclocal.m4 \

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ab,v 1.1.1.1 2006/01/16 13:04:07 rxg Exp $
--- src/ui.c.orig 2006-01-04 21:11:37.000000000 +0800
+++ src/ui.c
@@ -84,7 +84,7 @@ Bool InitX (void)
SetMyXErrorHandler ();
iScreen = DefaultScreen (dpy);
- convUTF8 = iconv_open ("UTF-8", "GBK");
+ convUTF8 = iconv_open ("UTF-8", "GB18030");
return True;
}

2
inputmethod/gcin/DESCR Normal file
View File

@@ -0,0 +1,2 @@
gcin is a Chinese input method server for Big5 Traditional Chinese character
sets. It features a GTK user interface.

38
inputmethod/gcin/Makefile Normal file
View File

@@ -0,0 +1,38 @@
# $NetBSD: Makefile,v 1.25 2013/06/06 12:54:36 wiz Exp $
#
DISTNAME= gcin-1.1.7
PKGREVISION= 13
CATEGORIES= inputmethod
#MASTER_SITES= http://www.csie.nctu.edu.tw/~cp76/gcin/download/
MASTER_SITES= http://cle.linux.org.tw/gcin/download/gcin-old/gcin-1.1.x/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= rxg@NetBSD.org
HOMEPAGE= http://www.csie.nctu.edu.tw/~cp76/gcin/
COMMENT= Gtk Chinese INput application in X
MAKE_JOBS_SAFE= no
USE_LIBTOOL= yes
HAS_CONFIGURE= yes
CONFIGURE_ARGS+= --prefix=${PREFIX:Q}
CONFIGURE_ARGS+= --x11base=${X11BASE:Q}
CONFIGURE_ARGS+= --use_xim=Y
CONFIGURE_ARGS+= --new_gtk_im=Y
USE_TOOLS+= pkg-config gmake
GTK2_IMMODULES= yes
.include "../../x11/gtk2/modules.mk"
REPLACE_INTERPRETER+= sh
REPLACE.sh.old= /bin/bash
REPLACE.sh.new= ${SH}
REPLACE_FILES.sh= configure
REPLACE_FILES.sh+= scripts/gcin-user-setup
REPLACE_FILES.sh+= scripts/modify-XIM
REPLACE_FILES.sh+= scripts/utf8-edit
.include "../../x11/gtk2/buildlink3.mk"
.include "../../x11/libXtst/buildlink3.mk"
.include "../../sysutils/desktop-file-utils/desktopdb.mk"
.include "../../mk/bsd.pkg.mk"

54
inputmethod/gcin/PLIST Normal file
View File

@@ -0,0 +1,54 @@
@comment $NetBSD: PLIST,v 1.4 2009/06/14 18:01:29 joerg Exp $
bin/gcin
bin/gcin-setup
bin/gcin2tab
bin/juyin-learn
bin/phoa2d
bin/phod2a
bin/sim2trad
bin/tsa2d
bin/tsd2a
bin/tslearn
include/gcin-im-client.h
lib/gtk-2.0/immodules/im-gcin.la
lib/libgcin-im-client.la
lib/menu/gcin
lib/menu/gcin-setup
man/man1/gcin.1
man/man1/gcin2tab.1
share/applications/gcin-setup.desktop
share/control-center-2.0/capplets/gcin-setup.desktop
share/doc/${PKGNAME}/Changelog
share/doc/${PKGNAME}/README
share/gcin/script/gcin-user-setup
share/gcin/script/modify-XIM
share/gcin/script/utf8-edit
share/gcin/table/ar30.gtab
share/gcin/table/cj-punc.gtab
share/gcin/table/cj.gtab
share/gcin/table/cj5.gtab
share/gcin/table/dayi3.gtab
share/gcin/table/et-asdf.kbm
share/gcin/table/et.kbm
share/gcin/table/et26-asdf.kbm
share/gcin/table/et26.kbm
share/gcin/table/greek.gtab
share/gcin/table/gtab.list
share/gcin/table/hsu.kbm
share/gcin/table/ibm.kbm
share/gcin/table/jyutping.gtab
share/gcin/table/kana-nippon.gtab
share/gcin/table/latin-letters.gtab
share/gcin/table/pho-huge.tab
share/gcin/table/pho.tab
share/gcin/table/phrase.table
share/gcin/table/pinyin.gtab
share/gcin/table/simplex.gtab
share/gcin/table/symbol-table
share/gcin/table/tsin
share/gcin/table/tsin.idx
share/gcin/table/zo-asdf.kbm
share/gcin/table/zo.kbm
share/icons/gcin.png
share/icons/gcin/pin-fixed24.png
share/icons/gcin/pin-float16.png

15
inputmethod/gcin/distinfo Normal file
View File

@@ -0,0 +1,15 @@
$NetBSD: distinfo,v 1.7 2013/02/26 11:09:46 joerg Exp $
SHA1 (gcin-1.1.7.tar.bz2) = 0dd2cf64703d276fca3e5492e4ad1aaaed6fe290
RMD160 (gcin-1.1.7.tar.bz2) = 2c89f8a879e2ada52fb576bb6f91ac83e909a675
Size (gcin-1.1.7.tar.bz2) = 1392767 bytes
SHA1 (patch-aa) = 0cecd77d5bdd0e5cbf212adbe85c131a8d2e319a
SHA1 (patch-ab) = 2aa3dda5a55a591e4cb36b4b28da254eb8873585
SHA1 (patch-ac) = 2722d0b0f099644e2fd305339b869d574b0aa854
SHA1 (patch-ad) = 961b0a597a5f6ee6fac4bbd4873616471e295c26
SHA1 (patch-ae) = f7718fbb9a6a788a51c0d4198e2ba67048e59315
SHA1 (patch-af) = e66965a840e67afe007c4ddaa55cba572cf49e6f
SHA1 (patch-ag) = d3e16fd690f132bd687ceda2d13041e447147f6e
SHA1 (patch-ah) = 9edfc9e2df42fe0f9b7817a679b5727a86571fe4
SHA1 (patch-gcin-setup-list.c) = ef6d7ebe9e277aab42098bdeb4b7043743b3709f
SHA1 (patch-gtk-im_gtkimcontextgcin.c) = 52aa90dba9fb80786bce3bc662b3471b829d19f6

View File

@@ -0,0 +1,77 @@
$NetBSD: patch-aa,v 1.3 2011/12/15 18:53:51 marino Exp $
--- configure.orig 2006-01-04 19:37:46.000000000 +0800
+++ configure
@@ -9,13 +9,13 @@ if [ "$1" = "-h" -o "$1" = "--help" -o "
fi
MAKE=make
-which gmake >& /dev/null
+which gmake > /dev/null
if [ $? = 0 ]; then
MAKE=gmake
fi
-uname | grep FreeBSD >& /dev/null
-if [ $? = 0 ]; then
+OS=`uname -s`
+if [ $OS = "FreeBSD" ] || [ $OS = "NetBSD" ]|| [ $OS = "DragonFly" ]; then
FREEBSD=1
else
FREEBSD=0
@@ -23,6 +23,7 @@ fi
prefix="/usr/local"
+x11base="/usr/X11R6"
use_xim='Y'
new_gtk_im='N'
@@ -34,6 +35,8 @@ for opt do
case "$opt" in
--prefix=*) prefix=`echo $opt | cut -d '=' -f 2`
;;
+ --x11base=*) x11base=`echo $opt | cut -d '=' -f 2`
+ ;;
--use_xim=*) use_xim=`echo $opt | cut -d '=' -f 2`
;;
--new_gtk_im=*) new_gtk_im=`echo $opt | cut -d '=' -f 2`
@@ -88,7 +91,7 @@ fi
bindir=$prefix/bin
datadir=$prefix/share
-mandir=$datadir/man
+mandir=$prefix/man
libdir=$prefix/lib
includedir=$prefix/include
optdir=/opt
@@ -111,7 +114,7 @@ if [ $QT_IM = 'N' ]; then
grep -v qt3/plugins/inputmethods gcin.spec.tmp > gcin.spec
fi
-grep Cooker /etc/mandriva-release 2>&1 | grep 2006 >& /dev/null
+grep Cooker /etc/mandriva-release 2>&1 | grep 2006 > /dev/null
if [ $? = 0 ]; then
new_gtk_im='Y'
echo "!!!! new gtk-im(im-gcin.so) will be enabled because you are using Cooker 2006."
@@ -138,7 +141,7 @@ echo "datadir_r=$datadir" >> config.mak
echo "libdir=\$(DESTDIR)$libdir" >> config.mak
echo "includedir=\$(DESTDIR)$includedir" >> config.mak
-echo "LDFLAGS=$GTKLDFLAGS" >> config.mak
+echo "LDFLAGS=$GTKLDFLAGS -L$x11base/lib -Wl,-R$x11base/lib -lX11" >> config.mak
echo "GCIN_VERSION=$GCIN_VERSION" >> config.mak
echo "GCIN_TABLE_DIR=\$(datadir_r)/gcin/table" >> config.mak
echo "GCIN_TABLE_DIR_i=\$(datadir)/gcin/table" >> config.mak
@@ -164,10 +167,5 @@ cd menu
for i in *.in
do
outf=`echo $i | sed -e "s/\.in//"`
-# echo $outf
- if [ $bindir = /usr/bin ]; then
- sed -e "s~/usr/local/bin~/usr/bin~" < $i > $outf
- else
- cp $i $outf
- fi
+ sed -e "s~/usr/local/bin~$prefix/bin~" < $i > $outf
done

View File

@@ -0,0 +1,50 @@
$NetBSD: patch-ab,v 1.3 2009/11/26 16:48:26 joerg Exp $
--- Makefile.orig 2006-02-16 17:36:08.000000000 +0800
+++ Makefile
@@ -23,7 +23,7 @@ OBJS_gcin2tab=gcin2tab.o gtab-util.o uti
OBJS_gcin_steup=gcin-setup.o gcin-conf.o util.o gcin-send.o gcin-settings.o \
gcin-setup-list.o gcin-switch.o locale.o gcin-setup-pho.o about.o
WALL=-Wall
-CFLAGS= $(WALL) $(OPTFLAGS) $(GTKINC) -I./IMdkit/include -DDEBUG="0$(GCIN_DEBUG)" \
+CFLAGS= $(WALL) $(GTKINC) -I./IMdkit/include \
-DGCIN_TABLE_DIR=\"$(GCIN_TABLE_DIR)\" -DDOC_DIR=\"$(DOC_DIR)\" \
-DGCIN_ICON_DIR=\"$(GCIN_ICON_DIR)\" -DGCIN_VERSION=\"$(GCIN_VERSION)\" \
-DGCIN_SCRIPT_DIR=\"$(GCIN_SCRIPT_DIR)\" -DGCIN_BIN_DIR=\"$(GCIN_BIN_DIR)\" \
@@ -36,8 +36,8 @@ endif
im-srv = im-srv/im-srv.a
-.c.E:
- $(CC) $(CFLAGS) -E -o $@ $<
+.c.o:
+ $(LIBTOOL) --mode=compile --tag=CC $(CC) -c $(CFLAGS) -o $@ $<
PROGS=gcin tsd2a tsa2d phoa2d phod2a tslearn gcin-setup gcin2tab juyin-learn sim2trad
PROGS_CV=kbmcv
@@ -96,24 +96,16 @@ ibin:
install:
install -d $(datadir)/icons
- install gcin.png $(datadir)/icons
+ install -m 644 gcin.png $(datadir)/icons
install -d $(GCIN_ICON_DIR_i)
install -m 644 icons/* $(GCIN_ICON_DIR_i)
install -d $(bindir)
$(MAKE) -C data install
$(MAKE) -C im-client install
$(MAKE) -C gtk-im install
- if [ $(QT_IM) = 'Y' ]; then $(MAKE) -C qt-im install; fi
- if [ $(prefix) = /usr/local ]; then \
- install -m 644 gcin.png /usr/share/icons; \
- install -d $(DOC_DIR); \
- install -m 644 README Changelog $(DOC_DIR); \
- install $(PROGS) $(bindir); \
- else \
install -d $(DOC_DIR_i); \
install -m 644 README Changelog $(DOC_DIR_i); \
install -s $(PROGS) $(bindir); \
- fi
$(MAKE) -C scripts install
$(MAKE) -C menu install
$(MAKE) -C man install

View File

@@ -0,0 +1,14 @@
$NetBSD: patch-ac,v 1.2 2009/11/26 16:48:26 joerg Exp $
--- im-srv/Makefile.orig 2006-01-14 23:40:15.000000000 +0800
+++ im-srv/Makefile
@@ -5,6 +5,9 @@ WALL=-Wall
CFLAGS= $(WALL) $(OPTFLAGS) -I.. -I../im-client -I../IMdkit/include $(GTKINC) -DDEBUG="0$(GCIN_DEBUG)"
OBJS = im-srv.o im-addr.o im-dispatch.o ../im-client/gcin-crypt.o
+.c.o:
+ $(LIBTOOL) --mode=compile --tag=CC $(CC) -c $(CFLAGS) -o $@ $<
+
im-srv.a: $(OBJS)
ar cr $@ $(OBJS)
ranlib $@

View File

@@ -0,0 +1,46 @@
$NetBSD: patch-ad,v 1.4 2009/11/26 16:48:26 joerg Exp $
--- im-client/Makefile.orig 2006-02-16 18:23:34.000000000 +0800
+++ im-client/Makefile
@@ -3,34 +3,23 @@ include ../config.mak
.SUFFIXES: .c .o .E
WALL=-Wall
CFLAGS= $(WALL) $(OPTFLAGS) -I. -I.. -I../IMdkit/include $(GTKINC) \
- -DCLIENT_LIB=1 -DGCIN_BIN_DIR=\"$(GCIN_BIN_DIR)\" \
- -DDEBUG="0$(GCIN_DEBUG)" -DGCIN_TABLE_DIR=\"$(GCIN_TABLE_DIR)\" \
+ -DGCIN_BIN_DIR=\"$(GCIN_BIN_DIR)\" \
+ -DGCIN_TABLE_DIR=\"$(GCIN_TABLE_DIR)\" \
-DFREEBSD=$(FREEBSD)
-OBJS = gcin-im-client.o im-addr.o gcin-conf.o util.o gcin-crypt.o
-
-.c.E:
- $(CC) $(CFLAGS) -E -o $@ $<
+OBJS = gcin-im-client.o ../im-srv/im-addr.o ../gcin-conf.o ../util.o gcin-crypt.o
.c.o:
- $(CC) -c -fpic $(CFLAGS) -o $@ $<
+ $(LIBTOOL) --mode=compile --tag=CC $(CC) -c $(CFLAGS) -o $@ $<
-libgcin-im-client.so: $(OBJS)
- $(CC) -shared $(OBJS) -o $@
+libgcin-im-client.la: $(OBJS)
+ $(LIBTOOL) --mode=link --tag=CC $(CC) $(OBJS:.o=.lo) -o $@ -rpath $(libdir) -version-info 1:1
$(MAKE) -C ../gtk-im
LOCALLIB=/usr/local/$(LIB)
install:
install -d $(libdir)
- if [ $(prefix) = /usr/local ]; then \
- ! [ -d $(LOCALLIB) ] && mkdir $(LOCALLIB) ; \
- install -m 755 libgcin-im-client.so $(LOCALLIB); \
- grep $(LOCALLIB) /etc/ld.so.conf > /dev/null 2>&1 || \
- echo $(LOCALLIB) >> /etc/ld.so.conf; \
- PATH=/sbin:/usr/sbin:$(PATH); ldconfig; \
- else \
- install -m 755 libgcin-im-client.so $(libdir); \
- fi; \
+ $(LIBTOOL) --mode=install $(BSD_INSTALL_LIB) libgcin-im-client.la $(libdir)
install -d $(includedir); \
install -m 444 gcin-im-client.h $(includedir)

View File

@@ -0,0 +1,40 @@
$NetBSD: patch-ae,v 1.4 2009/11/26 16:48:26 joerg Exp $
--- gtk-im/Makefile.orig 2006-02-22 21:11:46.000000000 +0800
+++ gtk-im/Makefile
@@ -6,30 +6,25 @@ IMMODULES=$(libdir)/$(GTK2IM)
IMMODULES_LOCAL=/usr/$(LIB)/$(GTK2IM)
.SUFFIXES: .c .o .E
-CFLAGS = $(OPTFLAGS) $(GTKINC) -I../im-client -I.. -I../IMdkit/include -DCLIENT_LIB=1
+CFLAGS = $(OPTFLAGS) $(GTKINC) -I../im-client -I.. -I../IMdkit/include
ifeq ($(NEW_GTK_IM),Y)
CFLAGS += -DNEW_GTK_IM=1
endif
.c.o:
- $(CC) -c -fpic $(CFLAGS) -o $@ $<
+ $(LIBTOOL) --mode=compile --tag=CC $(CC) -c $(CFLAGS) -o $@ $<
-im-gcin.so: $(OBJS) ../im-client/libgcin-im-client.so
- $(CC) -shared $(OBJS) -L../im-client -lgcin-im-client -o $@ $(LDFLAGS)
+im-gcin.la: $(OBJS) ../im-client/libgcin-im-client.la
+ $(LIBTOOL) --mode=link --tag=CC $(CC) $(OBJS:.o=.lo) ../im-client/libgcin-im-client.la -o $@ $(LDFLAGS) -rpath $(IMMODULES) -module -avoid-version
rm -f core.*
clean:
rm -f *.o *.so *~ core.* .depend
install:
- if [ $(prefix) = /usr/local ]; then \
- install -d $(IMMODULES_LOCAL); \
- install -m 755 im-gcin.so $(IMMODULES_LOCAL); \
- else \
install -d $(IMMODULES); \
- install -m 755 im-gcin.so $(IMMODULES); \
- fi
+ $(LIBTOOL) --mode=install $(BSD_INSTALL_LIB) im-gcin.la $(IMMODULES)
.depend:
$(CC) $(CFLAGS) -MM *.c > $@

View File

@@ -0,0 +1,14 @@
$NetBSD: patch-af,v 1.1.1.1 2006/01/16 13:01:16 rxg Exp $
--- scripts/Makefile.orig 2005-03-06 12:51:03.000000000 +0800
+++ scripts/Makefile
@@ -5,9 +5,6 @@ SCRIPTS=gcin-user-setup gcin-utf8-setup
all: $(SCRIPTS)
install:
- if [ $(prefix) = /usr/local ]; then \
- sh modify-XIM; \
- fi
install -d $(GCIN_SCRIPT_DIR_i)
install -m 755 $(SCRIPTS) $(GCIN_SCRIPT_DIR_i)
clean:

View File

@@ -0,0 +1,25 @@
$NetBSD: patch-ag,v 1.1.1.1 2006/01/16 13:01:16 rxg Exp $
--- menu/Makefile.orig 2005-08-29 09:40:32.000000000 +0800
+++ menu/Makefile
@@ -5,19 +5,11 @@ include ../config.mak
all:
install:
- if [ $(prefix) = /usr/local ]; then \
- install gcin-setup.desktop $(GCIN_SETUP_DESKTOP); \
- install gcin-setup.desktop /usr/share/applications; \
- install -d /usr/lib/menu; \
- install -m 644 $(MENUS) /usr/lib/menu; \
- which update-menus >& /dev/null && update-menus || exit 0; \
- else \
install -d $(libdir)/menu; \
install -m 644 $(MENUS) $(libdir)/menu; \
install -d $(GCIN_SETUP_DESKTOP_rpm); \
install -m 644 gcin-setup.desktop $(GCIN_SETUP_DESKTOP_rpm); \
install -d $(datadir)/applications; \
- install -m 644 gcin-setup.desktop $(datadir)/applications; \
- fi
+ install -m 644 gcin-setup.desktop $(datadir)/applications
clean:
rm -f $(MENUS) *~

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-ah,v 1.1 2006/04/28 18:24:53 joerg Exp $
--- IMdkit/lib/Xtranssock.c.orig 2006-04-28 17:52:23.000000000 +0000
+++ IMdkit/lib/Xtranssock.c
@@ -95,7 +95,7 @@ from the X Consortium.
#ifdef __osf__
#include <sys/param.h>
#endif /* osf */
-#if defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__)
+#if defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
#include <machine/endian.h>
#endif /* __NetBSD__ || __OpenBSD__ || __FreeBSD__ */
#include <netinet/tcp.h>

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-gcin-setup-list.c,v 1.1 2013/02/26 11:09:46 joerg Exp $
--- gcin-setup-list.c.orig 2013-02-25 17:59:05.000000000 +0000
+++ gcin-setup-list.c
@@ -184,7 +184,7 @@ static gboolean toggled (GtkCellRenderer
int in_no = gcin_switch_keys_lookup(key[0]);
if (in_no < 0)
- return;
+ return FALSE;
gcin_flags_im_enabled ^= 1 << in_no;
value ^= 1;

View File

@@ -0,0 +1,13 @@
$NetBSD: patch-gtk-im_gtkimcontextgcin.c,v 1.1 2013/02/26 11:09:46 joerg Exp $
--- gtk-im/gtkimcontextgcin.c.orig 2013-02-25 18:00:04.000000000 +0000
+++ gtk-im/gtkimcontextgcin.c
@@ -321,7 +321,7 @@ gtk_im_context_xim_new (void)
static gboolean update_cursor_position(gpointer data)
{
if (!context_xim_queued)
- return;
+ return FALSE;
g_signal_emit_by_name(context_xim_queued, "preedit_changed");
context_xim_queued = NULL;

View File

@@ -0,0 +1 @@
GTK+-2.0 Thai Input Module

View File

@@ -0,0 +1,26 @@
# $NetBSD: Makefile,v 1.21 2013/06/06 12:54:36 wiz Exp $
#
DISTNAME= gtk-im-libthai-0.2.1
PKGREVISION= 9
CATEGORIES= inputmethod
MASTER_SITES= http://linux.thai.net/pub/thailinux/software/libthai/ \
ftp://linux.thai.net/pub/ThaiLinux/software/libthai/
MAINTAINER= obache@NetBSD.org
HOMEPAGE= http://linux.thai.net/projects/gtk-im-libthai
COMMENT= GTK+-2.0 Thai Input Module
LICENSE= gnu-lgpl-v2.1
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
USE_TOOLS+= pkg-config
CONFIGURE_ARGS+= --disable-gtk3
GTK2_IMMODULES= yes
.include "../../x11/gtk2/modules.mk"
.include "../../devel/libthai/buildlink3.mk"
.include "../../x11/gtk2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

View File

@@ -0,0 +1,2 @@
@comment $NetBSD: PLIST,v 1.2 2009/06/14 18:01:29 joerg Exp $
lib/gtk-2.0/2.10.0/immodules/im-thai-libthai.la

View File

@@ -0,0 +1,6 @@
$NetBSD: distinfo,v 1.5 2011/12/06 11:41:02 obache Exp $
SHA1 (gtk-im-libthai-0.2.1.tar.gz) = fcf2395244ca9cce1fe4f87706db13883d940d40
RMD160 (gtk-im-libthai-0.2.1.tar.gz) = 36e8fec8d020fd4d31398b61c96d60dfdbf30ed4
Size (gtk-im-libthai-0.2.1.tar.gz) = 322601 bytes
SHA1 (patch-aa) = 5e2cacd1e91b9e67cfb03fe50284a9e8003601ab

View File

@@ -0,0 +1,18 @@
$NetBSD: patch-aa,v 1.4 2011/12/06 11:41:02 obache Exp $
Handled by pkgsrc package install script.
--- src/Makefile.in.orig 2011-11-20 04:29:32.000000000 +0000
+++ src/Makefile.in
@@ -662,9 +662,9 @@ uninstall-am: uninstall-gtk2moduleLTLIBR
# Running this if cross compiling or if DESTDIR is set is going to
# not work at all, so skip it.
-install-data-hook: update-modules
+install-data-hook:
-uninstall-hook: update-modules
+uninstall-hook:
update-modules:
@if test -z "$(DESTDIR)" ; then \

View File

@@ -0,0 +1,2 @@
The Anthy engine for IBus platform. It provides Japanese input method from
libanthy.

View File

@@ -0,0 +1,35 @@
# $NetBSD: Makefile,v 1.12 2012/10/06 14:25:11 asau Exp $
#
DISTNAME= ibus-anthy-1.2.7
CATEGORIES= inputmethod japanese
MASTER_SITES= http://ibus.googlecode.com/files/
MAINTAINER= obache@NetBSD.org
HOMEPAGE= http://code.google.com/p/ibus/
COMMENT= Anthy engine for IBus input platform
LICENSE= gnu-gpl-v2
DEPENDS+= kasumi>=2.1:../../inputmethod/kasumi
DEPENDS+= ibus>=1.2.0.20100111:../../inputmethod/ibus
DEPENDS+= ${PYPKGPREFIX}-gtk2>=1.15.2:../../x11/py-gtk2
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
USE_PKGLOCALEDIR= yes
USE_LANGUAGES= c
USE_TOOLS+= pkg-config msgfmt gmake intltool
FIND_PREFIX:= KASUMI_DIR=kasumi
.include "../../mk/find-prefix.mk"
CONFIGURE_ARGS+= --localedir=${PREFIX}/${PKGLOCALEDIR}/locale
CONFIGURE_ARGS+= --with-kasumi-exec=${KASUMI_DIR}/bin/kasumi
CONFIGURE_ARGS+= --with-kasumi-icon=${KASUMI_DIR}/share/pixmaps/kasumi.png
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/swig/buildlink3.mk"
PY_PATCHPLIST= yes
.include "../../lang/python/extension.mk"
.include "../../inputmethod/anthy/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

View File

@@ -0,0 +1,49 @@
@comment $NetBSD: PLIST,v 1.2 2011/05/17 11:58:44 obache Exp $
${PYSITELIB}/_anthy.la
${PYSITELIB}/anthy.py
libexec/ibus-engine-anthy
libexec/ibus-setup-anthy
share/ibus-anthy/dicts/oldchar.t
share/ibus-anthy/dicts/symbol.t
share/ibus-anthy/engine/engine.py
share/ibus-anthy/engine/engine.pyc
share/ibus-anthy/engine/engine.pyo
share/ibus-anthy/engine/factory.py
share/ibus-anthy/engine/factory.pyc
share/ibus-anthy/engine/factory.pyo
share/ibus-anthy/engine/jastring.py
share/ibus-anthy/engine/jastring.pyc
share/ibus-anthy/engine/jastring.pyo
share/ibus-anthy/engine/kana.py
share/ibus-anthy/engine/kana.pyc
share/ibus-anthy/engine/kana.pyo
share/ibus-anthy/engine/main.py
share/ibus-anthy/engine/main.pyc
share/ibus-anthy/engine/main.pyo
share/ibus-anthy/engine/romaji.py
share/ibus-anthy/engine/romaji.pyc
share/ibus-anthy/engine/romaji.pyo
share/ibus-anthy/engine/segment.py
share/ibus-anthy/engine/segment.pyc
share/ibus-anthy/engine/segment.pyo
share/ibus-anthy/engine/tables.py
share/ibus-anthy/engine/tables.pyc
share/ibus-anthy/engine/tables.pyo
share/ibus-anthy/engine/thumb.py
share/ibus-anthy/engine/thumb.pyc
share/ibus-anthy/engine/thumb.pyo
share/ibus-anthy/icons/ibus-anthy.png
share/ibus-anthy/setup/anthyprefs.py
share/ibus-anthy/setup/anthyprefs.pyc
share/ibus-anthy/setup/anthyprefs.pyo
share/ibus-anthy/setup/main.py
share/ibus-anthy/setup/main.pyc
share/ibus-anthy/setup/main.pyo
share/ibus-anthy/setup/prefs.py
share/ibus-anthy/setup/prefs.pyc
share/ibus-anthy/setup/prefs.pyo
share/ibus-anthy/setup/setup.glade
share/ibus/component/anthy.xml
share/locale/fr/LC_MESSAGES/ibus-anthy.mo
share/locale/ja/LC_MESSAGES/ibus-anthy.mo
share/locale/zh_CN/LC_MESSAGES/ibus-anthy.mo

View File

@@ -0,0 +1,5 @@
$NetBSD: distinfo,v 1.7 2012/04/22 13:58:21 obache Exp $
SHA1 (ibus-anthy-1.2.7.tar.gz) = cdfbc440d7a5069b99e565c3b6e8d9e8b62e7af6
RMD160 (ibus-anthy-1.2.7.tar.gz) = 0576a582079337d68de5d49a068b2ef7e8b0f2b6
Size (ibus-anthy-1.2.7.tar.gz) = 523139 bytes

View File

@@ -0,0 +1,2 @@
ibus-array is desined to implement a full-functional Array 30 input method
engine for iBus. Array 30 is a traditional Chinese input method used in Taiwan.

View File

@@ -0,0 +1,25 @@
# $NetBSD: Makefile,v 1.8 2012/10/06 14:25:11 asau Exp $
#
DISTNAME= ibus-array-0.0.2
PKGREVISION= 6
CATEGORIES= inputmethod chinese
MASTER_SITES= http://ibus-array.googlecode.com/files/
MAINTAINER= obache@NetBSD.org
HOMEPAGE= http://code.google.com/p/ibus-array/
COMMENT= Array 30 Input Method for iBus
LICENSE= gnu-gpl-v3
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
USE_TOOLS+= gmake pkg-config
SUBST_CLASSES+= epython
SUBST_STAGE.epython= pre-configure
SUBST_FILES.epython= setup/ibus-setup-array.in
SUBST_SED.epython= -e 's;exec python;exec ${PYTHONBIN};g'
.include "../../inputmethod/ibus/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../mk/bsd.pkg.mk"

Some files were not shown because too many files have changed in this diff Show More