Japanized Vim-3.0 with {Canna, Canna+Wnn4, Canna+Wnn6, Wnn4, Wnn6 and

direct connection to Canna}.

PKGNAME of japanese/jvim3-direct_canna has 2 dashes like
"ja-jvim--direct_canna-3.0.1.3d", but "-direct_canna" is used for
specifying compiler option automagically.

PR:		ports/8115
Submitted by:	Satoshi Taoka <taoka@infonets.hiroshima-u.ac.jp>
This commit is contained in:
Jun Kuriyama 1998-10-20 15:52:55 +00:00
parent 7e57577e04
commit ea8e7984fa
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=14127
31 changed files with 443 additions and 0 deletions

View File

@ -0,0 +1,14 @@
# New ports collection makefile for: jvim3 for Canna and Wnn4
# Version required: 3.0-j1.3d
# Date created: 97/10/30
# Whom: Satoshi TAOKA <taoka@infonets.hiroshima-u.ac.jp>
#
# $Id$
#
PKGNAME= ja-jvim-canna+wnn4-3.0.1.3d
CANNA= yes
WNN4= yes
.include "${.CURDIR}/../jvim3/Makefile"

View File

@ -0,0 +1 @@
Japanized Vim-3.0 (with Canna and Wnn4)

View File

@ -0,0 +1,12 @@
JVim 3.0 is a text editor that is upwards compatible to vi. It can be
used to edit any ASCII and Japanese(SJIS/JIS/EUC/Unicode) text. It is
especially useful for editing programs.
This package is built with Japanese support, using Canna and Wnn4.
There are a lot of enhancements above vi: multi level undo, command
line editing, filename completion, on line help, quoting, etc.. Read
difference.doc for a summary of the differences between vi and Vim.
-- S. Taoka
<taoka@infonets.hiroshima-u.ac.jp>

View File

@ -0,0 +1,14 @@
# New ports collection makefile for: jvim3 for Canna and Wnn6
# Version required: 3.0-j1.3d
# Date created: 97/10/30
# Whom: Satoshi TAOKA <taoka@infonets.hiroshima-u.ac.jp>
#
# $Id$
#
PKGNAME= ja-jvim-canna+wnn6-3.0.1.3d
CANNA= yes
WNN6= yes
.include "${.CURDIR}/../jvim3/Makefile"

View File

@ -0,0 +1 @@
Japanized Vim-3.0 (with Canna and Wnn6)

View File

@ -0,0 +1,12 @@
JVim 3.0 is a text editor that is upwards compatible to vi. It can be
used to edit any ASCII and Japanese(SJIS/JIS/EUC/Unicode) text. It is
especially useful for editing programs.
This package is built with Japanese support, using Canna and Wnn6.
There are a lot of enhancements above vi: multi level undo, command
line editing, filename completion, on line help, quoting, etc.. Read
difference.doc for a summary of the differences between vi and Vim.
-- S. Taoka
<taoka@infonets.hiroshima-u.ac.jp>

View File

@ -0,0 +1,14 @@
# New ports collection makefile for: jvim3 for Canna and Wnn6
# Version required: 3.0-j1.3d
# Date created: 97/10/30
# Whom: Satoshi TAOKA <taoka@infonets.hiroshima-u.ac.jp>
#
# $Id$
#
PKGNAME= ja-jvim-canna+wnn6-3.0.1.3d
CANNA= yes
WNN6= yes
.include "${.CURDIR}/../jvim3/Makefile"

View File

@ -0,0 +1 @@
Japanized Vim-3.0 (with Canna and Wnn6)

View File

@ -0,0 +1,12 @@
JVim 3.0 is a text editor that is upwards compatible to vi. It can be
used to edit any ASCII and Japanese(SJIS/JIS/EUC/Unicode) text. It is
especially useful for editing programs.
This package is built with Japanese support, using Canna and Wnn6.
There are a lot of enhancements above vi: multi level undo, command
line editing, filename completion, on line help, quoting, etc.. Read
difference.doc for a summary of the differences between vi and Vim.
-- S. Taoka
<taoka@infonets.hiroshima-u.ac.jp>

View File

