diff options
author | sakamoto <sakamoto@pkgsrc.org> | 1999-08-02 05:05:16 +0000 |
---|---|---|
committer | sakamoto <sakamoto@pkgsrc.org> | 1999-08-02 05:05:16 +0000 |
commit | 38b7dbb7816f78783ceefec5ff7eb1c6a74c28af (patch) | |
tree | 6840ad362c4c0684c26e2fb07a86045c91f86209 /editors/nvi-m17n | |
parent | 8693d13518b902a55777e4ee114f1ad28123e522 (diff) | |
download | pkgsrc-38b7dbb7816f78783ceefec5ff7eb1c6a74c28af.tar.gz |
Import FreeBSD's "editors/nvi-m17n" port:
A clone of vi/ex, with multilingual patch
Diffstat (limited to 'editors/nvi-m17n')
-rw-r--r-- | editors/nvi-m17n/Makefile | 35 | ||||
-rw-r--r-- | editors/nvi-m17n/files/md5 | 2 | ||||
-rw-r--r-- | editors/nvi-m17n/patches/patch-aa | 106 | ||||
-rw-r--r-- | editors/nvi-m17n/patches/patch-ab | 15 | ||||
-rw-r--r-- | editors/nvi-m17n/pkg/COMMENT | 1 | ||||
-rw-r--r-- | editors/nvi-m17n/pkg/DESCR | 24 | ||||
-rw-r--r-- | editors/nvi-m17n/pkg/PLIST | 30 | ||||
-rw-r--r-- | editors/nvi-m17n/pkg/REQ | 9 |
8 files changed, 222 insertions, 0 deletions
diff --git a/editors/nvi-m17n/Makefile b/editors/nvi-m17n/Makefile new file mode 100644 index 00000000000..2b7f08aecb3 --- /dev/null +++ b/editors/nvi-m17n/Makefile @@ -0,0 +1,35 @@ +# New ports collection makefile for: nvi-1.79 + multilingual patch(none) +# Version required: 1.79 +# Date created: 6 Mar 1997 +# Whom: Jun-ichiro itojun Itoh <itojun@itojun.org> +# +# $Id: Makefile,v 1.1.1.1 1999/08/02 05:05:16 sakamoto Exp $ +# + + +DISTNAME= nvi-1.79 +PKGNAME?= nvi-m17n-1.79.19990331 +CATEGORIES= editors +MASTER_SITES= ftp://sleepy.vwh.net/pub/\ + ftp://ftp.foretune.co.jp/pub/tools/nvi-m17n/ + +PATCH_SITES= ftp://ftp.foretune.co.jp/pub/tools/nvi-m17n/ +PATCHFILES= nvi-1.79.m17n-19990331.diff.gz + +MAINTAINER= itojun@itojun.org + +#LIB_DEPENDS= canna.1:${PORTSDIR}/japanese/Canna + +WRKSRC= ${WRKDIR}/${DISTNAME}/build +GNU_CONFIGURE= yes +PATCH_DIST_ARGS=-d ${WRKSRC}/.. --forward --quiet -E -p1 -f +CONFIGURE_ENV= OPTFLAG='-D_PATH_SYSEXRC=\"${PREFIX}/etc/vi.exrc\"' +CONFIGURE_ARGS= --enable-multibyte --program-prefix=n + +post-install: + @${CP} ${WRKSRC}/../docs.m17n/README.english \ + ${PREFIX}/share/vi/ + @${CP} ${WRKSRC}/../docs.m17n/README.japanese \ + ${PREFIX}/share/vi/ + +.include <bsd.port.mk> diff --git a/editors/nvi-m17n/files/md5 b/editors/nvi-m17n/files/md5 new file mode 100644 index 00000000000..c922cca2772 --- /dev/null +++ b/editors/nvi-m17n/files/md5 @@ -0,0 +1,2 @@ +MD5 (nvi-1.79.tar.gz) = 52549f8e390db06f9366ee83e59f64de +MD5 (nvi-1.79.m17n-19990331.diff.gz) = efdad541177760027040dfc46796e11c diff --git a/editors/nvi-m17n/patches/patch-aa b/editors/nvi-m17n/patches/patch-aa new file mode 100644 index 00000000000..9272867b139 --- /dev/null +++ b/editors/nvi-m17n/patches/patch-aa @@ -0,0 +1,106 @@ +*** Makefile.in.orig Thu Mar 6 13:19:46 1997 +--- Makefile.in Thu Mar 6 13:23:40 1997 +*************** +*** 87,95 **** + cd $(bindir) && $(chmod) $(emode) `echo vi | sed '$(transform)'` + cd $(bindir) && $(rm) -f `echo ex | sed '$(transform)'` + cd $(bindir) && $(rm) -f `echo view | sed '$(transform)'` +! cd $(bindir) && $(ln) \ + `echo vi | sed '$(transform)'` `echo ex | sed '$(transform)'` +! cd $(bindir) && $(ln) \ + `echo vi | sed '$(transform)'` `echo view | sed '$(transform)'` + cd $(bindir) && $(rm) -f regular qregular + $(cp) regular $(bindir)/regular +--- 87,95 ---- + cd $(bindir) && $(chmod) $(emode) `echo vi | sed '$(transform)'` + cd $(bindir) && $(rm) -f `echo ex | sed '$(transform)'` + cd $(bindir) && $(rm) -f `echo view | sed '$(transform)'` +! cd $(bindir) && $(ln) -s \ + `echo vi | sed '$(transform)'` `echo ex | sed '$(transform)'` +! cd $(bindir) && $(ln) -s \ + `echo vi | sed '$(transform)'` `echo view | sed '$(transform)'` + cd $(bindir) && $(rm) -f regular qregular + $(cp) regular $(bindir)/regular +*************** +*** 97,115 **** + cd $(bindir) && $(chmod) $(emode) regular qregular + [ -d $(mandir) ] || \ + ($(mkdir) $(mandir) && $(chmod) $(dmode) $(mandir)) +! [ -d $(mandir)/cat1 ] || \ +! ($(mkdir) $(mandir)/cat1 && $(chmod) $(dmode) $(mandir)/cat1) + @echo "Installing man pages: $(mandir) ..." +! cd $(mandir)/cat1 && $(rm) -f `echo vi.0 | sed '$(transform)'` +! $(cp) $(srcdir)/docs/USD.doc/vi.man/vi.0 \ +! $(mandir)/cat1/`echo vi.0 | sed '$(transform)'` +! cd $(mandir)/cat1 && $(chmod) $(fmode) `echo vi.0 | sed '$(transform)'` +! cd $(mandir)/cat1 && $(rm) -f `echo ex.0 | sed '$(transform)'` +! cd $(mandir)/cat1 && $(rm) -f `echo view.0 | sed '$(transform)'` +! cd $(mandir)/cat1 && $(ln) \ +! `echo vi.0 | sed '$(transform)'` `echo ex.0 | sed '$(transform)'` +! cd $(mandir)/cat1 && $(ln) \ +! `echo vi.0 | sed '$(transform)'` `echo view.0 | sed '$(transform)'` + [ -d $(mandir)/man1 ] || \ + ($(mkdir) $(mandir)/man1 && $(chmod) $(dmode) $(mandir)/man1) + cd $(mandir)/man1 && $(rm) -f `echo vi.1 | sed '$(transform)'` +--- 97,115 ---- + cd $(bindir) && $(chmod) $(emode) regular qregular + [ -d $(mandir) ] || \ + ($(mkdir) $(mandir) && $(chmod) $(dmode) $(mandir)) +! # [ -d $(mandir)/cat1 ] || \ +! # ($(mkdir) $(mandir)/cat1 && $(chmod) $(dmode) $(mandir)/cat1) + @echo "Installing man pages: $(mandir) ..." +! # cd $(mandir)/cat1 && $(rm) -f `echo vi.0 | sed '$(transform)'` +! # $(cp) $(srcdir)/docs/USD.doc/vi.man/vi.0 \ +! # $(mandir)/cat1/`echo vi.0 | sed '$(transform)'` +! # cd $(mandir)/cat1 && $(chmod) $(fmode) `echo vi.0 | sed '$(transform)'` +! # cd $(mandir)/cat1 && $(rm) -f `echo ex.0 | sed '$(transform)'` +! # cd $(mandir)/cat1 && $(rm) -f `echo view.0 | sed '$(transform)'` +! # cd $(mandir)/cat1 && $(ln) -s \ +! # `echo vi.0 | sed '$(transform)'` `echo ex.0 | sed '$(transform)'` +! # cd $(mandir)/cat1 && $(ln) -s \ +! # `echo vi.0 | sed '$(transform)'` `echo view.0 | sed '$(transform)'` + [ -d $(mandir)/man1 ] || \ + ($(mkdir) $(mandir)/man1 && $(chmod) $(dmode) $(mandir)/man1) + cd $(mandir)/man1 && $(rm) -f `echo vi.1 | sed '$(transform)'` +*************** +*** 118,126 **** + cd $(mandir)/man1 && $(chmod) $(fmode) `echo vi.1 | sed '$(transform)'` + cd $(mandir)/man1 && $(rm) -f `echo ex.1 | sed '$(transform)'` + cd $(mandir)/man1 && $(rm) -f `echo view.1 | sed '$(transform)'` +! cd $(mandir)/man1 && $(ln) \ + `echo vi.1 | sed '$(transform)'` `echo ex.1 | sed '$(transform)'` +! cd $(mandir)/man1 && $(ln) \ + `echo vi.1 | sed '$(transform)'` `echo view.1 | sed '$(transform)'` + + cat= dutch english french german ru_SU.KOI8-R spanish swedish +--- 118,126 ---- + cd $(mandir)/man1 && $(chmod) $(fmode) `echo vi.1 | sed '$(transform)'` + cd $(mandir)/man1 && $(rm) -f `echo ex.1 | sed '$(transform)'` + cd $(mandir)/man1 && $(rm) -f `echo view.1 | sed '$(transform)'` +! cd $(mandir)/man1 && $(ln) -s \ + `echo vi.1 | sed '$(transform)'` `echo ex.1 | sed '$(transform)'` +! cd $(mandir)/man1 && $(ln) -s \ + `echo vi.1 | sed '$(transform)'` `echo view.1 | sed '$(transform)'` + + cat= dutch english french german ru_SU.KOI8-R spanish swedish +*************** +*** 163,171 **** + cd $(bindir) && $(rm) -f `echo vi | sed '$(transform)'` + cd $(bindir) && $(rm) -f `echo view | sed '$(transform)'` + cd $(bindir) && $(rm) -f regular qregular +! cd $(mandir)/cat1 && $(rm) -f `echo ex.0 | sed '$(transform)'` +! cd $(mandir)/cat1 && $(rm) -f `echo vi.0 | sed '$(transform)'` +! cd $(mandir)/cat1 && $(rm) -f `echo view.0 | sed '$(transform)'` + cd $(mandir)/man1 && $(rm) -f `echo ex.1 | sed '$(transform)'` + cd $(mandir)/man1 && $(rm) -f `echo vi.1 | sed '$(transform)'` + cd $(mandir)/man1 && $(rm) -f `echo view.1 | sed '$(transform)'` +--- 163,171 ---- + cd $(bindir) && $(rm) -f `echo vi | sed '$(transform)'` + cd $(bindir) && $(rm) -f `echo view | sed '$(transform)'` + cd $(bindir) && $(rm) -f regular qregular +! # cd $(mandir)/cat1 && $(rm) -f `echo ex.0 | sed '$(transform)'` +! # cd $(mandir)/cat1 && $(rm) -f `echo vi.0 | sed '$(transform)'` +! # cd $(mandir)/cat1 && $(rm) -f `echo view.0 | sed '$(transform)'` + cd $(mandir)/man1 && $(rm) -f `echo ex.1 | sed '$(transform)'` + cd $(mandir)/man1 && $(rm) -f `echo vi.1 | sed '$(transform)'` + cd $(mandir)/man1 && $(rm) -f `echo view.1 | sed '$(transform)'` diff --git a/editors/nvi-m17n/patches/patch-ab b/editors/nvi-m17n/patches/patch-ab new file mode 100644 index 00000000000..d590fd0019a --- /dev/null +++ b/editors/nvi-m17n/patches/patch-ab @@ -0,0 +1,15 @@ +--- configure.bad Fri Jun 26 02:22:51 1998 ++++ configure Fri Jun 26 02:23:39 1998 +@@ -1686,10 +1686,8 @@ + case "$host_os" in + bsdi2.1) + vi_cannapath="/usr/contrib/canna";; +- freebsd2.2*|freebsd3*) +- vi_cannapath="/usr/local";; +- freebsd2*) +- vi_cannapath="/usr/local/canna";; ++ freebsd*) ++ vi_cannapath="${prefix}";; + *) + vi_cannapath="/usr/local/canna";; + esac diff --git a/editors/nvi-m17n/pkg/COMMENT b/editors/nvi-m17n/pkg/COMMENT new file mode 100644 index 00000000000..22a9e99dedf --- /dev/null +++ b/editors/nvi-m17n/pkg/COMMENT @@ -0,0 +1 @@ +A clone of vi/ex, with multilingual patch, no default settings diff --git a/editors/nvi-m17n/pkg/DESCR b/editors/nvi-m17n/pkg/DESCR new file mode 100644 index 00000000000..c37c20cf106 --- /dev/null +++ b/editors/nvi-m17n/pkg/DESCR @@ -0,0 +1,24 @@ +This ports contains multilingualized nex/nvi. + +nex/nvi is a freely redistributable implementation of ex/vi text +editors originally distributed as part of the Fourth Berkeley +Software Distribution (4BSD), by the University of California, +Berkeley. + +Multilingual patch enables you to use the following multilingual +encoding methods, such as: + none iso-8859-[1234789] latin1 latin2 + euc-jp-1978 euc-jp euc-jp-1983 euc-jp-1990 euc-cn euc-kr + iso-2022-cn iso-2022-jp iso-2022-kr + iso-2022-7-1 iso-2022-7-2 iso-2022-8-2 + sjis big5 hz euc-tw +Multilingual support has been set up to use some of the above (guess from +the name of the ports/packages) as default value. +You can change encoding style on the fly, or by setting up ~/.exrc. +With configurations, for Japanese encodings, you can also enjoy the +embedded canna support. +See /usr/local/share/vi/README.* for details of multilingual patch. + +original distribution site: + ftp://ftp.cs.berkeley.edu/ucb/4bsd/nvi-1.79.tar.gz + ftp://ftp.foretune.co.jp/pub/tools/nvi-m17n/ diff --git a/editors/nvi-m17n/pkg/PLIST b/editors/nvi-m17n/pkg/PLIST new file mode 100644 index 00000000000..19d97e4a073 --- /dev/null +++ b/editors/nvi-m17n/pkg/PLIST @@ -0,0 +1,30 @@ +bin/nvi +bin/nex +bin/nview +bin/regular +bin/qregular +man/man1/nvi.1 +man/man1/nex.1 +man/man1/nview.1 +share/vi/README.english +share/vi/README.japanese +share/vi/recover +share/vi/catalog/dutch +share/vi/catalog/english +share/vi/catalog/french +share/vi/catalog/german +share/vi/catalog/ru_SU.KOI8-R +share/vi/catalog/spanish +share/vi/catalog/swedish +share/vi/perl/forall.pl +share/vi/perl/make.pl +share/vi/perl/tk.pl +share/vi/perl/wc.pl +share/vi/tcl/errors.tcl +share/vi/tcl/gnats.tcl +share/vi/tcl/mailprocs.tcl +share/vi/tcl/wc.tcl +@dirrm share/vi/catalog +@dirrm share/vi/perl +@dirrm share/vi/tcl +@dirrm share/vi diff --git a/editors/nvi-m17n/pkg/REQ b/editors/nvi-m17n/pkg/REQ new file mode 100644 index 00000000000..e108ec466a2 --- /dev/null +++ b/editors/nvi-m17n/pkg/REQ @@ -0,0 +1,9 @@ +#!/bin/sh +if [ "$2" != "INSTALL" ]; then + exit 0 +fi +echo "********************************************************" +echo "* W a r n i n g *" +echo "* Read /usr/local/share/vi/README.* for controlling *" +echo "* multilingual functionalities. *" +echo "********************************************************" |