diff options
author | itohy <itohy> | 1999-12-24 03:23:50 +0000 |
---|---|---|
committer | itohy <itohy> | 1999-12-24 03:23:50 +0000 |
commit | 0a9da0c1f5231d39513f8f37b6b5710e6a7eb72b (patch) | |
tree | 8bd2351ec7db9dac8aaf4d65324a2b71e619e154 /japanese | |
parent | 0e818d54aae964f7ef5ef6f2aa86c876497df25d (diff) | |
download | pkgsrc-0a9da0c1f5231d39513f8f37b6b5710e6a7eb72b.tar.gz |
X11 frontend of SKK
Diffstat (limited to 'japanese')
-rw-r--r-- | japanese/skkinput/Makefile | 33 | ||||
-rw-r--r-- | japanese/skkinput/files/md5 | 3 | ||||
-rw-r--r-- | japanese/skkinput/files/patch-sum | 4 | ||||
-rw-r--r-- | japanese/skkinput/patches/patch-aa | 21 | ||||
-rw-r--r-- | japanese/skkinput/patches/patch-ab | 72 | ||||
-rw-r--r-- | japanese/skkinput/pkg/COMMENT | 1 | ||||
-rw-r--r-- | japanese/skkinput/pkg/DESCR | 4 | ||||
-rw-r--r-- | japanese/skkinput/pkg/INSTALL | 34 | ||||
-rw-r--r-- | japanese/skkinput/pkg/MESSAGE | 4 | ||||
-rw-r--r-- | japanese/skkinput/pkg/PLIST | 9 |
10 files changed, 185 insertions, 0 deletions
diff --git a/japanese/skkinput/Makefile b/japanese/skkinput/Makefile new file mode 100644 index 00000000000..4d8c21987f1 --- /dev/null +++ b/japanese/skkinput/Makefile @@ -0,0 +1,33 @@ +# $NetBSD: Makefile,v 1.1.1.1 1999/12/24 03:23:50 itohy Exp $ + +DISTNAME= skkinput-2.01 +CATEGORIES= japanese +MASTER_SITES= http://www.yajima.kuis.kyoto-u.ac.jp/staffs/sakamoto/skkinput/ + +MAINTAINER= packages@netbsd.org +HOMEPAGE= http://www.yajima.kuis.kyoto-u.ac.jp/staffs/sakamoto/skkinput/skkinput.html + +USE_IMAKE= YES + +# skk.conf uses /usr/pkg (${LOCALBASE}), not /usr/X11R6 (${PREFIX}) +MAKE_ENV= MAKE_FLAGS='EXECBASE=${LOCALBASE}' +PLIST_SUBST= PKGBASE=${LOCALBASE} + +DESCR_SRC= ${WRKDIR}/DESCR +INSTALL_FILE= ${WRKDIR}/INSTALL +MESSAGE_FILE= ${WRKDIR}/MESSAGE + +post-build: + ${SED} 's#@PKGBASE@#${LOCALBASE}#g' ${PKGDIR}/DESCR >${DESCR_SRC} + ${SED} 's#@PKGBASE@#${LOCALBASE}#g' ${PKGDIR}/INSTALL >${INSTALL_FILE} + ${SED} 's#@PKGBASE@#${LOCALBASE}#g' ${PKGDIR}/MESSAGE >${MESSAGE_FILE} + +post-install: + ${INSTALL_MAN} ${WRKSRC}/skkinput.man ${PREFIX}/man/ja_JP.EUC/man1/skkinput.1 + ${MKDIR} ${PREFIX}/share/doc/skkinput + ${INSTALL_DATA} ${WRKSRC}/README.jis ${PREFIX}/share/doc/skkinput + ${INSTALL_DATA} ${WRKSRC}/FAQ.jis ${PREFIX}/share/doc/skkinput + ${INSTALL_DATA} ${WRKSRC}/BUGS.jis ${PREFIX}/share/doc/skkinput + ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL + +.include "../../mk/bsd.pkg.mk" diff --git a/japanese/skkinput/files/md5 b/japanese/skkinput/files/md5 new file mode 100644 index 00000000000..f825b355da8 --- /dev/null +++ b/japanese/skkinput/files/md5 @@ -0,0 +1,3 @@ +$NetBSD: md5,v 1.1.1.1 1999/12/24 03:23:50 itohy Exp $ + +MD5 (skkinput-2.01.tar.gz) = 69d74efaa25ca94884b702f2a53428da diff --git a/japanese/skkinput/files/patch-sum b/japanese/skkinput/files/patch-sum new file mode 100644 index 00000000000..d1af58d4919 --- /dev/null +++ b/japanese/skkinput/files/patch-sum @@ -0,0 +1,4 @@ +$NetBSD: patch-sum,v 1.1.1.1 1999/12/24 03:23:50 itohy Exp $ + +MD5 (patch-aa) = 860c27a6ab014dad990751be30f740ab +MD5 (patch-ab) = b2947f70c87eef521a3de5af2971f51c diff --git a/japanese/skkinput/patches/patch-aa b/japanese/skkinput/patches/patch-aa new file mode 100644 index 00000000000..af0e3c2a86e --- /dev/null +++ b/japanese/skkinput/patches/patch-aa @@ -0,0 +1,21 @@ +$NetBSD: patch-aa,v 1.1.1.1 1999/12/24 03:23:50 itohy Exp $ + +--- Imakefile.orig Tue Mar 3 21:59:39 1998 ++++ Imakefile Tue Dec 21 01:29:48 1999 +@@ -81,7 +81,8 @@ + OBJS = $(COMMONOBJS) $(KINPUTOBJS) $(XIMPOBJS) $(IMOBJS) + + #ifdef SkkServer +-SKKSERVER_DEFS = -DDEFAULT_SKKSERVER=\"SkkServer\" ++SKKSERVER_DEFS = -DDEFAULT_SKKSERVER=\"SkkServer\" \ ++ -DSKK_CONF=\"$(EXECBASE)/etc/skk.conf\" + #endif + + #ifdef SkkPort +@@ -95,5 +96,5 @@ + DEFINES = $(SKKSERVER_DEFS) $(SKKPORT_DEFS) $(SKK_DEBUGFLAGS) \ + $(SKKFONT_DEFS) $(SKK_KINPUTDEFS) $(SKK_XIMPDEFS) $(SKK_IMDEFS) + +-ComplexProgramTarget(skkinput) ++ComplexProgramTargetNoMan(skkinput) + InstallAppDefaults(Skkinput) diff --git a/japanese/skkinput/patches/patch-ab b/japanese/skkinput/patches/patch-ab new file mode 100644 index 00000000000..11d4701eda8 --- /dev/null +++ b/japanese/skkinput/patches/patch-ab @@ -0,0 +1,72 @@ +$NetBSD: patch-ab,v 1.1.1.1 1999/12/24 03:23:50 itohy Exp $ + +--- skkconfig.c.orig Thu Nov 13 22:42:43 1997 ++++ skkconfig.c Fri Dec 24 00:51:24 1999 +@@ -988,12 +988,43 @@ + void initSkkinputDousaketteiVariables( void ) + { + struct servent *servent ; ++#ifdef SKK_CONF /* use skk.conf */ ++ FILE *conffp; ++ char line[128]; ++ static char hostbuf[120]; ++ char *confhost = NULL; ++ int confport = 0; ++ ++ if ((conffp = fopen(SKK_CONF, "r")) != NULL) { ++ char *p, *data; ++ ++ while (fgets(line, sizeof line, conffp) != NULL) { ++ if ((p = strchr(line, '#')) != NULL) ++ *p = '\0'; ++ if ((p = strtok(line, ": \t\n")) == NULL) ++ continue; ++ if ((data = strtok((char *) NULL, " \t\n")) == NULL) ++ continue; ++ if (!strcmp(p, "skkserv_host")) { ++ strcpy(hostbuf, data); ++ confhost = hostbuf; ++ } else if (!strcmp(p, "skkserv_port")) { ++ confport = atoi(data); ++ } ++ } ++ } ++#endif + + /* 局所辞書の所在を知らないとしておく。*/ + skkinput_local_jisyo_name = DEFAULT_SKKLJISYO ; + skkinput_backup_jisyo_name = DEFAULT_SKKBJISYO ; + skkinput_record_name = DEFAULT_SKKRECORD ; + skk_local_jisyo_name = DEFAULT_SKKLOCALJISYO ; ++#ifdef SKK_CONF ++ if (confport) ++ skkserv_portnum = confport; ++ else { ++#endif + /* "/etc/services" からポート番号を得ておく。*/ + servent = getservbyname( SKKSERV_SERVICE_NAME, SKKSERV_SERVICE_PROTO ) ; + if( servent == NULL ){ +@@ -1001,16 +1032,22 @@ + skkserv_portnum = atoi( DEFAULT_SKKPORT ) ; + } else { + /* /etc/services に設定があった…。*/ +- skkserv_portnum = htons( servent->s_port ) ; ++ skkserv_portnum = ntohs( servent->s_port ) ; + #if defined(DEBUG) + fprintf + ( stderr, "getservbyname: \"%s\", %d\n", + servent->s_name, skkserv_portnum ) ; + #endif + } ++#ifdef SKK_CONF ++ } ++#endif + /* 環境変数 SKKSERV が設定されていれば、それを DEFAULT の skkserv * + * host とする。*/ + if( ( skkserv_host = getenv( "SKKSERVER" ) ) == NULL ) ++#ifdef SKK_CONF ++ if ((skkserv_host = confhost) == NULL) ++#endif + skkserv_host = DEFAULT_SKKSERVER ; + + /* デフォルトのキーマップを作成する。*/ diff --git a/japanese/skkinput/pkg/COMMENT b/japanese/skkinput/pkg/COMMENT new file mode 100644 index 00000000000..268b9f1ce73 --- /dev/null +++ b/japanese/skkinput/pkg/COMMENT @@ -0,0 +1 @@ +X11 frontend of SKK diff --git a/japanese/skkinput/pkg/DESCR b/japanese/skkinput/pkg/DESCR new file mode 100644 index 00000000000..6e37b3af95b --- /dev/null +++ b/japanese/skkinput/pkg/DESCR @@ -0,0 +1,4 @@ + skkinput is an X11 frontend of SKK (Simple Kana to Kanji conversion). +It behaves as a kana-kanji conversion server of kinput, kinput2, and Ximp +protocols and X11R6 X Input Method. It makes use of skkserv to access +the common dictionary. diff --git a/japanese/skkinput/pkg/INSTALL b/japanese/skkinput/pkg/INSTALL new file mode 100644 index 00000000000..621492216ae --- /dev/null +++ b/japanese/skkinput/pkg/INSTALL @@ -0,0 +1,34 @@ +#! /bin/sh +# $NetBSD: INSTALL,v 1.1.1.1 1999/12/24 03:23:51 itohy Exp $ + +case "$2" in +POST-INSTALL) + # install skkserv port number + if egrep '^skkserv[ ]' /etc/services >/dev/null; then + : + else + echo ' +skkserv 1178/tcp # SKK server' >>/etc/services + fi + + # install skk.cf + if [ ! -f @PKGBASE@/etc/skk.conf ]; then + cat <<'END' >@PKGBASE@/etc/skk.conf +# skk.conf - configuration file for SKK client programs + +# Syntax +# Lines start with '#' are comments. +# +# skkserv_host: <hostnme> # Host which skkserv is running on. +# # default: localhost +# +# skkserv_port: <port_number> # TCP port number of skkserv. +# # default: lookup "skkserv" in services +# + +# skkserv_host: localhost +# skkserv_port: 1178 +END + fi + ;; +esac diff --git a/japanese/skkinput/pkg/MESSAGE b/japanese/skkinput/pkg/MESSAGE new file mode 100644 index 00000000000..868dfc7e6e4 --- /dev/null +++ b/japanese/skkinput/pkg/MESSAGE @@ -0,0 +1,4 @@ + To use skkinput, the dictionary server (skkserv) is almost +required. Use "skkserv" pkg, or, if you have another machine +running skkserv, put the hostname in @PKGBASE@/etc/skk.conf +file, and skkinput will connect to the host. diff --git a/japanese/skkinput/pkg/PLIST b/japanese/skkinput/pkg/PLIST new file mode 100644 index 00000000000..38545c0df39 --- /dev/null +++ b/japanese/skkinput/pkg/PLIST @@ -0,0 +1,9 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 1999/12/24 03:23:51 itohy Exp $ +bin/skkinput +lib/X11/app-defaults/Skkinput +man/ja_JP.EUC/man1/skkinput.1 +share/doc/skkinput/README.jis +share/doc/skkinput/FAQ.jis +share/doc/skkinput/BUGS.jis +@dirrm share/doc/skkinput +@unexec if [ -f ${PKGBASE}/etc/skk.conf ]; then echo 'Remove "${PKGBASE}/etc/skk.conf" if you will not use SKK programs any longer.'; fi |