@ -0,0 +1,13 @@
# New ports collection makefile for: jvim3 for Canna
# Version required: 3.0-j1.3d
# Date created: 97/10/30
# Whom: Satoshi TAOKA <taoka@infonets.hiroshima-u.ac.jp>
#
# $Id$
#
PKGNAME= ja-jvim-canna-3.0.1.3d
CANNA= yes
.include "${.CURDIR}/../jvim3/Makefile"

View File

@ -0,0 +1 @@
Japanized Vim-3.0 (with Canna)

View File

@ -0,0 +1,12 @@
JVim 3.0 is a text editor that is upwards compatible to vi. It can be
used to edit any ASCII and Japanese(SJIS/JIS/EUC/Unicode) text. It is
especially useful for editing programs.
This package is built with Japanese support, using Canna.
There are a lot of enhancements above vi: multi level undo, command
line editing, filename completion, on line help, quoting, etc.. Read
difference.doc for a summary of the differences between vi and Vim.
-- S. Taoka
<taoka@infonets.hiroshima-u.ac.jp>

View File

@ -0,0 +1,13 @@
# New ports collection makefile for: jvim3 for Canna without ONEW library
# Version required: 3.0-j1.3d
# Date created: 97/10/30
# Whom: Satoshi TAOKA <taoka@infonets.hiroshima-u.ac.jp>
#
# $Id$
#
PKGNAME= ja-jvim--direct_canna-3.0.1.3d
DIRECT_CANNA= yes
.include "${.CURDIR}/../jvim3/Makefile"

View File

@ -0,0 +1 @@
Japanized Vim-3.0 (direct connection to Canna)

View File

@ -0,0 +1,13 @@
JVim 3.0 is a text editor that is upwards compatible to vi. It can be
used to edit any ASCII and Japanese(SJIS/JIS/EUC/Unicode) text. It is
especially useful for editing programs.
This package is built with Japanese support, using Canna without ONEW
library (that is, it means this connects to Canna directly).
There are a lot of enhancements above vi: multi level undo, command
line editing, filename completion, on line help, quoting, etc.. Read
difference.doc for a summary of the differences between vi and Vim.
-- S. Taoka
<taoka@infonets.hiroshima-u.ac.jp>

View File

@ -0,0 +1,13 @@
# New ports collection makefile for: jvim3 for Wnn4
# Version required: 3.0-j1.3d
# Date created: 97/10/30
# Whom: Satoshi TAOKA <taoka@infonets.hiroshima-u.ac.jp>
#
# $Id$
#
PKGNAME= ja-jvim-wnn4-3.0.1.3d
WNN4= yes
.include "${.CURDIR}/../jvim3/Makefile"

View File

@ -0,0 +1 @@
Japanized Vim-3.0 (with Wnn4)

View File

@ -0,0 +1,12 @@
JVim 3.0 is a text editor that is upwards compatible to vi. It can be
used to edit any ASCII and Japanese(SJIS/JIS/EUC/Unicode) text. It is
especially useful for editing programs.
This package is built with Japanese support, using Wnn4.
There are a lot of enhancements above vi: multi level undo, command
line editing, filename completion, on line help, quoting, etc.. Read
difference.doc for a summary of the differences between vi and Vim.
-- S. Taoka
<taoka@infonets.hiroshima-u.ac.jp>

View File

@ -0,0 +1,13 @@
# New ports collection makefile for: jvim3 for Wnn6
# Version required: 3.0-j1.3d
# Date created: 97/10/30
# Whom: Satoshi TAOKA <taoka@infonets.hiroshima-u.ac.jp>
#
# $Id$
#
PKGNAME= ja-jvim-wnn6-3.0.1.3d
WNN6= yes
.include "${.CURDIR}/../jvim3/Makefile"

View File

@ -0,0 +1 @@
Japanized Vim-3.0 (with Wnn6)

View File

@ -0,0 +1,12 @@
JVim 3.0 is a text editor that is upwards compatible to vi. It can be
used to edit any ASCII and Japanese(SJIS/JIS/EUC/Unicode) text. It is
especially useful for editing programs.
This package is built with Japanese support, using Wnn6.
There are a lot of enhancements above vi: multi level undo, command
line editing, filename completion, on line help, quoting, etc.. Read
difference.doc for a summary of the differences between vi and Vim.
-- S. Taoka
<taoka@infonets.hiroshima-u.ac.jp>

