[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: canuum



oishi@ims.ac.jp wrote:

 > canuumのpkgsrcです。
 > コンパイルできるようにしただけで使い込んでません。
 > (今はLANG=ja_JP.EUCにしているけどja_JP.eucJPの方がいいかしら)

ちょっとだけ修正しました。問題なければこれでcommitしておきます。

# shells/tcshでdefine KANJIしてしまいたいかも。

sakamoto
--
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	canuum/files/md5
#	canuum/pkg/COMMENT
#	canuum/pkg/DESCR
#	canuum/pkg/PLIST
#	canuum/patches/patch-ac
#	canuum/patches/patch-ae
#	canuum/patches/patch-aa
#	canuum/patches/patch-af
#	canuum/Makefile
#
echo x - canuum/files/md5
sed 's/^X//' >canuum/files/md5 << 'END-of-canuum/files/md5'
X$NetBSD: md5,v 1.1.1.1 1999/08/02 04:37:09 sakamoto Exp $
XMD5 (Uum4.109.tar.gz) = f7b322ad8d3a98fc22f598c129ab42bb
XMD5 (Canna35b2.tar.gz) = 09ae4dd3a5d33168ba17470ad9242cf3
END-of-canuum/files/md5
echo x - canuum/pkg/COMMENT
sed 's/^X//' >canuum/pkg/COMMENT << 'END-of-canuum/pkg/COMMENT'
XJapanese input tty frontend for Canna using uum
END-of-canuum/pkg/COMMENT
echo x - canuum/pkg/DESCR
sed 's/^X//' >canuum/pkg/DESCR << 'END-of-canuum/pkg/DESCR'
XCanuum is a Japanese input frontend program from Wnn tty frontend uum. 
END-of-canuum/pkg/DESCR
echo x - canuum/pkg/PLIST
sed 's/^X//' >canuum/pkg/PLIST << 'END-of-canuum/pkg/PLIST'
X@comment $NetBSD$
Xbin/canuum
Xman/ja_JP.EUC/man1/canuum.1
END-of-canuum/pkg/PLIST
echo x - canuum/patches/patch-ac
sed 's/^X//' >canuum/patches/patch-ac << 'END-of-canuum/patches/patch-ac'
X$NetBSD$
X
X--- Imakefile.orig	Tue Apr 19 20:38:45 1994
X+++ Imakefile	Fri Jan 22 00:50:46 1999
X@@ -2,4 +1,4 @@
X-#include "../Canna.conf"
X+#include "./Canna.conf"
X 
X #if SystemV || SystemV4
X SYS_LIBRARIES = -lcurses
X@@ -7,11 +7,12 @@
X SYS_LIBRARIES = -ltermcap
X #endif
X 
X-    CANNAROOT = ..
X+    CANNAROOT = .
X INSTUGIDFLAGS = -m 4755 -o root
X-     CANNASRC = $(CANNAROOT)/lib/canna16
X+     CANNASRC = $(CANNAROOT)
X       DEFINES = -DCANNA -DJAPANESE $(SIGNAL_DEFINES)
X-     INCLUDES = -I$(CANNAROOT)/include
X+     INCLUDES = -I$(CANNAROOT) -I${PREFIX}/include
X+    LDOPTIONS = ${CANNALIB16}
X 
X          SRCS = header.c printf.c termio.c termcap.c ttyfdslot.c setutmp.c \
X 		screen.c cursor.c jhlp.c xutoj.c canna.c
X@@ -21,8 +22,12 @@
X             TARGET = canuum
X 
X AllTarget($(TARGET))
X-NormalProgramTarget($(TARGET),$(OBJS),$(DEPCANNALIB16),$(CANNALIB16),)
X+NormalProgramTarget($(TARGET),$(OBJS),,,)
X InstallMultipleFlags($(TARGET),$(cannaBinDir),$(INSTUGIDFLAGS))
X InstallManPage($(TARGET),$(cannaManDir))
X DependTarget()
X LintTarget()
X+MakeCannaConfigH(cannaconf.h)
X+
X+clean::
X+	$(RM) -f cannaconf.h
END-of-canuum/patches/patch-ac
echo x - canuum/patches/patch-ae
sed 's/^X//' >canuum/patches/patch-ae << 'END-of-canuum/patches/patch-ae'
X$NetBSD$
X
X--- jhlp.c.orig	Thu Jan 21 21:52:56 1999
X+++ jhlp.c	Thu Jan 21 21:56:35 1999
X@@ -76,6 +76,9 @@
X 
X jmp_buf kk_env;
X 
X+#if (defined(__unix__) || defined(unix)) && !defined(USG)
X+#include <sys/param.h>
X+#endif
X #ifdef SYSVR2
X #	include <sys/param.h>
X #endif /* SYSVR2 */
X@@ -285,9 +288,11 @@
X 
X 
X #if defined(BSD42) && !defined(DGUX)
X+#if !(defined(BSD) && (BSD >= 199306))
X     if (saveutmp() < 0) {
X 	puts("Can't save utmp\n");
X     }
X+#endif
X #endif /* BSD42 */
X 
X 
X@@ -781,7 +786,12 @@
X #endif
X     int pid;
X 
X-    if ((pid = wait3(&status, WNOHANG | WUNTRACED, NULL)) == child_id) {
X+/*
X+ * Remove warning.
X+ * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp)		1996/8/20
X+ */
X+/*  if ((pid = wait3(&status, WNOHANG | WUNTRACED, NULL)) == child_id) { */
X+    if ((pid = wait3((int *)&status, WNOHANG | WUNTRACED, NULL)) == child_id) {
X 	if (WIFSTOPPED(status)) {
X #ifdef SIGCONT
X 	    kill(pid, SIGCONT);
X@@ -1174,9 +1184,11 @@
X 	setpgrp(0, pid);
X #endif /* BSD42 */
X 
X+#if !(defined(BSD) && (BSD >= 199306))
X 	if (setutmp(ttypfd) == ERROR) {
X 	    puts("Can't set utmp.");
X 	} 
X+#endif
X 
X #ifdef linux
X 	setsid();
X@@ -1634,9 +1646,11 @@
X 	perror(prog);
X     }
X 
X+#if !(defined(BSD) && (BSD >= 199306))
X     if (resetutmp(ttypfd) == ERROR) {
X 	printf("Can't reset utmp.");
X     }
X+#endif
X #ifdef TIOCSSIZE
X     pty_rowcol.ts_lines = 0;
X     pty_rowcol.ts_cols = 0;
X@@ -1706,11 +1720,24 @@
X char *b, *pty;
X int no;
X {
X+/*
X+ * Change pseudo-devices.
X+ * Because FreeBSD's master pseudo-devices are pty[p-sP-S][0-9a-v].
X+ * Patched by Hidekazu Kuroki(hidekazu@cs.titech.ac.jp)		1996/8/20
X+ */
X   if (no < 0x10 * ('z' - 'p' + 1)) {
X+#if (defined(BSD) && (BSD >= 199306)) /* 4.4BSD-Lite by Taoka */
X+    sprintf(b, "%s%1c%1c", pty, "pqrsPQRS"[(no >> 5)], ((no & 0x1f > 9)? 'a' : '0') + (no & 0x1f));
X+#else /* ! 4.4BSD-Lite */
X     sprintf(b, "%s%1c%1x", pty, 'p' + (no >> 4), no & 0x0f);
X+#endif /* ! 4.4BSD-Lite */
X   } else {
X     no -= 0x10 * ('z' - 'p' + 1);
X+#if (defined(BSD) && (BSD >= 199306)) /* 4.4BSD-Lite by Taoka */
X+    sprintf(b, "%s%1c%1c", pty, "pqrsPQRS"[(no >> 5)], ((no & 0x1f > 9)? 'a' : '0') + (no & 0x1f));
X+#else /* ! 4.4BSD-Lite */
X     sprintf(b, "%s%1c%1x", pty, 'P' + (no >> 4), no & 0x0f);
X+#endif /* ! 4.4BSD-Lite */
X   }
X }
X 
END-of-canuum/patches/patch-ae
echo x - canuum/patches/patch-aa
sed 's/^X//' >canuum/patches/patch-aa << 'END-of-canuum/patches/patch-aa'
X$NetBSD$
X
X--- Canna.conf.orig	Thu Nov 28 19:27:01 1996
X+++ Canna.conf	Thu Aug 19 19:02:12 1999
X@@ -128,18 +128,19 @@
X  * $Id: Canna.conf,v 3.13 1996/11/28 10:27:01 kon Exp $
X  */
X 
X-cannaBinDir = /usr/local/canna/bin
X-cannaSrvDir = /usr/local/canna/bin
X-cannaLibDir = /usr/local/canna/lib
X-cannaManDir = /usr/local/canna/man
X-cannaIncDir = /usr/local/canna/include/canna
X-libCannaDir = /usr/lib
X+cannaBinDir = ${PREFIX}/bin
X+cannaSrvDir = ${PREFIX}/sbin
X+cannaLibDir = ${PREFIX}/share/canna
X+cannaManDir = ${PREFIX}/man
X+cannaIncDir = ${PREFIX}/include/canna
X+libCannaDir = ${PREFIX}/lib
X+USRLIBDIRPATH = $(libCannaDir)
X 
X ErrDir  = /usr/spool/canna
X 
X wcharDefinition = -DCANNA_WCHAR
X Wlib =
X-JapaneseLocale = japanese
X+JapaneseLocale = ja_JP.EUC
X 
X cannaOwner = bin
X cannaGroup = bin
X@@ -201,8 +202,7 @@
X  * インストール済みの共有ライブラリを用いて Canna の
X  * コマンド類をリンクする時は、次を YES にしてくだい。
X  */
X-/* #define UseInstalledLibCanna YES */
X-#define UseInstalledLibCanna NO
X+#define UseInstalledLibCanna YES
X 
X DicDir   = $(cannaLibDir)/dic
X 
END-of-canuum/patches/patch-aa
echo x - canuum/patches/patch-af
sed 's/^X//' >canuum/patches/patch-af << 'END-of-canuum/patches/patch-af'
X$NetBSD$
X
X--- sheader.h.orig	Tue Aug 17 17:47:04 1999
X+++ sheader.h	Tue Aug 17 17:48:00 1999
X@@ -336,7 +336,7 @@
X extern void set_keypad_on();
X extern void set_keypad_off();
X extern void set_scroll_region();
X-#if defined(linux) || defined(__FreeBSD__) || defined(__MACHTEN__)
X+#if defined(linux) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__MACHTEN__)
X #define HAVE_SETENV
X #endif
X #ifndef HAVE_SETENV
END-of-canuum/patches/patch-af
echo x - canuum/Makefile
sed 's/^X//' >canuum/Makefile << 'END-of-canuum/Makefile'
X# $NetBSD$
X#
X
XDISTNAME=	canuum-1.0
XCATEGORIES=	japanese
XMASTER_SITES=	ftp://ftp.nec.co.jp/pub/Canna/Canna35/
XDISTFILES=	Uum4.109.tar.gz Canna35b2.tar.gz
XEXTRACT_ONLY=	Uum4.109.tar.gz
X
XMAINTAINER=	oishi@ims.ac.jp
XHOMEPAGE=	http://www.nec.co.jp/japanese/product/computer/soft/canna/
X
XDEPENDS=	Canna-lib-3.5b2:../../japanese/canna-lib
X
XMANLANG=	ja
XMAN1=		canuum.1
XMAKE_ARGS=	PREFIX=${PREFIX}
XWRKSRC=		${WRKDIR}/Canna35b2/canuum
X
Xpost-extract:
X	@${GTAR} -xzf ${DISTDIR}/Canna35b2.tar.gz -C ${WRKDIR} \
X		Canna35b2/Canna.conf Canna35b2/canuum
X	@${MV} ${WRKDIR}/Canna35b2/Canna.conf ${WRKSRC}/
X	@${CP} ${WRKDIR}/Uum4.109/* ${WRKSRC}
X
Xpre-patch:
X	@(cd ${WRKSRC}; ${PATCH} ${PATCH_DIST_ARGS} < Canuum.patch)
X
Xdo-configure:
X	@(cd ${WRKSRC}; xmkmf; ${MAKE} ${MAKE_ARGS} Makefile; \
X	${MAKE} ${MAKE_ARGS} cannaconf.h; ${MAKE} ${MAKE_ARGS} depend)
X
Xdo-build:
X	@(cd ${WRKSRC}; make ${MAKE_ARGS} all)
X
Xpost-install:
X	@${INSTALL_MAN} ${WRKSRC}/canuum.jmn ${PREFIX}/man/ja_JP.EUC/man1/canuum.1
X
X.include "../../mk/bsd.pkg.mk"
END-of-canuum/Makefile
exit