Add 2bsd-vi 040605, this is the original BSD vi editor by Bill

Joy, unencumbered and updated to build and run on modern
systems.

PR:		ports/68956
Submitted by:	David Thiel <lx@redundancy.redundancy.org>
This commit is contained in:
Kirill Ponomarev 2004-07-12 21:07:29 +00:00
parent 1f7d4b3c10
commit 7290aa7f4f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=113504
6 changed files with 113 additions and 0 deletions

28
editors/2bsd-vi/Makefile Normal file
View file

@ -0,0 +1,28 @@
# New ports collection makefile for: 2bsd-vi
# Date created: 2004-07-12
# Whom: David Thiel <lx@redundancy.redundancy.org>
#
# $FreeBSD$
#
PORTNAME= vi
PORTVERSION= 040605
CATEGORIES= editors
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ex-vi/
PKGNAMEPREFIX= 2bsd-
DISTNAME= ex-${PORTVERSION}
MAINTAINER= lx@redundancy.redundancy.org
COMMENT= The original vi editor, updated to run on modern OSes
MAN1= ex.1 vi.1
MLINKS= ex.1 edit.1 vi.1 vedit.1 vi.1 view.1
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
BROKEN= Requires FreeBSD-5.0 or newer
.endif
.include <bsd.port.post.mk>

2
editors/2bsd-vi/distinfo Normal file
View file

@ -0,0 +1,2 @@
MD5 (ex-040605.tar.gz) = f4b9473c6a771b94ff2e605c53310908
SIZE (ex-040605.tar.gz) = 265672

View file

@ -0,0 +1,64 @@
--- /var/tmp/Makefile.orig Mon Jul 12 11:06:48 2004
+++ Makefile Mon Jul 12 11:29:22 2004
@@ -79,10 +79,9 @@
# Destinations for installation. $(PRESERVEDIR) is used for recovery files.
# It will get mode 1777.
#
-PREFIX = /usr/local
BINDIR = $(PREFIX)/bin
LIBEXECDIR = $(PREFIX)/libexec
-MANDIR = $(PREFIX)/share/man
+MANDIR = $(PREFIX)/man
PRESERVEDIR = /var/preserve
#
@@ -94,7 +93,7 @@
#
# A BSD-like install program. GNU install will fit well here, too.
#
-INSTALL = /usr/ucb/install
+INSTALL = /usr/bin/install
#
# Compiler and linker flags.
@@ -276,13 +275,6 @@
# install in standard place
install-man:
- test -d $(DESTDIR)$(PREFIX) || mkdir -p $(DESTDIR)$(PREFIX)
- test -d $(DESTDIR)$(MANDIR) || mkdir -p $(DESTDIR)$(MANDIR)
- test -d $(DESTDIR)$(MANDIR)/man1 || mkdir -p $(DESTDIR)$(MANDIR)/man1
- rm -f $(DESTDIR)$(MANDIR)/man1/ex.1 $(DESTDIR)$(MANDIR)/man1/edit.1 \
- $(DESTDIR)$(MANDIR)/man1/vedit.1 \
- $(DESTDIR)$(MANDIR)/man1/vi.1 \
- $(DESTDIR)$(MANDIR)/man1/view.1
$(INSTALL) -c -m 644 ex.1 $(DESTDIR)$(MANDIR)/man1/ex.1
$(INSTALL) -c -m 644 vi.1 $(DESTDIR)$(MANDIR)/man1/vi.1
ln -s ex.1 $(DESTDIR)$(MANDIR)/man1/edit.1
@@ -290,10 +282,6 @@
ln -s vi.1 $(DESTDIR)$(MANDIR)/man1/view.1
install: all install-man
- rm -f $(DESTDIR)$(BINDIR)/ex $(DESTDIR)$(BINDIR)/edit \
- $(DESTDIR)$(BINDIR)/vedit $(DESTDIR)$(BINDIR)/vi \
- $(DESTDIR)$(BINDIR)/view
- test -d $(DESTDIR)$(BINDIR) || mkdir -p $(DESTDIR)$(BINDIR)
# special provisions for sticky install
if test -f $(DESTDIR)$(BINDIR)/ex; \
then test -f $(DESTDIR)$(BINDIR)/ex.old.$$$$ && exit 1; \
@@ -303,15 +291,12 @@
rm -f $(DESTDIR)$(BINDIR)/ex.old.$$$$; \
fi
$(INSTALL) -c -s -m 1755 ex $(DESTDIR)$(BINDIR)/ex
- test -d $(DESTDIR)$(LIBEXECDIR) || mkdir -p $(DESTDIR)$(LIBEXECDIR)
$(INSTALL) -c -s exrecover $(DESTDIR)$(LIBEXECDIR)/exrecover
$(INSTALL) -c -s expreserve $(DESTDIR)$(LIBEXECDIR)/expreserve
ln -s ex $(DESTDIR)$(BINDIR)/edit
ln -s ex $(DESTDIR)$(BINDIR)/vedit
ln -s ex $(DESTDIR)$(BINDIR)/vi
ln -s ex $(DESTDIR)$(BINDIR)/view
- test -d $(DESTDIR)$(PRESERVEDIR) || mkdir -p $(DESTDIR)$(PRESERVEDIR)
- chmod 1777 $(DESTDIR)$(PRESERVEDIR)
ex.o: config.h ex_argv.h ex.h ex_proto.h ex_temp.h ex_tty.h ex_tune.h
ex.o: ex_vars.h libterm/libterm.h

11
editors/2bsd-vi/pkg-descr Normal file
View file

@ -0,0 +1,11 @@
This is the original BSD ex/vi, updated to build and run on modern
Unix systems. Compared to most of its many clones, the original vi is
a rather small program (~120 KB code on i386) just with its extremely
powerful editing interface, but lacking fancy features like multiple
undo, multiple screens or syntax highlighting. In other words, it is a
typical Unix program that does exactly what it should and nothing more.
I intend to preserve this style in maintaining my port, except for
changes to achieve POSIX.2 standards compliance, features in the SVR4
versions of vi, and, of course, bug fixes.
WWW: http://ex-vi.sourceforge.net/

View file

@ -0,0 +1,7 @@
bin/ex
bin/edit
bin/vedit
bin/vi
bin/view
libexec/exrecover
libexec/expreserve

View file

@ -3,6 +3,7 @@
COMMENT = Editors
SUBDIR += 2bsd-vi
SUBDIR += AbiWord2
SUBDIR += MathPlanner
SUBDIR += aee