View File

@ -0,0 +1,13 @@
# New ports collection makefile for: jvim3 for Wnn6
# Version required: 3.0-j1.3d
# Date created: 97/10/30
# Whom: Satoshi TAOKA <taoka@infonets.hiroshima-u.ac.jp>
#
# $Id$
#
PKGNAME= ja-jvim-wnn6-3.0.1.3d
WNN6= yes
.include "${.CURDIR}/../jvim3/Makefile"

View File

@ -0,0 +1 @@
Japanized Vim-3.0 (with Wnn6)

View File

@ -0,0 +1,12 @@
JVim 3.0 is a text editor that is upwards compatible to vi. It can be
used to edit any ASCII and Japanese(SJIS/JIS/EUC/Unicode) text. It is
especially useful for editing programs.
This package is built with Japanese support, using Wnn6.
There are a lot of enhancements above vi: multi level undo, command
line editing, filename completion, on line help, quoting, etc.. Read
difference.doc for a summary of the differences between vi and Vim.
-- S. Taoka
<taoka@infonets.hiroshima-u.ac.jp>

121
japanese/jvim3/Makefile Normal file
View File

@ -0,0 +1,121 @@
# New ports collection makefile for: jvim3
# Version required: 3.0-j1.3d
# Date created: 97/10/30
# Whom: Satoshi TAOKA <taoka@infonets.hiroshima-u.ac.jp>
#
# $Id$
#
DISTNAME= vim
PKGNAME?= ja-jvim-3.0.1.3d
CATEGORIES= japanese editors
MASTER_SITES= ftp://dutepp0.et.tudelft.nl/pub/Unix/Editors/ \
http://spock.vector.co.jp/authors/VA003457/vim/vim3/1.3d/
DISTFILES= vim-3.0.tar.gz jvim.1.3d.tar.gz
MAINTAINER= taoka@infonets.hiroshima-u.ac.jp
LIB_DEPENDS= ${LIB_INPUT_METHOD}
BUILD_DEPENDS= ${BUILD_INPUT_METHOD}
PATCHDIR= ${.CURDIR}/../jvim3/patches
FILESDIR= ${.CURDIR}/../jvim3/files
.if !defined(WNN6)
## For Wnn6 we use a local PLIST
PLIST= ${.CURDIR}/../jvim3/pkg/PLIST
.endif
EXTRACT_ONLY= vim-3.0.tar.gz
MAKEFILE= makjunix.mak
MAN1= jvim3.1
VERSION= 3.0.1.3d
PLIST_SUB= VERSION=${VERSION}
PORT_DOCDIR= ${PREFIX}/share/doc/ja-jvim-${VERSION}
# -DUSE_X11 is the cause of a problem treating Japanese
MACHINE= -DBSD_UNIX -DUSE_LOCALE -DUSE_X11
CC= cc -O -g -Wall -traditional -Dconst= -I${X11BASE}/include
LIBS= -ltermlib -lxpg4 -L${PREFIX}/lib -L${X11BASE}/lib -lX11
# Specifying a velue INPUT_METHOD, and seting values BUILD_DEPENDS,
# LIB_DEPENDS, etc.
FEPOPT= -DJP_DEF=\"EEE\"
#######
# Direct connection to Canna
#######
.if defined(DIRECT_CANNA)
INPUT_METHOD= -direct_canna
LIB_INPUT_METHOD= canna.1:${PORTSDIR}/japanese/Canna
FEPOPT+= -DCANNA
FEPLIBS= -lcanna
FEPOBJS= fepcanna.o
.else # DIRECT_CANNA
#######
# Connection by using ONEW library
#######
.if defined(CANNA)
INPUT_METHOD+= canna
LIB_INPUT_METHOD+= canna.1:${PORTSDIR}/japanese/Canna
FEPLIBS+= -lcanna
.endif
.if defined(WNN4)
INPUT_METHOD+= wnn4
BUILD_INPUT_METHOD+= ${LOCALBASE}/bin/Wnn4/jserver:${PORTSDIR}/japanese/Wnn
FEPLIBS+= -L${X11BASE}/lib -ljd -lcrypt
.elif defined(WNN6)
INPUT_METHOD+= wnn6
BUILD_INPUT_METHOD+= ${LOCALBASE}/bin/Wnn4/jserver:${PORTSDIR}/japanese/Wnn
FEPLIBS+= -L${X11BASE}/lib -ljd -lcrypt
.endif
#
# Make a value of INPUT_METHOD
.if defined(INPUT_METHOD)
# 'echo' and 'sed' cannot replace by '${ECHO}' and '${SED}' in the next line
INPUT_METHOD!= echo ${INPUT_METHOD} | sed -e 's/^/-/' -e 's/ /+/g'
.endif
#
# For ONEW library
.if defined(INPUT_METHOD)
BUILD_INPUT_METHOD+= ${LOCALBASE}/lib/libonew${INPUT_METHOD}.a:${PORTSDIR}/japanese/onew${INPUT_METHOD}
FEPOPT+= -DONEW
# If we use ONEW libray, then -lonew-* need appear
# before the other libraries in ${FEPLIBS}.
### 'sed' and echo cannot replace by '${SED}' and ${ECHO} in the next line
FEPLIBS!= echo ${FEPLIBS} | sed 's%^%-lonew${INPUT_METHOD} %'
FEPOBJS= feponew.o
.endif
.endif # DIRECT_CANNA
###
.if defined(FEPOBJS)
# In the case defining at least one of CANNA, WNN4, WNN6, DIRECT_CANNA
FEPOPT+= -DFEPCTRL
.endif
post-extract:
${EXTRACT_CMD} -C ${WRKSRC} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/jvim.1.3d.tar.gz
pre-patch:
cd ${WRKSRC}; ${PATCH} ${PATCH_DIST_ARGS} < ${WRKSRC}/jvim.diff
do-build:
cd ${WRKSRC}/src; \
make -f ${MAKEFILE} 'FEPOPT=${FEPOPT}' 'FEPLIBS=${FEPLIBS}' \
'FEPOBJS=${FEPOBJS}' 'MACHINE=${MACHINE}' 'CC=${CC}' \
'LIBS=${LIBS}'
do-install:
cd ${WRKSRC}/src; make -f ${MAKEFILE} install
if [ -e ${PREFIX}/etc/jvim3rc ]; then \
${MV} ${PREFIX}/etc/jvim3rc ${PREFIX}/etc/jvim3rc.bak; \
fi
${ECHO} "set fepctrl" > ${PREFIX}/etc/jvim3rc
.if !defined(NOPORTDOCS)
.if defined(PORT_DOCDIR)
${MKDIR} ${PORT_DOCDIR}
for file in differen.doc readme.doc uganda.jp \
fepctrl.doc tutor/tutor.j; do \
${INSTALL_DATA} ${WRKSRC}/doc.j/$$file ${PORT_DOCDIR}; \
done
.endif
.endif
.include <bsd.port.mk>

