mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
Upgrade to 1.4.beta5.
PR: ports/19214 Submitted by: Maintainer
This commit is contained in:
parent
eb244dbc22
commit
3c6bf83074
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=30135
@ -6,13 +6,14 @@
|
||||
#
|
||||
|
||||
PORTNAME= ng
|
||||
PORTVERSION= 1.3L
|
||||
PORTVERSION= 1.4.b5
|
||||
CATEGORIES= japanese editors
|
||||
MASTER_SITES= ftp://ftp.iis.u-tokyo.ac.jp/unix/Editor/
|
||||
MASTER_SITES= http://ha3.seikyou.ne.jp/home/amura/archives/ng/
|
||||
DISTNAME= ${PORTNAME}-1.4beta5
|
||||
|
||||
MAINTAINER= ginga@athena.club.ne.jp
|
||||
|
||||
WRKSRC= ${WRKDIR}/Ng-${PORTVERSION}
|
||||
WRKSRC= ${WRKDIR}/ng
|
||||
ALL_TARGET= ng
|
||||
|
||||
post-patch:
|
||||
@ -24,9 +25,14 @@ do-install:
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${PREFIX}/share/doc/ja/ng
|
||||
${INSTALL_DATA} ${WRKSRC}/Ng.doc ${PREFIX}/share/doc/ja/ng/Ng.doc.euc-jp
|
||||
${INSTALL_DATA} ${WRKSRC}/Ng.ref ${PREFIX}/share/doc/ja/ng/Ng.ref.euc-jp
|
||||
${INSTALL_DATA} ${WRKSRC}/Ng.tut ${PREFIX}/share/doc/ja/ng/Ng.tut.euc-jp
|
||||
${INSTALL_DATA} ${WRKSRC}/docs/Ng.FAQ ${PREFIX}/share/doc/ja/ng/Ng.FAQ.euc-jp
|
||||
${INSTALL_DATA} ${WRKSRC}/docs/Ng.doc ${PREFIX}/share/doc/ja/ng/Ng.doc.euc-jp
|
||||
${INSTALL_DATA} ${WRKSRC}/docs/Ng.ref ${PREFIX}/share/doc/ja/ng/Ng.ref.euc-jp
|
||||
${INSTALL_DATA} ${WRKSRC}/docs/Ng.tut ${PREFIX}/share/doc/ja/ng/Ng.tut.euc-jp
|
||||
${INSTALL_DATA} ${WRKSRC}/docs/README.Ng ${PREFIX}/share/doc/ja/ng/README.Ng.euc-jp
|
||||
${INSTALL_DATA} ${WRKSRC}/docs/README.SKG ${PREFIX}/share/doc/ja/ng/README.SKG.euc-jp
|
||||
${INSTALL_DATA} ${WRKSRC}/docs/CHANGES.new ${PREFIX}/share/doc/ja/ng/CHANGES.new.euc-jp
|
||||
${INSTALL_DATA} ${WRKSRC}/docs/CHANGES.doc ${PREFIX}/share/doc/ja/ng/CHANGES.doc.euc-jp
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1 +1 @@
|
||||
MD5 (ng-1.3L.tar.gz) = d4fe1690a768f7d7b1133c1093dbcada
|
||||
MD5 (ng-1.4beta5.tar.gz) = fdda6a5008736870f0380f4b2e19c7a9
|
||||
|
@ -1,294 +1,11 @@
|
||||
diff -ur Ng-1.3L.orig/complt.c ./complt.c
|
||||
--- Ng-1.3L.orig/complt.c Mon Jun 14 09:31:36 1993
|
||||
+++ ./complt.c Sun Mar 5 11:41:39 2000
|
||||
@@ -10,10 +10,17 @@
|
||||
#include "complt.h"
|
||||
#define LIST_COL 35
|
||||
--- sys/bsd/Makefile.orig Tue Jun 6 11:04:18 2000
|
||||
+++ sys/bsd/Makefile Wed Jun 7 09:56:45 2000
|
||||
@@ -2,7 +2,7 @@
|
||||
# Modified for Ng 1.0 by Shigeki Yoshida (shige@csk.CO.JP) 1990.01.29
|
||||
|
||||
+#ifndef __FreeBSD__
|
||||
BUFFER *bp = NULL;
|
||||
BUFFER *prev_bp = NULL;
|
||||
WINDOW *prev_wp = NULL;
|
||||
WINDOW prev_window;
|
||||
+#else
|
||||
+static BUFFER *bp = NULL;
|
||||
+static BUFFER *prev_bp = NULL;
|
||||
+static WINDOW *prev_wp = NULL;
|
||||
+static WINDOW prev_window;
|
||||
+#endif /* __FreeBSD__ */
|
||||
|
||||
/*
|
||||
* do some completion.
|
||||
@@ -24,9 +31,15 @@
|
||||
int flags;
|
||||
{
|
||||
int res;
|
||||
+#ifndef __FreeBSD__
|
||||
int complete_funcname ();
|
||||
int complete_buffername ();
|
||||
int complete_filename ();
|
||||
+#else
|
||||
+ static int complete_funcname ();
|
||||
+ static int complete_buffername ();
|
||||
+ static int complete_filename ();
|
||||
+#endif /* __FreeBSD__ */
|
||||
|
||||
switch (flags & (EFFUNC | EFBUF | EFFILE))
|
||||
{
|
||||
@@ -256,9 +269,15 @@
|
||||
int cur_row;
|
||||
int cur_col;
|
||||
WINDOW *wp;
|
||||
+#ifndef __FreeBSD__
|
||||
int complete_list_funcnames ();
|
||||
int complete_list_buffernames ();
|
||||
int complete_list_filenames ();
|
||||
+#else
|
||||
+ static int complete_list_funcnames ();
|
||||
+ static int complete_list_buffernames ();
|
||||
+ static int complete_list_filenames ();
|
||||
+#endif /* __FreeBSD__ */
|
||||
|
||||
if ((bp = bfind ("*Completions*", TRUE)) == NULL)
|
||||
return (FALSE);
|
||||
diff -ur Ng-1.3L.orig/echo.c ./echo.c
|
||||
--- Ng-1.3L.orig/echo.c Mon Jun 14 09:31:38 1993
|
||||
+++ ./echo.c Sun Mar 5 11:41:39 2000
|
||||
@@ -192,8 +192,13 @@
|
||||
{
|
||||
int cpos;
|
||||
int c;
|
||||
- int veread_del_char ();
|
||||
- int veread_complete ();
|
||||
+#ifndef __FreeBSD__
|
||||
+ int veread_del_char ();
|
||||
+ int veread_complete ();
|
||||
+#else
|
||||
+ static int veread_del_char(char *, int);
|
||||
+ static int veread_complete(char *, int, int, int);
|
||||
+#endif /* __FreeBSD__ */
|
||||
|
||||
#ifdef ADDFUNC /* 91.01.16 by S.Yoshida */
|
||||
/* If an extra argument exists, use it. */
|
||||
diff -ur Ng-1.3L.orig/extend.c ./extend.c
|
||||
--- Ng-1.3L.orig/extend.c Mon Jun 14 09:31:39 1993
|
||||
+++ ./extend.c Sun Mar 5 11:41:39 2000
|
||||
@@ -96,7 +96,11 @@
|
||||
KEYMAP *mp;
|
||||
PF *pfp;
|
||||
MAP_ELEMENT *mep;
|
||||
+#ifndef __FreeBSD__
|
||||
KEYMAP *realocmap(); /* 90.03.23 delete "static" by A.Shirahashi */
|
||||
+#else
|
||||
+ static KEYMAP *realocmap(KEYMAP *);
|
||||
+#endif /* __FreeBSD__ */
|
||||
|
||||
if(ele >= &curmap->map_element[curmap->map_num] || c < ele->k_base) {
|
||||
if(ele > &curmap->map_element[0] && (funct!=prefix ||
|
||||
@@ -247,7 +251,11 @@
|
||||
{
|
||||
register KEYMAP *mp;
|
||||
register int i;
|
||||
+#ifndef __FreeBSD__
|
||||
VOID fixmap(); /* 90.03.23 delete "static" by A.Shirahashi */
|
||||
+#else
|
||||
+ static VOID fixmap(KEYMAP *,KEYMAP *,KEYMAP *);
|
||||
+#endif /* __FreeBSD__ */
|
||||
extern int nmaps;
|
||||
|
||||
if((mp = (KEYMAP *)malloc((unsigned)(sizeof(KEYMAP)+
|
||||
@@ -607,8 +615,13 @@
|
||||
#endif
|
||||
PF name_function();
|
||||
LINE *lalloc();
|
||||
+#ifndef __FreeBSD__
|
||||
char *skipwhite(), *parsetoken(); /* 90.03.23 delete "static" */
|
||||
/* by A.Shirahashi */
|
||||
+#else
|
||||
+ static char *skipwhite(char *);
|
||||
+ static char *parsetoken(char *);
|
||||
+#endif /* __FreeBSD__ */
|
||||
|
||||
if(macrodef || inmacro) {
|
||||
ewprintf("Not now!");
|
||||
diff -ur Ng-1.3L.orig/kinit.h ./kinit.h
|
||||
--- Ng-1.3L.orig/kinit.h Mon Jun 14 09:31:40 1993
|
||||
+++ ./kinit.h Sun Mar 5 11:42:20 2000
|
||||
@@ -32,14 +32,14 @@
|
||||
|
||||
/* '@' Select JIS-78 [ESC-$-@]. */
|
||||
/* 'B' Select JIS-83 [ESC-$-B]. */
|
||||
-#define TO_KFIO '@' /* to-kanji-fileio */
|
||||
-#define TO_KDISPLAY '@' /* to-kanji-display */
|
||||
+#define TO_KFIO 'B' /* to-kanji-fileio */
|
||||
+#define TO_KDISPLAY 'B' /* to-kanji-display */
|
||||
|
||||
/* 'B' Select ASCII [ESC-(-B]. */
|
||||
/* 'J' Select JIS-ROMAJI [ESC-(-J]. */
|
||||
/* 'H' Illegal selection, but used. [ESC-(-H]. */
|
||||
-#define TO_AFIO 'J' /* to-ascii-fileio */
|
||||
-#define TO_ADISPLAY 'J' /* to-ascii-display */
|
||||
+#define TO_AFIO 'B' /* to-ascii-fileio */
|
||||
+#define TO_ADISPLAY 'B' /* to-ascii-display */
|
||||
|
||||
#ifdef HANKANA /* 92.11.21 by S.Sasaki */
|
||||
/* '7' Use SI/SO for KATAKANA [SI / SO] */
|
||||
diff -ur Ng-1.3L.orig/sys/bsd/fileio.c ./sys/bsd/fileio.c
|
||||
--- Ng-1.3L.orig/sys/bsd/fileio.c Wed Feb 13 13:05:02 1991
|
||||
+++ ./sys/bsd/fileio.c Sun Mar 5 11:42:04 2000
|
||||
@@ -6,6 +6,10 @@
|
||||
#include "config.h" /* 90.12.20 by S.Yoshida */
|
||||
#include "def.h"
|
||||
|
||||
+#ifdef __FreeBSD__
|
||||
+#include <string.h>
|
||||
+#endif /* __FreeBSD__ */
|
||||
+
|
||||
static FILE *ffp;
|
||||
extern char *getenv(), *strncpy();
|
||||
char *adjustname();
|
||||
@@ -384,7 +388,11 @@
|
||||
{
|
||||
int pid;
|
||||
char *eargv[3];
|
||||
+#ifndef __FreeBSD__
|
||||
union wait status;
|
||||
+#else
|
||||
+ int status;
|
||||
+#endif /* __FreeBSD__ */
|
||||
|
||||
#ifdef BUGFIX /* 91.01.11 by Y.Kaneko */
|
||||
if((pid = vfork()) == 0) {
|
||||
@@ -403,7 +411,11 @@
|
||||
if(pid == -1) return -1;
|
||||
#endif /* BUGFIX */
|
||||
while(wait(&status) != pid) {}
|
||||
+#ifndef __FreeBSD__
|
||||
return status.w_status == 0;
|
||||
+#else
|
||||
+ return status == 0;
|
||||
+#endif /* __FreeBSD__ */
|
||||
}
|
||||
|
||||
BUFFER *dired_(dirname)
|
||||
@@ -461,12 +473,35 @@
|
||||
register char *fn;
|
||||
{
|
||||
register char *cp;
|
||||
+#ifndef __FreeBSD__
|
||||
|
||||
if(llength(lp) <= 47) return ABORT;
|
||||
(VOID) strcpy(fn, curbp->b_fname);
|
||||
cp = fn + strlen(fn);
|
||||
bcopy(&lp->l_text[47], cp, llength(lp) - 47);
|
||||
cp[llength(lp) - 47] = '\0';
|
||||
+#else
|
||||
+ register int sepidx, duplen;
|
||||
+
|
||||
+ if(llength(lp) < 47) return ABORT;
|
||||
+ cp = &lp->l_text[llength(lp)];
|
||||
+ while (*--cp != ' ') ;
|
||||
+ sepidx = (cp - lp->l_text) + 1;
|
||||
+
|
||||
+ if ( lgetc(lp, 2) == 'l' && strncmp(cp - 3, " -> " ,4) == 0 ) {
|
||||
+ duplen = sepidx-4;
|
||||
+ strncpy(fn, lp->l_text, duplen);
|
||||
+ fn[duplen] = '\0';
|
||||
+ sepidx = (strrchr(fn, ' ') - fn) + 1;
|
||||
+ duplen = duplen - sepidx;
|
||||
+ }
|
||||
+ else duplen = llength(lp) - sepidx;
|
||||
+
|
||||
+ (VOID) strcpy(fn, curbp->b_fname);
|
||||
+ cp = fn + strlen(fn);
|
||||
+ bcopy(&lp->l_text[sepidx], cp, duplen);
|
||||
+ cp[duplen] = '\0';
|
||||
+#endif
|
||||
return lgetc(lp, 2) == 'd';
|
||||
}
|
||||
#endif
|
||||
diff -ur Ng-1.3L.orig/sys/bsd/spawn.c ./sys/bsd/spawn.c
|
||||
--- Ng-1.3L.orig/sys/bsd/spawn.c Wed Feb 13 13:01:41 1991
|
||||
+++ ./sys/bsd/spawn.c Sun Mar 5 11:41:39 2000
|
||||
@@ -39,13 +39,27 @@
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
spawncli(f, n) {
|
||||
+#ifndef __FreeBSD__
|
||||
register int pid, wpid, (*oqsig)(), (*oisig)(), omask;
|
||||
+#else
|
||||
+ register int omask;
|
||||
+ register pid_t pid, wpid;
|
||||
+ register sig_t oqsig, oisig;
|
||||
+#endif /* __FreeBSD__ */
|
||||
#ifdef ADDFUNC /* 90.02.14 by S.Yoshida */
|
||||
#ifdef SIGWINCH /* 90.02.14 by S.Yoshida */
|
||||
+#ifndef __FreeBSD__
|
||||
register int (*owsig)();
|
||||
+#else
|
||||
+ register sig_t owsig;
|
||||
+#endif /* __FreeBSD__ */
|
||||
#endif /* SIGWINCH */
|
||||
#endif /* ADDFUNC */
|
||||
+#ifndef __FreeBSD__
|
||||
union wait status;
|
||||
+#else
|
||||
+ int status;
|
||||
+#endif /* __FreeBSD__ */
|
||||
|
||||
if (shellp == NULL) {
|
||||
shellp = getenv("SHELL");
|
||||
@@ -141,8 +155,15 @@
|
||||
char *tmp;
|
||||
int ostdin, ostdout, ostderr, in, out, s;
|
||||
extern char *mktemp();
|
||||
+#ifdef __FreeBSD__
|
||||
+ static char tmpfile[] = "/tmp/ngXXXXXX";
|
||||
+#endif /* __FreeBSD__ */
|
||||
|
||||
+#ifndef __FreeBSD__
|
||||
if ((tmp = mktemp("/tmp/ngXXXXXX")) == NULL)
|
||||
+#else
|
||||
+ if ((tmp = mktemp(tmpfile)) == NULL)
|
||||
+#endif /* __FreeBSD__ */
|
||||
return NULL;
|
||||
if ((in = open(input ? input : "/dev/null", 0)) < 0)
|
||||
return NULL;
|
||||
diff -ur Ng-1.3L.orig/sys/bsd/ttyio.c ./sys/bsd/ttyio.c
|
||||
--- Ng-1.3L.orig/sys/bsd/ttyio.c Wed Feb 13 13:02:01 1991
|
||||
+++ ./sys/bsd/ttyio.c Sun Mar 5 11:41:39 2000
|
||||
@@ -32,7 +32,11 @@
|
||||
int ncol; /* Terminal size, columns. */
|
||||
#ifdef ADDFUNC /* 90.02.14 by S.Yoshida */
|
||||
#ifdef SIGWINCH /* 90.02.13 by S.Yoshida */
|
||||
+#ifndef __FreeBSD__
|
||||
int ttwinch();
|
||||
+#else
|
||||
+void ttwinch();
|
||||
+#endif /* __FreeBSD__ */
|
||||
#endif /* SIGWINCH */
|
||||
#endif /* ADDFUNC */
|
||||
|
||||
@@ -46,7 +50,9 @@
|
||||
ttopen() {
|
||||
register char *tv_stype;
|
||||
char *getenv(), *tgetstr(), tcbuf[1024], err_str[72];
|
||||
+#ifndef __FreeBSD__
|
||||
char *sprintf();
|
||||
+#endif /* __FreeBSD__ */
|
||||
|
||||
/* do this the REAL way */
|
||||
if ((tv_stype = getenv("TERM")) == NULL)
|
||||
@@ -256,7 +262,11 @@
|
||||
/*
|
||||
* Signal handler when window size has changed.
|
||||
*/
|
||||
+#ifndef __FreeBSD__
|
||||
ttwinch()
|
||||
+#else
|
||||
+void ttwinch()
|
||||
+#endif /* __FreeBSD__ */
|
||||
{
|
||||
refresh(FFRAND, 0); /* Very easy way... */
|
||||
}
|
||||
|
||||
SYS = bsd
|
||||
-LIBS = -L/usr/pkg/lib -lcanna -ltermcap
|
||||
+LIBS = -L/usr/pkg/lib -ltermcap
|
||||
# CDEFS gets defines, and gets passed to lint. CFLAGS gets flags, and doesn't
|
||||
# get passed to lint.
|
||||
#
|
||||
|
11
japanese/ng-devel/files/patch-ab
Normal file
11
japanese/ng-devel/files/patch-ab
Normal file
@ -0,0 +1,11 @@
|
||||
--- config.h~ Tue Jun 6 23:35:58 2000
|
||||
+++ config.h Wed Jun 7 09:56:31 2000
|
||||
@@ -124,7 +124,7 @@
|
||||
|
||||
#define XKEYS /* use numelic keypad (by Gen.KUROKI) */
|
||||
|
||||
-#define CANNA /* use CANNA kana-kanji server (by Endo) */
|
||||
+#undef CANNA /* use CANNA kana-kanji server (by Endo) */
|
||||
|
||||
/*................................................*/
|
||||
#endif /* Do not edit this line. */
|
@ -1,5 +1,10 @@
|
||||
bin/ng
|
||||
share/doc/ja/ng/Ng.FAQ.euc-jp
|
||||
share/doc/ja/ng/Ng.doc.euc-jp
|
||||
share/doc/ja/ng/Ng.ref.euc-jp
|
||||
share/doc/ja/ng/Ng.tut.euc-jp
|
||||
share/doc/ja/ng/README.Ng.euc-jp
|
||||
share/doc/ja/ng/README.SKG.euc-jp
|
||||
share/doc/ja/ng/CHANGES.new.euc-jp
|
||||
share/doc/ja/ng/CHANGES.doc.euc-jp
|
||||
@dirrm share/doc/ja/ng
|
||||
|
@ -6,13 +6,14 @@
|
||||
#
|
||||
|
||||
PORTNAME= ng
|
||||
PORTVERSION= 1.3L
|
||||
PORTVERSION= 1.4.b5
|
||||
CATEGORIES= japanese editors
|
||||
MASTER_SITES= ftp://ftp.iis.u-tokyo.ac.jp/unix/Editor/
|
||||
MASTER_SITES= http://ha3.seikyou.ne.jp/home/amura/archives/ng/
|
||||
DISTNAME= ${PORTNAME}-1.4beta5
|
||||
|
||||
MAINTAINER= ginga@athena.club.ne.jp
|
||||
|
||||
WRKSRC= ${WRKDIR}/Ng-${PORTVERSION}
|
||||
WRKSRC= ${WRKDIR}/ng
|
||||
ALL_TARGET= ng
|
||||
|
||||
post-patch:
|
||||
@ -24,9 +25,14 @@ do-install:
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${PREFIX}/share/doc/ja/ng
|
||||
${INSTALL_DATA} ${WRKSRC}/Ng.doc ${PREFIX}/share/doc/ja/ng/Ng.doc.euc-jp
|
||||
${INSTALL_DATA} ${WRKSRC}/Ng.ref ${PREFIX}/share/doc/ja/ng/Ng.ref.euc-jp
|
||||
${INSTALL_DATA} ${WRKSRC}/Ng.tut ${PREFIX}/share/doc/ja/ng/Ng.tut.euc-jp
|
||||
${INSTALL_DATA} ${WRKSRC}/docs/Ng.FAQ ${PREFIX}/share/doc/ja/ng/Ng.FAQ.euc-jp
|
||||
${INSTALL_DATA} ${WRKSRC}/docs/Ng.doc ${PREFIX}/share/doc/ja/ng/Ng.doc.euc-jp
|
||||
${INSTALL_DATA} ${WRKSRC}/docs/Ng.ref ${PREFIX}/share/doc/ja/ng/Ng.ref.euc-jp
|
||||
${INSTALL_DATA} ${WRKSRC}/docs/Ng.tut ${PREFIX}/share/doc/ja/ng/Ng.tut.euc-jp
|
||||
${INSTALL_DATA} ${WRKSRC}/docs/README.Ng ${PREFIX}/share/doc/ja/ng/README.Ng.euc-jp
|
||||
${INSTALL_DATA} ${WRKSRC}/docs/README.SKG ${PREFIX}/share/doc/ja/ng/README.SKG.euc-jp
|
||||
${INSTALL_DATA} ${WRKSRC}/docs/CHANGES.new ${PREFIX}/share/doc/ja/ng/CHANGES.new.euc-jp
|
||||
${INSTALL_DATA} ${WRKSRC}/docs/CHANGES.doc ${PREFIX}/share/doc/ja/ng/CHANGES.doc.euc-jp
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1 +1 @@
|
||||
MD5 (ng-1.3L.tar.gz) = d4fe1690a768f7d7b1133c1093dbcada
|
||||
MD5 (ng-1.4beta5.tar.gz) = fdda6a5008736870f0380f4b2e19c7a9
|
||||
|
@ -1,294 +1,11 @@
|
||||
diff -ur Ng-1.3L.orig/complt.c ./complt.c
|
||||
--- Ng-1.3L.orig/complt.c Mon Jun 14 09:31:36 1993
|
||||
+++ ./complt.c Sun Mar 5 11:41:39 2000
|
||||
@@ -10,10 +10,17 @@
|
||||
#include "complt.h"
|
||||
#define LIST_COL 35
|
||||
--- sys/bsd/Makefile.orig Tue Jun 6 11:04:18 2000
|
||||
+++ sys/bsd/Makefile Wed Jun 7 09:56:45 2000
|
||||
@@ -2,7 +2,7 @@
|
||||
# Modified for Ng 1.0 by Shigeki Yoshida (shige@csk.CO.JP) 1990.01.29
|
||||
|
||||
+#ifndef __FreeBSD__
|
||||
BUFFER *bp = NULL;
|
||||
BUFFER *prev_bp = NULL;
|
||||
WINDOW *prev_wp = NULL;
|
||||
WINDOW prev_window;
|
||||
+#else
|
||||
+static BUFFER *bp = NULL;
|
||||
+static BUFFER *prev_bp = NULL;
|
||||
+static WINDOW *prev_wp = NULL;
|
||||
+static WINDOW prev_window;
|
||||
+#endif /* __FreeBSD__ */
|
||||
|
||||
/*
|
||||
* do some completion.
|
||||
@@ -24,9 +31,15 @@
|
||||
int flags;
|
||||
{
|
||||
int res;
|
||||
+#ifndef __FreeBSD__
|
||||
int complete_funcname ();
|
||||
int complete_buffername ();
|
||||
int complete_filename ();
|
||||
+#else
|
||||
+ static int complete_funcname ();
|
||||
+ static int complete_buffername ();
|
||||
+ static int complete_filename ();
|
||||
+#endif /* __FreeBSD__ */
|
||||
|
||||
switch (flags & (EFFUNC | EFBUF | EFFILE))
|
||||
{
|
||||
@@ -256,9 +269,15 @@
|
||||
int cur_row;
|
||||
int cur_col;
|
||||
WINDOW *wp;
|
||||
+#ifndef __FreeBSD__
|
||||
int complete_list_funcnames ();
|
||||
int complete_list_buffernames ();
|
||||
int complete_list_filenames ();
|
||||
+#else
|
||||
+ static int complete_list_funcnames ();
|
||||
+ static int complete_list_buffernames ();
|
||||
+ static int complete_list_filenames ();
|
||||
+#endif /* __FreeBSD__ */
|
||||
|
||||
if ((bp = bfind ("*Completions*", TRUE)) == NULL)
|
||||
return (FALSE);
|
||||
diff -ur Ng-1.3L.orig/echo.c ./echo.c
|
||||
--- Ng-1.3L.orig/echo.c Mon Jun 14 09:31:38 1993
|
||||
+++ ./echo.c Sun Mar 5 11:41:39 2000
|
||||
@@ -192,8 +192,13 @@
|
||||
{
|
||||
int cpos;
|
||||
int c;
|
||||
- int veread_del_char ();
|
||||
- int veread_complete ();
|
||||
+#ifndef __FreeBSD__
|
||||
+ int veread_del_char ();
|
||||
+ int veread_complete ();
|
||||
+#else
|
||||
+ static int veread_del_char(char *, int);
|
||||
+ static int veread_complete(char *, int, int, int);
|
||||
+#endif /* __FreeBSD__ */
|
||||
|
||||
#ifdef ADDFUNC /* 91.01.16 by S.Yoshida */
|
||||
/* If an extra argument exists, use it. */
|
||||
diff -ur Ng-1.3L.orig/extend.c ./extend.c
|
||||
--- Ng-1.3L.orig/extend.c Mon Jun 14 09:31:39 1993
|
||||
+++ ./extend.c Sun Mar 5 11:41:39 2000
|
||||
@@ -96,7 +96,11 @@
|
||||
KEYMAP *mp;
|
||||
PF *pfp;
|
||||
MAP_ELEMENT *mep;
|
||||
+#ifndef __FreeBSD__
|
||||
KEYMAP *realocmap(); /* 90.03.23 delete "static" by A.Shirahashi */
|
||||
+#else
|
||||
+ static KEYMAP *realocmap(KEYMAP *);
|
||||
+#endif /* __FreeBSD__ */
|
||||
|
||||
if(ele >= &curmap->map_element[curmap->map_num] || c < ele->k_base) {
|
||||
if(ele > &curmap->map_element[0] && (funct!=prefix ||
|
||||
@@ -247,7 +251,11 @@
|
||||
{
|
||||
register KEYMAP *mp;
|
||||
register int i;
|
||||
+#ifndef __FreeBSD__
|
||||
VOID fixmap(); /* 90.03.23 delete "static" by A.Shirahashi */
|
||||
+#else
|
||||
+ static VOID fixmap(KEYMAP *,KEYMAP *,KEYMAP *);
|
||||
+#endif /* __FreeBSD__ */
|
||||
extern int nmaps;
|
||||
|
||||
if((mp = (KEYMAP *)malloc((unsigned)(sizeof(KEYMAP)+
|
||||
@@ -607,8 +615,13 @@
|
||||
#endif
|
||||
PF name_function();
|
||||
LINE *lalloc();
|
||||
+#ifndef __FreeBSD__
|
||||
char *skipwhite(), *parsetoken(); /* 90.03.23 delete "static" */
|
||||
/* by A.Shirahashi */
|
||||
+#else
|
||||
+ static char *skipwhite(char *);
|
||||
+ static char *parsetoken(char *);
|
||||
+#endif /* __FreeBSD__ */
|
||||
|
||||
if(macrodef || inmacro) {
|
||||
ewprintf("Not now!");
|
||||
diff -ur Ng-1.3L.orig/kinit.h ./kinit.h
|
||||
--- Ng-1.3L.orig/kinit.h Mon Jun 14 09:31:40 1993
|
||||
+++ ./kinit.h Sun Mar 5 11:42:20 2000
|
||||
@@ -32,14 +32,14 @@
|
||||
|
||||
/* '@' Select JIS-78 [ESC-$-@]. */
|
||||
/* 'B' Select JIS-83 [ESC-$-B]. */
|
||||
-#define TO_KFIO '@' /* to-kanji-fileio */
|
||||
-#define TO_KDISPLAY '@' /* to-kanji-display */
|
||||
+#define TO_KFIO 'B' /* to-kanji-fileio */
|
||||
+#define TO_KDISPLAY 'B' /* to-kanji-display */
|
||||
|
||||
/* 'B' Select ASCII [ESC-(-B]. */
|
||||
/* 'J' Select JIS-ROMAJI [ESC-(-J]. */
|
||||
/* 'H' Illegal selection, but used. [ESC-(-H]. */
|
||||
-#define TO_AFIO 'J' /* to-ascii-fileio */
|
||||
-#define TO_ADISPLAY 'J' /* to-ascii-display */
|
||||
+#define TO_AFIO 'B' /* to-ascii-fileio */
|
||||
+#define TO_ADISPLAY 'B' /* to-ascii-display */
|
||||
|
||||
#ifdef HANKANA /* 92.11.21 by S.Sasaki */
|
||||
/* '7' Use SI/SO for KATAKANA [SI / SO] */
|
||||
diff -ur Ng-1.3L.orig/sys/bsd/fileio.c ./sys/bsd/fileio.c
|
||||
--- Ng-1.3L.orig/sys/bsd/fileio.c Wed Feb 13 13:05:02 1991
|
||||
+++ ./sys/bsd/fileio.c Sun Mar 5 11:42:04 2000
|
||||
@@ -6,6 +6,10 @@
|
||||
#include "config.h" /* 90.12.20 by S.Yoshida */
|
||||
#include "def.h"
|
||||
|
||||
+#ifdef __FreeBSD__
|
||||
+#include <string.h>
|
||||
+#endif /* __FreeBSD__ */
|
||||
+
|
||||
static FILE *ffp;
|
||||
extern char *getenv(), *strncpy();
|
||||
char *adjustname();
|
||||
@@ -384,7 +388,11 @@
|
||||
{
|
||||
int pid;
|
||||
char *eargv[3];
|
||||
+#ifndef __FreeBSD__
|
||||
union wait status;
|
||||
+#else
|
||||
+ int status;
|
||||
+#endif /* __FreeBSD__ */
|
||||
|
||||
#ifdef BUGFIX /* 91.01.11 by Y.Kaneko */
|
||||
if((pid = vfork()) == 0) {
|
||||
@@ -403,7 +411,11 @@
|
||||
if(pid == -1) return -1;
|
||||
#endif /* BUGFIX */
|
||||
while(wait(&status) != pid) {}
|
||||
+#ifndef __FreeBSD__
|
||||
return status.w_status == 0;
|
||||
+#else
|
||||
+ return status == 0;
|
||||
+#endif /* __FreeBSD__ */
|
||||
}
|
||||
|
||||
BUFFER *dired_(dirname)
|
||||
@@ -461,12 +473,35 @@
|
||||
register char *fn;
|
||||
{
|
||||
register char *cp;
|
||||
+#ifndef __FreeBSD__
|
||||
|
||||
if(llength(lp) <= 47) return ABORT;
|
||||
(VOID) strcpy(fn, curbp->b_fname);
|
||||
cp = fn + strlen(fn);
|
||||
bcopy(&lp->l_text[47], cp, llength(lp) - 47);
|
||||
cp[llength(lp) - 47] = '\0';
|
||||
+#else
|
||||
+ register int sepidx, duplen;
|
||||
+
|
||||
+ if(llength(lp) < 47) return ABORT;
|
||||
+ cp = &lp->l_text[llength(lp)];
|
||||
+ while (*--cp != ' ') ;
|
||||
+ sepidx = (cp - lp->l_text) + 1;
|
||||
+
|
||||
+ if ( lgetc(lp, 2) == 'l' && strncmp(cp - 3, " -> " ,4) == 0 ) {
|
||||
+ duplen = sepidx-4;
|
||||
+ strncpy(fn, lp->l_text, duplen);
|
||||
+ fn[duplen] = '\0';
|
||||
+ sepidx = (strrchr(fn, ' ') - fn) + 1;
|
||||
+ duplen = duplen - sepidx;
|
||||
+ }
|
||||
+ else duplen = llength(lp) - sepidx;
|
||||
+
|
||||
+ (VOID) strcpy(fn, curbp->b_fname);
|
||||
+ cp = fn + strlen(fn);
|
||||
+ bcopy(&lp->l_text[sepidx], cp, duplen);
|
||||
+ cp[duplen] = '\0';
|
||||
+#endif
|
||||
return lgetc(lp, 2) == 'd';
|
||||
}
|
||||
#endif
|
||||
diff -ur Ng-1.3L.orig/sys/bsd/spawn.c ./sys/bsd/spawn.c
|
||||
--- Ng-1.3L.orig/sys/bsd/spawn.c Wed Feb 13 13:01:41 1991
|
||||
+++ ./sys/bsd/spawn.c Sun Mar 5 11:41:39 2000
|
||||
@@ -39,13 +39,27 @@
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
spawncli(f, n) {
|
||||
+#ifndef __FreeBSD__
|
||||
register int pid, wpid, (*oqsig)(), (*oisig)(), omask;
|
||||
+#else
|
||||
+ register int omask;
|
||||
+ register pid_t pid, wpid;
|
||||
+ register sig_t oqsig, oisig;
|
||||
+#endif /* __FreeBSD__ */
|
||||
#ifdef ADDFUNC /* 90.02.14 by S.Yoshida */
|
||||
#ifdef SIGWINCH /* 90.02.14 by S.Yoshida */
|
||||
+#ifndef __FreeBSD__
|
||||
register int (*owsig)();
|
||||
+#else
|
||||
+ register sig_t owsig;
|
||||
+#endif /* __FreeBSD__ */
|
||||
#endif /* SIGWINCH */
|
||||
#endif /* ADDFUNC */
|
||||
+#ifndef __FreeBSD__
|
||||
union wait status;
|
||||
+#else
|
||||
+ int status;
|
||||
+#endif /* __FreeBSD__ */
|
||||
|
||||
if (shellp == NULL) {
|
||||
shellp = getenv("SHELL");
|
||||
@@ -141,8 +155,15 @@
|
||||
char *tmp;
|
||||
int ostdin, ostdout, ostderr, in, out, s;
|
||||
extern char *mktemp();
|
||||
+#ifdef __FreeBSD__
|
||||
+ static char tmpfile[] = "/tmp/ngXXXXXX";
|
||||
+#endif /* __FreeBSD__ */
|
||||
|
||||
+#ifndef __FreeBSD__
|
||||
if ((tmp = mktemp("/tmp/ngXXXXXX")) == NULL)
|
||||
+#else
|
||||
+ if ((tmp = mktemp(tmpfile)) == NULL)
|
||||
+#endif /* __FreeBSD__ */
|
||||
return NULL;
|
||||
if ((in = open(input ? input : "/dev/null", 0)) < 0)
|
||||
return NULL;
|
||||
diff -ur Ng-1.3L.orig/sys/bsd/ttyio.c ./sys/bsd/ttyio.c
|
||||
--- Ng-1.3L.orig/sys/bsd/ttyio.c Wed Feb 13 13:02:01 1991
|
||||
+++ ./sys/bsd/ttyio.c Sun Mar 5 11:41:39 2000
|
||||
@@ -32,7 +32,11 @@
|
||||
int ncol; /* Terminal size, columns. */
|
||||
#ifdef ADDFUNC /* 90.02.14 by S.Yoshida */
|
||||
#ifdef SIGWINCH /* 90.02.13 by S.Yoshida */
|
||||
+#ifndef __FreeBSD__
|
||||
int ttwinch();
|
||||
+#else
|
||||
+void ttwinch();
|
||||
+#endif /* __FreeBSD__ */
|
||||
#endif /* SIGWINCH */
|
||||
#endif /* ADDFUNC */
|
||||
|
||||
@@ -46,7 +50,9 @@
|
||||
ttopen() {
|
||||
register char *tv_stype;
|
||||
char *getenv(), *tgetstr(), tcbuf[1024], err_str[72];
|
||||
+#ifndef __FreeBSD__
|
||||
char *sprintf();
|
||||
+#endif /* __FreeBSD__ */
|
||||
|
||||
/* do this the REAL way */
|
||||
if ((tv_stype = getenv("TERM")) == NULL)
|
||||
@@ -256,7 +262,11 @@
|
||||
/*
|
||||
* Signal handler when window size has changed.
|
||||
*/
|
||||
+#ifndef __FreeBSD__
|
||||
ttwinch()
|
||||
+#else
|
||||
+void ttwinch()
|
||||
+#endif /* __FreeBSD__ */
|
||||
{
|
||||
refresh(FFRAND, 0); /* Very easy way... */
|
||||
}
|
||||
|
||||
SYS = bsd
|
||||
-LIBS = -L/usr/pkg/lib -lcanna -ltermcap
|
||||
+LIBS = -L/usr/pkg/lib -ltermcap
|
||||
# CDEFS gets defines, and gets passed to lint. CFLAGS gets flags, and doesn't
|
||||
# get passed to lint.
|
||||
#
|
||||
|
11
japanese/ng/files/patch-ab
Normal file
11
japanese/ng/files/patch-ab
Normal file
@ -0,0 +1,11 @@
|
||||
--- config.h~ Tue Jun 6 23:35:58 2000
|
||||
+++ config.h Wed Jun 7 09:56:31 2000
|
||||
@@ -124,7 +124,7 @@
|
||||
|
||||
#define XKEYS /* use numelic keypad (by Gen.KUROKI) */
|
||||
|
||||
-#define CANNA /* use CANNA kana-kanji server (by Endo) */
|
||||
+#undef CANNA /* use CANNA kana-kanji server (by Endo) */
|
||||
|
||||
/*................................................*/
|
||||
#endif /* Do not edit this line. */
|
@ -1,5 +1,10 @@
|
||||
bin/ng
|
||||
share/doc/ja/ng/Ng.FAQ.euc-jp
|
||||
share/doc/ja/ng/Ng.doc.euc-jp
|
||||
share/doc/ja/ng/Ng.ref.euc-jp
|
||||
share/doc/ja/ng/Ng.tut.euc-jp
|
||||
share/doc/ja/ng/README.Ng.euc-jp
|
||||
share/doc/ja/ng/README.SKG.euc-jp
|
||||
share/doc/ja/ng/CHANGES.new.euc-jp
|
||||
share/doc/ja/ng/CHANGES.doc.euc-jp
|
||||
@dirrm share/doc/ja/ng
|
||||
|
Loading…
Reference in New Issue
Block a user