aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-07-13 05:07:29 +0800
committerkrion <krion@FreeBSD.org>2004-07-13 05:07:29 +0800
commitb9e3fa1ce4e6a69c29a75b3174645fb6a8acb942 (patch)
tree94aa7faa446c39bd6a61276a828f7b5f9f6781d0
parentb900b8855e5437f8bca95881c7f947bef84a99e9 (diff)
downloadfreebsd-ports-gnome-b9e3fa1ce4e6a69c29a75b3174645fb6a8acb942.tar.gz
freebsd-ports-gnome-b9e3fa1ce4e6a69c29a75b3174645fb6a8acb942.tar.zst
freebsd-ports-gnome-b9e3fa1ce4e6a69c29a75b3174645fb6a8acb942.zip
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>
-rw-r--r--editors/2bsd-vi/Makefile28
-rw-r--r--editors/2bsd-vi/distinfo2
-rw-r--r--editors/2bsd-vi/files/patch-Makefile64
-rw-r--r--editors/2bsd-vi/pkg-descr11
-rw-r--r--editors/2bsd-vi/pkg-plist7
-rw-r--r--editors/Makefile1
6 files changed, 113 insertions, 0 deletions
diff --git a/editors/2bsd-vi/Makefile b/editors/2bsd-vi/Makefile
new file mode 100644
index 000000000000..6a888d7bad28
--- /dev/null
+++ b/editors/2bsd-vi/Makefile
@@ -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>
diff --git a/editors/2bsd-vi/distinfo b/editors/2bsd-vi/distinfo
new file mode 100644
index 000000000000..d345305fae7a
--- /dev/null
+++ b/editors/2bsd-vi/distinfo
@@ -0,0 +1,2 @@
+MD5 (ex-040605.tar.gz) = f4b9473c6a771b94ff2e605c53310908
+SIZE (ex-040605.tar.gz) = 265672
diff --git a/editors/2bsd-vi/files/patch-Makefile b/editors/2bsd-vi/files/patch-Makefile
new file mode 100644
index 000000000000..ed606a0f8a75
--- /dev/null
+++ b/editors/2bsd-vi/files/patch-Makefile
@@ -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
diff --git a/editors/2bsd-vi/pkg-descr b/editors/2bsd-vi/pkg-descr
new file mode 100644
index 000000000000..11e58f9cd94b
--- /dev/null
+++ b/editors/2bsd-vi/pkg-descr
@@ -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/
diff --git a/editors/2bsd-vi/pkg-plist b/editors/2bsd-vi/pkg-plist
new file mode 100644
index 000000000000..96ef83a21fce
--- /dev/null
+++ b/editors/2bsd-vi/pkg-plist
@@ -0,0 +1,7 @@
+bin/ex
+bin/edit
+bin/vedit
+bin/vi
+bin/view
+libexec/exrecover
+libexec/expreserve
diff --git a/editors/Makefile b/editors/Makefile
index 5047419b1d64..54337828b142 100644
--- a/editors/Makefile
+++ b/editors/Makefile
@@ -3,6 +3,7 @@
COMMENT = Editors
+ SUBDIR += 2bsd-vi
SUBDIR += AbiWord2
SUBDIR += MathPlanner
SUBDIR += aee