2
japanese/jvim3/distinfo Normal file
View File

@ -0,0 +1,2 @@
MD5 (vim-3.0.tar.gz) = ecc99d34ca57bc2d2e3b7e3d9832591d
MD5 (jvim.1.3d.tar.gz) = 5e1a3026ffbed99813da0a2768008747

View File

@ -0,0 +1,75 @@
--- src/makjunix.mak.orig Fri Sep 11 11:00:13 1998
+++ src/makjunix.mak Tue Sep 15 16:26:30 1998
@@ -55,20 +55,24 @@
### root directory for X11 files (unless overruled in hardware-dependend part)
### Unfortunately there is no standard for these, everybody puts them
### somewhere else
-X11LIBDIR = /usr/openwin/lib
-X11INCDIR = /usr/openwin/include
+#X11LIBDIR = /usr/openwin/lib
+#X11INCDIR = /usr/openwin/include
### for some hpux systems:
#X11LIBDIR = /usr/lib/X11R5
#X11INCDIR = /usr/include/X11R5
+### for FreeBSD with XFree86
+X11LIBDIR = /usr/X11R6/lib
+X11INCDIR = /usr/X11R6/include
+
### Prefix for location of files
-PREFIX = /usr/local
+PREFIX?= /usr/local
### Location of binary
BINLOC = $(PREFIX)/bin
### Name of target
-TARGET = vim
+TARGET = jvim3
### Location of man page
MANLOC = $(PREFIX)/man/man1
@@ -90,7 +94,7 @@
MANFILE = ../doc/vim.1
-HELPFILE = ../doc/vim.hlp
+HELPFILE = ../doc.j/vim.hlp
#
# PART 2: various choices
@@ -158,7 +162,8 @@
DEFS = -DDIGRAPHS -DTERMCAP -DSOME_BUILTIN_TCAPS -DNO_FREE_NULL -DVIM_ISSPACE \
-DWEBB_COMPLETE -DWEBB_KEYWORD_COMPL \
- -DVIM_HLP=\"$(HELPLOC)/vim.hlp\" \
+ -DVIM_HLP=\"$(HELPLOC)/jvim3.hlp\" \
+ -DDEFVIMRC_FILE=\"$(PREFIX)/etc/jvim3rc\" \
-DKANJI -DTRACK -DCRMARK -DFEXRC -DUSE_GREP -DUSE_OPT $(FEPOPT)
#
@@ -430,11 +435,11 @@
chmod $(BINMOD) $(BINLOC)/$(TARGET)
$(STRIP) $(BINLOC)/$(TARGET)
-mkdir $(MANLOC)
- cp $(MANFILE) $(MANLOC)
- chmod $(MANMOD) $(MANLOC)/vim.1
+ cp $(MANFILE) $(MANLOC)/jvim3.1
+ chmod $(MANMOD) $(MANLOC)/jvim3.1
-mkdir $(HELPLOC)
- cp $(HELPFILE) $(HELPLOC)
- chmod $(HELPMOD) $(HELPLOC)/vim.hlp
+ cp $(HELPFILE) $(HELPLOC)/jvim3.hlp
+ chmod $(HELPMOD) $(HELPLOC)/jvim3.hlp
clean:
-rm -f $(OBJ) mkcmdtab.o version.o core $(TARGET) mkcmdtab cmdtab.h
@@ -582,7 +587,7 @@
$(CC) $(CFLAGS) fepbow.c
fepcanna.o: fepcanna.c
- $(CC) $(CFLAGS) -I/usr/local/canna/include fepcanna.c
+ $(CC) $(CFLAGS) -I/usr/local/canna/include -I${PREFIX}/include fepcanna.c
feponew.o: feponew.c
$(CC) $(CFLAGS) feponew.c

