Add uemacs

This commit is contained in:
downsj 1998-06-10 06:50:54 +00:00
parent 0a13878013
commit 0161a2ffd4
15 changed files with 2974 additions and 0 deletions

33
editors/uemacs/Makefile Normal file
View File

@ -0,0 +1,33 @@
# New ports collection makefile for: MicroEmacs
# Version required: 4.0
# Date created: 9 June 1998
# Whom: Jason Downs (downsj@downsj.com)
#
# Originally from FreeBSD:
# Date created: 16 Jan 1995
# Whom: Thomas Gellekum <tg@FreeBSD.org>
#
# $OpenBSD: Makefile,v 1.1 1998/06/10 06:50:54 downsj Exp $
#
DISTNAME= uemacs
PKGNAME= uemacs-4.0
CATEGORIES= editors
MASTER_SITES= ftp://aquest.com/pub/uemacs400/disk2/ \
ftp://informatik.hu-berlin.de/pub/pc/msdos/editors/ \
ftp://ftp.biomath.jussieu.fr/pub/editors/memacs400/disk2/
DISTFILES= ue400dev.zip
MAINTAINER= downsj@downsj.com
BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip
NO_WRKSUBDIR= yes
EXTRACT_CMD= unzip
EXTRACT_BEFORE_ARGS= -Laq
EXTRACT_AFTER_ARGS= -d ${WRKDIR}
pre-patch:
(cd ${WRKDIR}; cp -pR freebsd openbsd)
.include <bsd.port.mk>

1
editors/uemacs/files/md5 Normal file
View File

@ -0,0 +1 @@
MD5 (ue400dev.zip) = a7903b48bd27e67f6e82aee328804ab1

View File

