[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnuplot+, jvim3, timidity++(2nd)
nork@cityfujisawa.ne.jp wrote:
> gnuplot+(3.7.0.1+1.1.9) と jvim3(1.7a) と timidity++
jvim3 をonew対応にしてみました。
が、不完全です。onewをlibtool化すると楽なのかな。
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:
#
# onew
# onew/files
# onew/files/patch-sum
# onew/files/ONEW_CONF.wnn4
# onew/files/ONEW_CONF.canna
# onew/files/md5
# onew/pkg
# onew/pkg/COMMENT
# onew/pkg/DESCR
# onew/pkg/PLIST
# onew/Makefile
# onew/patches
# onew/patches/patch-aa
# onew/patches/patch-ab
# onew/patches/patch-ac
# jvim3
# jvim3/files
# jvim3/files/md5
# jvim3/files/patch-sum
# jvim3/patches
# jvim3/patches/patch-aa
# jvim3/patches/patch-ab
# jvim3/patches/patch-ac
# jvim3/patches/patch-ad
# jvim3/pkg
# jvim3/pkg/COMMENT
# jvim3/pkg/DESCR
# jvim3/pkg/PLIST
# jvim3/Makefile
#
echo c - onew
mkdir -p onew > /dev/null 2>&1
echo c - onew/files
mkdir -p onew/files > /dev/null 2>&1
echo x - onew/files/patch-sum
sed 's/^X//' >onew/files/patch-sum << 'END-of-onew/files/patch-sum'
X$NetBSD$
X
XMD5 (patch-aa) = 45de34010628045fe5f84c43e1d04c0e
XMD5 (patch-ab) = beac19abf0263266fed69d45b4a01e5a
XMD5 (patch-ac) = 74c40207f1237414b23f24485566f095
END-of-onew/files/patch-sum
echo x - onew/files/ONEW_CONF.wnn4
sed 's/^X//' >onew/files/ONEW_CONF.wnn4 << 'END-of-onew/files/ONEW_CONF.wnn4'
XWNNINC= -I${LOCALBASE}/include/wnn
XWNNLIB= -ljd -lcrypt
XWNN_RKPATH = '"./rk:$$ONEW_WNN_ROMKAND:$$ONEW_ROMKAND:$$HOME/.rk:${LOCALBASE}/share/wnn/ja_JP/rk:/tmp/onew_rktabs/wnn"'
END-of-onew/files/ONEW_CONF.wnn4
echo x - onew/files/ONEW_CONF.canna
sed 's/^X//' >onew/files/ONEW_CONF.canna << 'END-of-onew/files/ONEW_CONF.canna'
XCANNAINC= -I${LOCALBASE}/include
XCANNALIB= -lcanna
XCANNA_RKPATH= '".:$$HOME:${LOCALBASE}/share/canna/dic:/tmp/onew_rktabs/canna"'
XCANNA_RKTAB= '"default.kp"'
END-of-onew/files/ONEW_CONF.canna
echo x - onew/files/md5
sed 's/^X//' >onew/files/md5 << 'END-of-onew/files/md5'
X$NetBSD$
X
XMD5 (jvim2.0r+onew2.2.10.tar.gz) = 42e04a80f3dbdfca4fbe8b9e634d1380
END-of-onew/files/md5
echo c - onew/pkg
mkdir -p onew/pkg > /dev/null 2>&1
echo x - onew/pkg/COMMENT
sed 's/^X//' >onew/pkg/COMMENT << 'END-of-onew/pkg/COMMENT'
XA library for Japanese Input Method Wnn4
END-of-onew/pkg/COMMENT
echo x - onew/pkg/DESCR
sed 's/^X//' >onew/pkg/DESCR << 'END-of-onew/pkg/DESCR'
XONEW is a library for using Japanese Input Method Canna, Wnn4, or
XWnn6.
X
XThis is for Wnn4.
X
X-- S. Taoka
X<taoka@FreeBSD.org>
END-of-onew/pkg/DESCR
echo x - onew/pkg/PLIST
sed 's/^X//' >onew/pkg/PLIST << 'END-of-onew/pkg/PLIST'
X@comment $NetBSD$
Xlib/libonew.a
Xshare/doc/onew/README.ONEW
X@dirrm share/doc/onew
END-of-onew/pkg/PLIST
echo x - onew/Makefile
sed 's/^X//' >onew/Makefile << 'END-of-onew/Makefile'
X# $NetBSD$
X#
X
XDISTNAME= jvim2.0r+onew2.2.10
XPKGNAME= onew-2.2.10
XCATEGORIES= japanese
XMASTER_SITES= ftp://ftp.lab.kdd.co.jp/Japan/onew/ \
X ftp://ftp.leo.chubu.ac.jp/pub/editor/jvim/
X
XMAINTAINER= tech-pkg-ja@jp.netbsd.org
X
XEXTRACT_ELEMENTS=onew ${PKGNAME:C/-//}
XMAKE_ENV+= CC="${CC}" RANLIB=ranlib LDOPTS="${LDFLAGS}"
X
X.include "../../mk/bsd.prefs.mk"
X
X.if ${OPSYS} == "SunOS"
XMAKE_ENV+= MISCLIB="-lsocket -lnsl -lgen"
X.endif
X.if ${OPSYS} == "NetBSD"
XMAKE_ENV+= MISCLIB="-lcompat"
X.endif
X
XWRKSRC= ${WRKDIR}/onew
XALL_TARGET=
X
X.include "../../mk/bsd.prefs.mk"
X.if defined(USE_CANNA) && ${USE_CANNA} != YES && \
X defined(USE_WNN4) && ${USE_WNN4} != YES && \
X defined(USE_WNN6) && ${USE_WNN6} != YES
X IGNORE= "is ignored. because USE_CANNA,USE_WNN4,USE_WNN6 are \"NO\""
X.endif
X
X.if !defined(USE_CANNA) || ${USE_CANNA} == YES
XDEPENDS+= Canna-lib-3.5b2:../../japanese/canna-lib
XONEW_CONF_FILES+=${FILESDIR}/ONEW_CONF.canna
X.endif
X
X.if !defined(USE_WNN4) || ${USE_WNN4} == YES
XDEPENDS+= ja-FreeWnn-lib-1.10:../../japanese/freewnn-lib
XONEW_CONF_FILES+=${FILESDIR}/ONEW_CONF.wnn4
X.endif
X
X#.if !defined(USE_WNN6) || ${USE_WNN6} == YES
X
Xpost-extract:
X (for f in ${ONEW_CONF_FILES}; do \
X ${CAT} $$f >> ${WRKSRC}/ONEW_CONF; \
X done)
X
Xdo-install:
X ${INSTALL_DATA} ${WRKSRC}/libonew.a ${PREFIX}/lib
X ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/onew
X ${INSTALL_DATA} ${WRKSRC}/README.ONEW ${PREFIX}/share/doc/onew
X
X.include "../../mk/bsd.pkg.mk"
END-of-onew/Makefile
echo c - onew/patches
mkdir -p onew/patches > /dev/null 2>&1
echo x - onew/patches/patch-aa
sed 's/^X//' >onew/patches/patch-aa << 'END-of-onew/patches/patch-aa'
X$NetBSD$
X
X--- conf.c.orig Thu Jun 23 11:42:33 1994
X+++ conf.c Mon Oct 18 14:48:17 1999
X@@ -220,7 +220,7 @@
X #define IR(func) (romkan_select() ? func : 0)
X #define ONEWromkan_ready(rkpath) IR((*RP->rk_ready)(rkpath))
X #define ONEWromkan_modesw(mode) IR((*RP->rk_modesw)(mode))
X-#define ONEWromkan_clear() IR((*RP->rk_gotch)())
X+#define ONEWromkan_clear() IR((*RP->rk_clear)())
X #define ONEWromkan_getc() IR((*RP->rk_getc)())
X #define ONEWromkan_next() IR((*RP->rk_next)())
X #define ONEWromkan_dispmode() IR((*RP->rk_dispmode)())
END-of-onew/patches/patch-aa
echo x - onew/patches/patch-ab
sed 's/^X//' >onew/patches/patch-ab << 'END-of-onew/patches/patch-ab'
X$NetBSD$
X
X--- sys/sys.h.orig Fri Jun 30 13:56:38 1995
X+++ sys/sys.h Mon Oct 18 15:14:06 1999
X@@ -30,7 +30,8 @@
X || defined(MACH) \
X || defined(NeXT) \
X || defined(bsdi) \
X- || defined(__FreeBSD__)
X+ || defined(__FreeBSD__) \
X+ || defined(__NetBSD__)
X #define USE_SGTTY
X #define HAS_SELECT
X #endif
X@@ -69,7 +70,7 @@
X #define READYCC(fp) (fp->_egptr - fp->_gptr)
X #endif
X #else
X-#if defined(bsdi) || defined(__FreeBSD__)
X+#if defined(bsdi) || defined(__FreeBSD__) || defined(__NetBSD__)
X #define READYCC(fp) (fp->_r)
X #else
X #define READYCC(fp) (fp->_cnt)
END-of-onew/patches/patch-ab
echo x - onew/patches/patch-ac
sed 's/^X//' >onew/patches/patch-ac << 'END-of-onew/patches/patch-ac'
X$NetBSD$
X
X--- ONEW_CONF.default.orig Fri Jun 30 14:46:17 1995
X+++ ONEW_CONF.default Mon Oct 18 15:26:36 1999
X@@ -136,7 +136,7 @@
X ##SYSDEPEND = $(SYSTYPE) $(SELECT)
X
X #★ compiler コンパイラの選択
X-CC = cc
X+#CC = cc
X #CC = gcc
X #CC = /usr/ucb/cc
X #CC = /usr/5bin/cc
X@@ -144,11 +144,11 @@
X CFLAGS = -O
X
X #★ ranlib が必要な場合に定義してね
X-RANLIB = ranlib
X+#RANLIB = ranlib
X #RANLIB = touch ### System V
X
X #★ linker リンカ(ld)に渡したい引数がある場合に定義してね
X-LDOPTS =
X+#LDOPTS =
X #LDOPTS = -Bstatic
X #LDOPTS = $$Binding
X
END-of-onew/patches/patch-ac
echo c - jvim3
mkdir -p jvim3 > /dev/null 2>&1
echo c - jvim3/files
mkdir -p jvim3/files > /dev/null 2>&1
echo x - jvim3/files/md5
sed 's/^X//' >jvim3/files/md5 << 'END-of-jvim3/files/md5'
X$NetBSD$
X
XMD5 (vim-3.0.tar.gz) = ecc99d34ca57bc2d2e3b7e3d9832591d
XMD5 (jvim.1.7a.tar.gz) = 914ab5ceaf1f2057e05f68e9e85ad175
END-of-jvim3/files/md5
echo x - jvim3/files/patch-sum
sed 's/^X//' >jvim3/files/patch-sum << 'END-of-jvim3/files/patch-sum'
X$NetBSD$
X
XMD5 (patch-aa) = 318ee87ee527a98c529d3c2bf5e4c968
XMD5 (patch-ab) = ca8d758e3518b6c481fc02a78823c16b
XMD5 (patch-ac) = a7596b7edd3e039336b7128045eba1c2
XMD5 (patch-ad) = 6b901e3ac4bb60e716b175b40ce8fed3
END-of-jvim3/files/patch-sum
echo c - jvim3/patches
mkdir -p jvim3/patches > /dev/null 2>&1
echo x - jvim3/patches/patch-aa
sed 's/^X//' >jvim3/patches/patch-aa << 'END-of-jvim3/patches/patch-aa'
X$NetBSD$
X
X--- makjunix.mak.orig Sun Oct 17 17:18:05 1999
X+++ makjunix.mak Sun Oct 17 17:21:59 1999
X@@ -72,19 +72,19 @@
X
X
X ### Prefix for location of files
X-PREFIX = /usr/local
X+#PREFIX = /usr/local
X
X ### Location of binary
X BINLOC = $(PREFIX)/bin
X
X ### Name of target
X-TARGET = vim
X+TARGET = jvim
X
X ### Location of man page
X MANLOC = $(PREFIX)/man/man1
X
X ### Location of help file
X-HELPLOC = $(PREFIX)/lib
X+HELPLOC = $(PREFIX)/share/doc/jvim
X
X ### Program to run on installed binary
X STRIP = strip
X@@ -100,7 +100,7 @@
X
X MANFILE = ../doc/vim.1
X
X-HELPFILE = ../doc/vim.hlp
X+HELPFILE = ../doc.j/vim.hlp
X
X #
X # PART 2: various choices
X@@ -166,10 +166,10 @@
X #FEPLIBS = -lonew -lcanna
X #FEPOBJS = feponew.o
X
X-DEFS = -DDIGRAPHS -DTERMCAP -DSOME_BUILTIN_TCAPS -DNO_FREE_NULL -DVIM_ISSPACE \
X- -DWEBB_COMPLETE -DWEBB_KEYWORD_COMPL \
X- -DVIM_HLP=\"$(HELPLOC)/vim.hlp\" \
X- -DKANJI -DUCODE -DTRACK -DCRMARK -DFEXRC -DUSE_GREP -DUSE_OPT $(FEPOPT)
X+#DEFS = -DDIGRAPHS -DTERMCAP -DSOME_BUILTIN_TCAPS -DNO_FREE_NULL -DVIM_ISSPACE \
X+# -DWEBB_COMPLETE -DWEBB_KEYWORD_COMPL \
X+# -DVIM_HLP=\"$(HELPLOC)/vim.hlp\" \
X+# -DKANJI -DUCODE -DTRACK -DCRMARK -DFEXRC -DUSE_GREP -DUSE_OPT $(FEPOPT)
X
X #
X # PART 3: hardware dependend
X@@ -422,7 +422,7 @@
X ## no changes required below this line ##
X ################################################
X
X-CFLAGS = -c $(MACHINE) $(DEFS)
X+CFLAGS = -c $(OPTIMIZATION) $(MACHINE) $(DEFS) $(INCLUDES)
X
X INCL = vim.h globals.h param.h keymap.h macros.h ascii.h term.h unix.h structs.h proto.h
X
END-of-jvim3/patches/patch-aa
echo x - jvim3/patches/patch-ab
sed 's/^X//' >jvim3/patches/patch-ab << 'END-of-jvim3/patches/patch-ab'
X$NetBSD$
X
X--- unix.c.orig Mon Aug 30 06:15:51 1999
X+++ unix.c Mon Aug 30 06:16:34 1999
X@@ -17,6 +17,7 @@
X #include "param.h"
X #include "proto.h"
X
X+#include <errno.h>
X #include <fcntl.h>
X #if !defined(pyr) && !defined(NOT_BOTH_TIME)
X # include <time.h> /* on some systems time.h should not be
X@@ -652,21 +653,12 @@
X char_u *buf;
X int len;
X {
X-#if defined(SYSV_UNIX) || defined(USL) || defined(hpux) || defined(linux)
X- extern int errno;
X-# ifndef linux
X- extern char *sys_errlist[];
X-# endif
X-
X if (getcwd((char *)buf, len) == NULL)
X {
X STRCPY(buf, sys_errlist[errno]);
X return FAIL;
X }
X return OK;
X-#else
X- return (getwd((char *)buf) != NULL ? OK : FAIL);
X-#endif
X }
X
X /*
X@@ -701,11 +693,7 @@
X */
X if ((p = STRRCHR(fname, '/')) != NULL)
X {
X-#if defined(SYSV_UNIX) || defined(USL) || defined(hpux) || defined(linux)
X if (getcwd((char *)olddir, MAXPATHL) == NULL)
X-#else
X- if (getwd((char *)olddir) == NULL)
X-#endif
X {
X p = NULL; /* can't get current dir: don't chdir */
X retval = FAIL;
X@@ -721,11 +709,7 @@
X *p = c;
X }
X }
X-#if defined(SYSV_UNIX) || defined(USL) || defined(hpux) || defined(linux)
X if (getcwd((char *)buf, len) == NULL)
X-#else
X- if (getwd((char *)buf) == NULL)
X-#endif
X {
X retval = FAIL;
X *buf = NUL;
END-of-jvim3/patches/patch-ab
echo x - jvim3/patches/patch-ac
sed 's/^X//' >jvim3/patches/patch-ac << 'END-of-jvim3/patches/patch-ac'
X$NetBSD$
X
X--- s2u.c.org Wed Oct 13 10:33:13 1999
X+++ s2u.c Wed Oct 13 10:57:06 1999
X@@ -11288,8 +11288,9 @@
X };
X
X void
X-sjis2ucs(sjis, utf)
X+sjis2ucs(sjis, len, utf)
X unsigned char* sjis;
X+int len;
X unsigned char* utf;
X {
X unsigned char c;
END-of-jvim3/patches/patch-ac
echo x - jvim3/patches/patch-ad
sed 's/^X//' >jvim3/patches/patch-ad << 'END-of-jvim3/patches/patch-ad'
X$NetBSD$
X
X--- term.h.orig Sun Oct 17 17:58:06 1999
X+++ term.h Sun Oct 17 18:10:10 1999
X@@ -612,8 +612,8 @@
X
X # else /* NO_BUILTIN_TCAPS */
X # define DUMB_TCAP "dumb\0\
X-\6\014\0\
X-\9\033[%i%d;%dH\0\
X+\0x6\014\0\
X+\0x9\033[%i%d;%dH\0\
X \0\0"
X # endif /* NO_BUILTIN_TCAPS */
X
END-of-jvim3/patches/patch-ad
echo c - jvim3/pkg
mkdir -p jvim3/pkg > /dev/null 2>&1
echo x - jvim3/pkg/COMMENT
sed 's/^X//' >jvim3/pkg/COMMENT << 'END-of-jvim3/pkg/COMMENT'
Xalmost compatible Vi editor with Japanese extentions
END-of-jvim3/pkg/COMMENT
echo x - jvim3/pkg/DESCR
sed 's/^X//' >jvim3/pkg/DESCR << 'END-of-jvim3/pkg/DESCR'
XVim is an almost compatible version of the UNIX editor Vi. Many new features
Xhave been added: multi level undo, command line history, on-line help,
Xfilename completion, block operations, etc.
END-of-jvim3/pkg/DESCR
echo x - jvim3/pkg/PLIST
sed 's/^X//' >jvim3/pkg/PLIST << 'END-of-jvim3/pkg/PLIST'
X@comment $NetBSD$
Xbin/jvim
Xman/man1/jvim.1.gz
Xshare/doc/jvim/jvim.hlp
X@dirrm share/doc/jvim
END-of-jvim3/pkg/PLIST
echo x - jvim3/Makefile
sed 's/^X//' >jvim3/Makefile << 'END-of-jvim3/Makefile'
X# $NetBSD$
X#
X
XDISTNAME= vim-3.0
XPKGNAME= jvim3-${JVIM_VERSION}
XCATEGORIES= japanese editors
XMASTER_SITES= http://hp.vector.co.jp/authors/VA003457/vim/vim3/orig/ \
X http://hp.vector.co.jp/authors/VA003457/vim/vim3/${JVIM_VERSION}/
XDISTFILES+= ${DISTNAME}${EXTRACT_SUFX} jvim.${JVIM_VERSION}.tar.gz
X
XMAINTAINER= nork@lb.u-tokai.ac.jp
XHOMEPAGE= http://hp.vector.co.jp/authors/VA003457/vim/
X
XDEPENDS+= onew-2.2.10:../../japanese/onew
X
XWRKSRC= ${WRKDIR}/vim/src
XMAKEFILE= makjunix.mak
XALL_TARGET= jvim
XMAKE_ENV+= OPTIMIZATION="${CFLAGS}" DEFS="${DEFS}" \
X MACHINE="${MACHINE}" FEPOBJS="${FEPOBJS}" \
X INCLUDES="${INCLUDES}" LIBS="${LIBS}"
XFEPOPT= -DFEPCTRL -DONEW
XFEPLIBS= ${LDFLAGS} -lonew -lcanna -ljd -lcrypt -lcompat
XFEPOBJS= feponew.o
XDEFS= -DDIGRAPHS -DNO_FREE_NULL -DVIM_ISSPACE \
X -DWEBB_COMPLETE -DWEBB_KEYWORD_COMPL \
X -DVIM_HLP=\\\"${PREFIX}/share/doc/jvim/jvim.hlp\\\" \
X -DDEFVIMRC_FILE=\\\"${PREFIX}/etc/jvimrc\\\" \
X -DKANJI -DTRACK -DCRMARK -DFEXRC -DUSE_GREP -DUSE_OPT \
X -DNOTITLE ${FEPOPT} #-DUCODE
XMACHINE= -DUNIX -DUSE_LOCALE -DSTRNCASECMP -DTERMCAP \
X -DNO_BUILTIN_TCAPS #-DBSD_UNIX -DUSE_X11
XINCLUDES= -I${LOCALBASE}/include
X# -I${X11BASE}/include
XLIBS= -ltermlib ${FEPLIBS} #-lX11
X
XJVIM_VERSION= 1.7a
X
Xpre-patch:
X ${PATCH} -d ${WRKDIR}/vim --forward --quiet -E -p0 \
X < ${WRKDIR}/jvim.diff
X ${CP} -r ${WRKDIR}/src ${WRKDIR}/vim
X
Xdo-install:
X ${INSTALL_PROGRAM} ${WRKSRC}/jvim ${PREFIX}/bin/
X ${INSTALL_MAN} ${WRKDIR}/vim/doc/vim.1 ${PREFIX}/man/man1/jvim.1
X ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/jvim
X ${INSTALL_DATA} ${WRKDIR}/vim/doc.j/vim.hlp \
X ${PREFIX}/share/doc/jvim/jvim.hlp
X
X.include "../../mk/bsd.pkg.mk"
END-of-jvim3/Makefile
exit