View File

@ -0,0 +1,12 @@
--- src/term.c.~1~ Thu Sep 17 11:58:38 1998
+++ src/term.c Fri Sep 18 09:26:33 1998
@@ -207,7 +207,9 @@
T_CDL = TGETSTR("DL", &tp);
T_CS = TGETSTR("cs", &tp);
T_ED = TGETSTR("cl", &tp);
+#ifndef __FreeBSD__ /* by Satoshi TAOKA */
T_CI = TGETSTR("vi", &tp);
+#endif
T_CV = TGETSTR("ve", &tp);
T_CVV = TGETSTR("vs", &tp);
T_TP = TGETSTR("me", &tp);

View File

@ -0,0 +1 @@
Japanized Vim-3.0

10
japanese/jvim3/pkg-descr Normal file
View File

@ -0,0 +1,10 @@
JVim 3.0 is a text editor that is upwards compatible to vi. It can be
used to edit any ASCII and Japanese(SJIS/JIS/EUC/Unicode) text. It is
especially useful for editing programs.
There are a lot of enhancements above vi: multi level undo, command
line editing, filename completion, on line help, quoting, etc.. Read
difference.doc for a summary of the differences between vi and Vim.
-- S. Taoka
<taoka@infonets.hiroshima-u.ac.jp>

10
japanese/jvim3/pkg-plist Normal file
View File

@ -0,0 +1,10 @@
bin/jvim3
lib/jvim3.hlp
@exec ([ -f %D/etc/jvim3rc ] && mv %D/etc/jvim3rc %D/etc/jvim3rc.bak) || /usr/bin/true
etc/jvim3rc
share/doc/ja-jvim-%%VERSION%%/tutor.j
share/doc/ja-jvim-%%VERSION%%/differen.doc
share/doc/ja-jvim-%%VERSION%%/readme.doc
share/doc/ja-jvim-%%VERSION%%/uganda.jp
share/doc/ja-jvim-%%VERSION%%/fepctrl.doc
@dirrm share/doc/ja-jvim-%%VERSION%%