From bad416848f60a6e06391d2d4dc726424c2370dbe Mon Sep 17 00:00:00 2001 From: sobomax Date: Thu, 2 Nov 2000 15:42:45 +0000 Subject: Add dte - a simple text editor that uses many of MSDOS EDIT's command shortcuts keybindings. Also makes a nice text editor for use with mailers like mutt. PR: 21811 Submitted by: Steve Horan --- editors/Makefile | 1 + editors/dte/Makefile | 28 ++++++++++++++++++++++++++++ editors/dte/distinfo | 1 + editors/dte/files/patch-aa | 25 +++++++++++++++++++++++++ editors/dte/files/patch-ab | 11 +++++++++++ editors/dte/pkg-comment | 1 + editors/dte/pkg-descr | 7 +++++++ editors/dte/pkg-plist | 5 +++++ 8 files changed, 79 insertions(+) create mode 100644 editors/dte/Makefile create mode 100644 editors/dte/distinfo create mode 100644 editors/dte/files/patch-aa create mode 100644 editors/dte/files/patch-ab create mode 100644 editors/dte/pkg-comment create mode 100644 editors/dte/pkg-descr create mode 100644 editors/dte/pkg-plist diff --git a/editors/Makefile b/editors/Makefile index 2378a1d92987..c1e01fbbdc94 100644 --- a/editors/Makefile +++ b/editors/Makefile @@ -22,6 +22,7 @@ SUBDIR += custom-emacs SUBDIR += custom-mule SUBDIR += dedit + SUBDIR += dte SUBDIR += e93 SUBDIR += elvis SUBDIR += emacs diff --git a/editors/dte/Makefile b/editors/dte/Makefile new file mode 100644 index 000000000000..a11a93f5a08e --- /dev/null +++ b/editors/dte/Makefile @@ -0,0 +1,28 @@ +# New ports collection makefile for: dte +# Date created: 4 October 2000 +# Whom: Steve Horan +# +# $FreeBSD$ +# + +PORTNAME= dte +PORTVERSION= 6.12 +CATEGORIES= editors +MASTER_SITES= ftp://mugca.cc.monash.edu.au/pub/dougt/ +EXTRACT_SUFX= .tgz + +MAINTAINER= sjhports@tracking.amos.net + +MAN1= dte.1 + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/dte ${PREFIX}/bin/dte +.if !defined(NOPORTDOCS) + ${MKDIR} ${PREFIX}/share/doc/dte + ${INSTALL_DATA} ${WRKSRC}/dte.doc ${PREFIX}/share/doc/dte/ + ${INSTALL_DATA} ${WRKSRC}/dte.hlp ${PREFIX}/share/doc/dte/ + ${INSTALL_DATA} ${WRKSRC}/dte.rc ${PREFIX}/share/doc/dte/ + ${INSTALL_MAN} ${WRKSRC}/dte.1 ${MANPREFIX}/man/man1 +.endif + +.include diff --git a/editors/dte/distinfo b/editors/dte/distinfo new file mode 100644 index 000000000000..1e690b5b3dd0 --- /dev/null +++ b/editors/dte/distinfo @@ -0,0 +1 @@ +MD5 (dte-6.12.tgz) = db90098c9736ff53c01c5db4cb994e32 diff --git a/editors/dte/files/patch-aa b/editors/dte/files/patch-aa new file mode 100644 index 000000000000..ac4043ecb353 --- /dev/null +++ b/editors/dte/files/patch-aa @@ -0,0 +1,25 @@ +--- Makefile.orig Mon Jan 18 07:04:04 1999 ++++ Makefile Thu Nov 2 17:36:28 2000 +@@ -1,15 +1,17 @@ + # Make dte for UNIX [Debian Linux] systems + +-BINDIR = $(DESTDIR)/usr/bin +-LIBDIR = $(DESTDIR)/usr/lib +-MANDIR = $(DESTDIR)/usr/man/man1 ++BINDIR = $(PREFIX)/bin ++LIBDIR = $(PREFIX)/share/doc/dte ++MANDIR = $(PREFIX)/man/man1 + OBJECTS = ed.o utils.o findrep.o block.o hwind.o hwlinux.o window.o + +-CCFLAGS = -O2 -m486 -Wall -DHELPFILE='"'${LIBDIR}/dte.hlp'"' -DPROTO -DCURSOR_PS2_MOUSE ++CCFLAGS += -DHELPFILE='"'${LIBDIR}/dte.hlp'"' -DPROTO -DCURSOR_PS2_MOUSE ${CFLAGS} + + .c.o: ; cc $(CCFLAGS) -c -DUNIX $*.c + +-dte: $(OBJECTS) ; cc $(CCFLAGS) -o dte $(OBJECTS) -lncurses ++all: dte ++ ++dte: $(OBJECTS) ; cc $(CCFLAGS) -o dte $(OBJECTS) -lncurses -lcompat + + install: dte ;\ + strip dte ;\ diff --git a/editors/dte/files/patch-ab b/editors/dte/files/patch-ab new file mode 100644 index 000000000000..aaf019b11935 --- /dev/null +++ b/editors/dte/files/patch-ab @@ -0,0 +1,11 @@ +--- hwlinux.c.orig Sun Feb 13 04:07:04 2000 ++++ hwlinux.c Thu Nov 2 17:32:22 2000 +@@ -636,7 +636,7 @@ + * keep track of which version is being used where. + * Once "dte" becomes more stable, this may not be useful. + */ +- printf("\n\ndte version %s for Linux\n", VERSION); ++ printf("\n\ndte version %s for FreeBSD\n", VERSION); + } + + /* diff --git a/editors/dte/pkg-comment b/editors/dte/pkg-comment new file mode 100644 index 000000000000..3d3c54917da7 --- /dev/null +++ b/editors/dte/pkg-comment @@ -0,0 +1 @@ +A simple text editor which uses many of the shortcuts used in MSDOS EDIT diff --git a/editors/dte/pkg-descr b/editors/dte/pkg-descr new file mode 100644 index 000000000000..425444edc563 --- /dev/null +++ b/editors/dte/pkg-descr @@ -0,0 +1,7 @@ +DTE is a simple text editor written by Doug Thompson from +Monash university in Victoria, Australia. + +DTE supports many of the key shortcuts used in MSDOS EDIT. + +DTE also makes a nice composer for email messages, as an alternative +to vi or pico. diff --git a/editors/dte/pkg-plist b/editors/dte/pkg-plist new file mode 100644 index 000000000000..885f8064fad1 --- /dev/null +++ b/editors/dte/pkg-plist @@ -0,0 +1,5 @@ +bin/dte +share/doc/dte/dte.hlp +share/doc/dte/dte.doc +share/doc/dte/dte.rc +@dirrm share/doc/dte -- cgit