@ -0,0 +1,15 @@
--- Makefile.orig Wed Mar 25 14:28:24 1998
+++ Makefile Wed Mar 25 14:41:41 1998
@@ -0,0 +1,12 @@
+#
+# simple makefile for uemacs
+#
+
+all:
+ (cd openbsd; make emacs)
+
+install: all
+ ${BSD_INSTALL_PROGRAM} openbsd/emacs ${PREFIX}/bin/uemacs
+ mkdir -p ${PREFIX}/share/uemacs
+ ${BSD_INSTALL_DATA} cmd/* ${PREFIX}/share/uemacs
+ mv ${PREFIX}/share/uemacs/emacs.rc ${PREFIX}/share/uemacs/.emacsrc

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,25 @@
--- src/bind.c.orig Sun Nov 19 03:09:20 1995
+++ src/bind.c Wed Mar 25 15:00:37 1998
@@ -634,7 +634,8 @@
register char *sp; /* pointer into path spec */
register int i; /* index */
static char fspec[NFILEN]; /* full path spec to search */
-
+ char patha[NFILEN];
+
/* if we have an absolute path.. check only there! */
sp = fname;
while (*sp) {
@@ -689,9 +690,11 @@
#if OS2
path = getenv("DPATH");
#else
- path = getenv("PATH");
+ strncpy(patha, getenv("PATH"), NFILEN - 25);
+ strcat(patha, ":/usr/local/share/uemacs");
#endif
#endif
+ path = patha;
if (path != NULL)
while (*path) {

View File

@ -0,0 +1,20 @@
--- src/lock.c.orig Sun Nov 19 03:09:22 1995
+++ src/lock.c Wed Mar 25 13:56:13 1998
@@ -10,10 +10,17 @@
#if FILOCK
+#if BSD
+#undef BSD
+#include <sys/param.h>
+#endif
+
#if BSD || FREEBSD || WMCS || SUN || XENIX || HPUX8 || HPUX9 || AVIION || USG || AIX || AUX
#include <sys/errno.h>
+#if !(defined(BSD) && (BSD >= 199103))
extern int sys_nerr; /* number of system error messages defined */
extern char *sys_errlist[]; /* list of message texts */
+#endif
#endif
#if MSC

View File

@ -0,0 +1,12 @@
--- h/epath.h.orig Sun Nov 19 03:09:52 1995
+++ h/epath.h Wed Mar 25 13:57:22 1998
@@ -68,7 +68,8 @@
{
".emacsrc",
"emacs.hlp",
- "/usr/local/",
+ "/usr/local/share/uemacs/",
+ "/usr/local/lib/uemacs/",
"/usr/lib/",
""
};

View File

@ -0,0 +1,13 @@
--- freebsd/makefile.orig Sat Nov 18 13:19:02 1995
+++ freebsd/makefile Wed Mar 25 15:07:14 1998
@@ -14,8 +14,8 @@
# options and arguments to the C compiler
-#CFLAGS += -I. -I$(HDIR)
-CFLAGS = -O -I. -I$(HDIR)
+CFLAGS += -I. -I$(HDIR)
+#CFLAGS = -O -I. -I$(HDIR)
# list of header files

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,13 @@
--- openbsd/makefile.old Sat Nov 18 13:19:02 1995
+++ openbsd/makefile Tue Jun 9 23:04:56 1998
@@ -14,8 +14,8 @@
# options and arguments to the C compiler
-#CFLAGS += -I. -I$(HDIR)
-CFLAGS = -O -I. -I$(HDIR)
+CFLAGS += -I. -I$(HDIR)
+#CFLAGS = -O -I. -I$(HDIR)
# list of header files

View File

@ -0,0 +1,254 @@
Only in src.old: bind.c.orig
diff -ur src.old/char.c src/char.c
--- src.old/char.c Sun Nov 19 03:09:20 1995
+++ src/char.c Tue Jun 9 23:35:26 1998
@@ -142,14 +142,14 @@
lowcase[index] = index ^ DIFCASE;
upcase[index ^ DIFCASE] = index;
}
-#if BSD || FREEBSD || USG || AIX || AUX || SMOS || HPUX8 || HPUX9 || SUN || XENIX || AVIION
+#if BSD || FREEBSD || USG || AIX || AUX || SMOS || HPUX8 || HPUX9 || SUN || XENIX || AVIION || OPENBSD
/* and for those international characters! */
for (index = (unsigned char)'\340';
index <= (unsigned char)'\375'; index++) {
lowcase[index] = index ^ DIFCASE;
upcase[index ^ DIFCASE] = index;
}
-#endif /* BSD || FREEBSD || USG || AIX || AUX || SMOS || HPUX8 || HPUX9 || SUN || XENIX || AVIION */
+#endif /* BSD || FREEBSD || USG || AIX || AUX || SMOS || HPUX8 || HPUX9 || SUN || XENIX || AVIION || OPENBSD */
#if MSDOS
/* setup various extended IBM-PC characters */
diff -ur src.old/dolock.c src/dolock.c
--- src.old/dolock.c Sun Nov 19 03:09:20 1995
+++ src/dolock.c Tue Jun 9 23:35:38 1998
@@ -53,8 +53,8 @@
}
#endif
-#if FILOCK && (MSDOS || WINNT || OS2 || SUN || USG || AIX || AUX || AVIION || BSD || FREEBSD || HPUX8 || HPUX9 || AMIGA)
-#if OS2 || ((MSDOS || WINNT) && MSC) || BSD || FREEBSD
+#if FILOCK && (MSDOS || WINNT || OS2 || SUN || USG || AIX || AUX || AVIION || BSD || FREEBSD || HPUX8 || HPUX9 || AMIGA || OPENBSD)
+#if OS2 || ((MSDOS || WINNT) && MSC) || BSD || FREEBSD || OPENBSD
#include <sys/types.h>
#endif
#include <sys/stat.h>
diff -ur src.old/file.c src/file.c
--- src.old/file.c Sat Nov 18 16:36:58 1995
+++ src/file.c Tue Jun 9 23:36:55 1998
@@ -11,7 +11,7 @@
#include "eproto.h"
#include "edef.h"
#include "elang.h"
-#if BSD | FREEBSD | SUN | USG | AIX
+#if BSD || FREEBSD || SUN || USG || AIX || OPENBSD
#include <sys/types.h>
#include <sys/stat.h>
#endif
@@ -323,7 +323,7 @@
}
ffclose(); /* Ignore errors. */
-#if BSD || FREEBSD || USG || AUX || SMOS || HPUX8 || HPUX9 || SUN || XENIX || AVION
+#if BSD || FREEBSD || USG || AUX || SMOS || HPUX8 || HPUX9 || SUN || XENIX || AVION || OPENBSD
/* if we don't have write priviledges, make this in VIEW mode */
if (s !=FIOERR && s != FIOFNF) {
if (access(fname, 2 /* W_OK*/) != 0)
@@ -428,7 +428,7 @@
while (cp1!=&fname[0] && cp1[-1]!=':' && cp1[-1]!='\\'&&cp1[-1]!='/')
--cp1;
#endif
-#if USG | AIX | AUX | SMOS | HPUX8 | HPUX9 | BSD | FREEBSD | SUN | XENIX | AVIION
+#if USG || AIX || AUX || SMOS || HPUX8 || HPUX9 || BSD || FREEBSD || SUN || XENIX || AVIION || OPENBSD
while (cp1!=&fname[0] && cp1[-1]!='/')
--cp1;
#endif
@@ -600,7 +600,7 @@
int sflag; /* are we safe saving? */
char tname[NSTRING]; /* temporary file name */
char buf[NSTRING]; /* message buffer */
-#if BSD | FREEBSD | SUN | XENIX | USG | AIX
+#if BSD || FREEBSD || SUN || XENIX || USG || AIX || OPENBSD
struct stat st; /* we need info about the file permisions */
#endif
@@ -680,14 +680,14 @@
strcat(buf, "s");
if (sflag) {
-#if BSD | FREEBSD | SUN | XENIX | USG | AIX
+#if BSD || FREEBSD || SUN || XENIX || USG || AIX || OPENBSD
/* get the permisions on the original file */
stat(fn, &st);
#endif
/* erase original file */
/* rename temporary file to original name */
if (unlink(fn) == 0 && rename(tname, fn) == 0) {
-#if BSD | FREEBSD | SUN | XENIX | USG | AIX
+#if BSD || FREEBSD || SUN || XENIX || USG || AIX || OPENBSD
chown(fn, (int)st.st_uid, (int)st.st_gid);
chmod(fn, (int)st.st_mode);
#else
diff -ur src.old/fileio.c src/fileio.c
--- src.old/fileio.c Sun Nov 19 03:09:22 1995
+++ src/fileio.c Tue Jun 9 23:37:40 1998
@@ -106,7 +106,7 @@
putc(26, ffp); /* add a ^Z at the end of the file */
#endif
-#if USG | AIX | AUX | SMOS | HPUX8 | HPUX9 | SUN | XENIX | BSD || FREEBSD | WMCS | VMS | (MSDOS & (LATTICE | MSC | TURBO | IC | ZTC)) | WINNT | OS2 | (TOS & MWC) | AVIION
+#if USG || AIX || AUX || SMOS || HPUX8 || HPUX9 || SUN || XENIX || BSD || FREEBSD || OPENBSD || WMCS || VMS || (MSDOS && (LATTICE || MSC || TURBO || IC || ZTC)) || WINNT || OS2 || (TOS && MWC) || AVIION
if (fclose(ffp) != FALSE) {
mlwrite(TEXT156);
/* "Error closing file" */
diff -ur src.old/input.c src/input.c
--- src.old/input.c Fri Dec 29 19:10:12 1995
+++ src/input.c Tue Jun 9 23:38:44 1998
@@ -47,7 +47,7 @@
#include "edef.h"
#include "elang.h"
-#if USG | AIX | AUX | BSD | FREEBSD | SUN | HPUX8 | HPUX9
+#if USG || AIX || AUX || BSD || FREEBSD || SUN || HPUX8 || HPUX9 || OPENBSD
#include <pwd.h>
extern struct passwd *getpwnam();
#endif
@@ -244,7 +244,7 @@
char *ptr; /* string pointer */
char user_name[NSTRING]; /* user name for directory */
static char buf[NSTRING];/* buffer to hold tentative name */
-#if USG | AIX | AUX | BSD | FREEBSD | SUN | HPUX8 | HPUX9
+#if USG || AIX || AUX || BSD || FREEBSD || SUN || HPUX8 || HPUX9 || OPENBSD
struct passwd *pwd; /* password structure */
#endif
@@ -353,7 +353,7 @@
--ttcol;
}
-#if USG | AIX | AUX | BSD | FREEBSD | SUN | HPUX8 | HPUX9
+#if USG || AIX || AUX || BSD || FREEBSD || SUN || HPUX8 || HPUX9 || OPENBSD
/* lookup someone else's home directory! */
if (user_name[0] != 0) {
pwd = getpwnam(user_name);
diff -ur src.old/keyboard.c src/keyboard.c
--- src.old/keyboard.c Sat Nov 18 16:36:58 1995
+++ src/keyboard.c Tue Jun 9 23:38:51 1998
@@ -224,7 +224,7 @@
#endif
#endif
-#if BSD || FREEBSD || USG || AIX || AUX || SMOS || HPUX8 || HPUX9 || SUN || XENIX || (AVVION || TERMIOS) || (VMS && SMG) || MPE
+#if BSD || FREEBSD || USG || AIX || AUX || SMOS || HPUX8 || HPUX9 || SUN || XENIX || (AVVION || TERMIOS) || (VMS && SMG) || MPE || OPENBSD
#define NKEYSEQ 300 /* Number of keymap entries */
diff -ur src.old/lock.c src/lock.c
--- src.old/lock.c Tue Jun 9 22:59:50 1998
+++ src/lock.c Tue Jun 9 23:33:21 1998
@@ -15,7 +15,7 @@
#include <sys/param.h>
#endif
-#if BSD || FREEBSD || WMCS || SUN || XENIX || HPUX8 || HPUX9 || AVIION || USG || AIX || AUX
+#if BSD || FREEBSD || WMCS || SUN || XENIX || HPUX8 || HPUX9 || AVIION || USG || AIX || AUX || OPENBSD
#include <sys/errno.h>
#if !(defined(BSD) && (BSD >= 199103))
extern int sys_nerr; /* number of system error messages defined */
@@ -165,7 +165,7 @@
strcpy(obuf, errstr);
strcat(obuf, " - ");
-#if BSD || FREEBSD || WMCS || SUN || XENIX || HPUX8 || HPUX9 || AVIION || USG || AIX || AUX
+#if BSD || FREEBSD || WMCS || SUN || XENIX || HPUX8 || HPUX9 || AVIION || USG || AIX || AUX || OPENBSD
if (errno < sys_nerr)
strcat(obuf, sys_errlist[errno]);
else
Only in src.old: lock.c.orig
diff -ur src.old/unix.c src/unix.c
--- src.old/unix.c Sat Nov 18 16:36:58 1995
+++ src/unix.c Tue Jun 9 23:34:23 1998
@@ -81,7 +81,7 @@
}
/** Only compile for UNIX machines **/
-#if BSD || FREEBSD || USG || AIX || AUX || SMOS || HPUX8 || HPUX9 || SUN || XENIX || (AVVION || TERMIOS)
+#if BSD || FREEBSD || USG || AIX || AUX || SMOS || HPUX8 || HPUX9 || SUN || XENIX || (AVVION || TERMIOS) || OPENBSD
/** Include files **/
#include "eproto.h" /* Function definitions */
@@ -98,7 +98,7 @@
#include <sys/ioctl.h> /* I/O control definitions */
/** Additional include files **/
-#if FREEBSD
+#if FREEBSD || OPENBSD
#define TERMIOS 1
#include <sys/time.h>
#undef BSD
@@ -109,9 +109,9 @@
#if (BSD && !TERMIOS)
#include <sys/time.h> /* Timer definitions */
#endif /* (BSD && !TERMIOS) */
-#if BSD || FREEBSD || SUN || HPUX8 || HPUX9 || (AVVION || TERMIOS) || AIX
+#if BSD || FREEBSD || SUN || HPUX8 || HPUX9 || (AVVION || TERMIOS) || AIX || OPENBSD
#include <signal.h> /* Signal definitions */
-#endif /* BSD || FREEBSD || SUN || HPUX8 || HPUX9 || (AVVION || TERMIOS) */
+#endif /* BSD || FREEBSD || SUN || HPUX8 || HPUX9 || (AVVION || TERMIOS) || OPENBSD */
#if USG || AIX || AUX || SMOS || HPUX8 || HPUX9 || SUN || XENIX
#include <termio.h> /* Terminal I/O definitions */
#endif /* USG || AIX || AUX || SMOS || HPUX8 || HPUX9 || SUN || XENIX */
@@ -126,7 +126,7 @@
/** Completion include files **/
/** Directory accessing: Try and figure this out... if you can! **/
-#if ((BSD || FREEBSD) && !TERMIOS)
+#if ((BSD || FREEBSD || OPENBSD) && !TERMIOS)
#include <sys/dir.h> /* Directory entry definitions */
#define DIRENTRY direct
#endif /* (BSD && !TERMIOS) */
@@ -485,7 +485,7 @@
/** Close terminal device **/
int ttclose()
{
-#if ((AIX == 0) && (TERMIOS == 0)) || (FREEBSD == 1)
+#if ((AIX == 0) && (TERMIOS == 0)) || FREEBSD || OPENBSD
/* Restore original terminal modes */
if (reset != (char*)NULL)
write(1, reset, strlen(reset));
@@ -1202,7 +1202,7 @@
return(0);
}
-#if BSD || FREEBSD || SUN || HPUX8 || HPUX9 || (AVVION || TERMIOS)
+#if BSD || FREEBSD || SUN || HPUX8 || HPUX9 || (AVVION || TERMIOS) || OPENBSD
/* Surely more than just BSD systems do this */
/** Perform a stop signal **/
@@ -1225,7 +1225,7 @@
return(0);
}
-#endif /* BSD || FREEBSD || SUN || HPUX8 || HPUX9 || (AVVION || TERMIOS) */
+#endif /* BSD || FREEBSD || SUN || HPUX8 || HPUX9 || (AVVION || TERMIOS) || OPENBSD */
/** Get time of day **/
char * timeset()
@@ -1327,9 +1327,9 @@
/* Get shell path */
sh = getenv("SHELL");
if (!sh)
-#if BSD || FREEBSD || SUN
+#if BSD || FREEBSD || SUN || OPENBSD
sh = "/bin/csh";
-#endif /* BSD || FREEBSD || SUN */
+#endif /* BSD || FREEBSD || SUN || OPENBSD */
#if USG || AIX || AUX || SMOS || HPUX8 || HPUX9 || XENIX || (AVVION || TERMIOS)
sh = "/bin/sh";
#endif /* USG || AIX || AUX || SMOS || HPUX8 || HPUX9 || XENIX || (AVVION || TERMIOS) */
@@ -1726,4 +1726,4 @@
}
#endif
-#endif /* BSD || FREEBSD || USG || AIX || AUX || SMOS || HPUX8 || HPUX9 || SUN || XENIX || (AVVION || TERMIOS) */
+#endif /* BSD || FREEBSD || USG || AIX || AUX || SMOS || HPUX8 || HPUX9 || SUN || XENIX || (AVVION || TERMIOS) || OPENBSD */

View File

@ -0,0 +1,33 @@
diff -ur h.old/ebind.h h/ebind.h
--- h.old/ebind.h Sun Dec 31 15:04:34 1995
+++ h/ebind.h Tue Jun 9 23:42:33 1998
@@ -93,7 +93,7 @@
{CTLX|'A', BINDFNC, setvar},
{CTLX|'B', BINDFNC, usebuffer},
{CTLX|'C', BINDFNC, spawncli},
-#if BSD || FREEBSD || VMS || SUN || HPUX8 || HPUX9 || AVIION
+#if BSD || FREEBSD || VMS || SUN || HPUX8 || HPUX9 || AVIION || OPENBSD
{CTLX|'D', BINDFNC, bktoshell},
#endif
{CTLX|'E', BINDFNC, ctlxe},
@@ -155,7 +155,7 @@
{META|'P', BINDFNC, gotobop},
{META|'Q', BINDFNC, fillpara},
{META|'R', BINDFNC, sreplace},
-#if BSD || FREEBSD || HPUX8 || HPUX9 || VMS || SUN || AVIION
+#if BSD || FREEBSD || HPUX8 || HPUX9 || VMS || SUN || AVIION || OPENBSD
{META|'S', BINDFNC, bktoshell},
#endif
{META|'U', BINDFNC, upperword},
diff -ur h.old/epath.h h/epath.h
--- h.old/epath.h Tue Jun 9 22:59:50 1998
+++ h/epath.h Tue Jun 9 23:42:57 1998
@@ -64,7 +64,7 @@
};
#endif
-#if V7 | BSD | FREEBSD | USG | AIX | SMOS | HPUX8 | HPUX9 | XENIX | SUN | AVIION
+#if V7 || BSD || FREEBSD || USG || AIX || SMOS || HPUX8 || HPUX9 || XENIX || SUN || AVIION || OPENBSD
{
".emacsrc",
"emacs.hlp",

View File

@ -0,0 +1 @@
A full screen editor.

17
editors/uemacs/pkg/DESCR Normal file
View File

@ -0,0 +1,17 @@
MicroEMACS is a tool for creating and changing documents,
programs, and other text files. It is both relatively easy for the
novice to use, but also very powerful in the hands of an expert.
MicroEMACS can be extensively customized for the needs of the individual
user.
MicroEMACS allows several files to be edited at the same time.
The screen can be split into different windows and screens, and text may
be moved freely from one window on any screen to the next. Depending on
the type of file being edited, MicroEMACS can change how it behaves to
make editing simple. Editing standard text files, program files and
word processing documents are all possible at the same time.
There are extensive capabilities to make word processing and
editing easier. These include commands for string searching and
replacing, paragraph reformatting and deleting, automatic word wrapping,
word move and deletes, easy case controlling, and automatic word counts.

22
editors/uemacs/pkg/PLIST Normal file
View File

@ -0,0 +1,22 @@
bin/uemacs
share/uemacs/.emacsrc
share/uemacs/bpage.cmd
share/uemacs/chklist.ms
share/uemacs/cpage.cmd
share/uemacs/cua.cmd
share/uemacs/dev.cmd
share/uemacs/ehelp.cmd
share/uemacs/ehelp1.txt
share/uemacs/ehelp2.txt
share/uemacs/epage.cmd
share/uemacs/error.cmd
share/uemacs/filter.cmd
share/uemacs/lpage.cmd
share/uemacs/mdi.cmd
share/uemacs/mewin.cmd
share/uemacs/newpage.cmd
share/uemacs/opage.cmd
share/uemacs/ppage.cmd
share/uemacs/shell.cmd
share/uemacs/wpage.cmd
@dirrm share/uemacs