From 26b3f56cd0984e9bc1cf7030c1ad85dfdba41d70 Mon Sep 17 00:00:00 2001 From: abs Date: Fri, 13 Feb 2009 11:04:14 +0000 Subject: Added editors/mg version 20090107 This is the portable version of the OpenBSD mg editor Mg (mg) is a Public Domain EMACS style editor. It is "broadly" compatible with GNU Emacs, the latest creation of Richard M. Stallman, Chief GNUisance and inventor of Emacs. GNU Emacs (and other portions of GNU as they are released) are essentially free, (there are handling charges for obtaining it) and so is Mg. You may never have to learn another editor. (But probably will, at least long enough to port Mg...) Mg was formerly named MicroGnuEmacs, the name change was done at the request of Richard Stallman. Mg is not associated with the GNU project, and most of it does not have the copyright restrictions present in GNU Emacs. (However, some of the system dependent modules and the regular expression module do have copyright notices. Look at the source code for exact copyright restrictions.) The Mg authors individually may or may not agree with the opinions expressed by Richard Stallman in "The GNU Manifesto". This program is intended to be a small, fast, and portable editor for people who can't (or don't want to) run real Emacs for one reason or another. It is compatible with GNU because there shouldn't be any reason to learn more than one Emacs flavor. --- editors/mg/patches/patch-aa | 19 +++++++++++++++++++ editors/mg/patches/patch-ab | 12 ++++++++++++ editors/mg/patches/patch-ac | 12 ++++++++++++ editors/mg/patches/patch-ad | 13 +++++++++++++ editors/mg/patches/patch-ae | 15 +++++++++++++++ editors/mg/patches/patch-af | 30 ++++++++++++++++++++++++++++++ editors/mg/patches/patch-ag | 22 ++++++++++++++++++++++ 7 files changed, 123 insertions(+) create mode 100644 editors/mg/patches/patch-aa create mode 100644 editors/mg/patches/patch-ab create mode 100644 editors/mg/patches/patch-ac create mode 100644 editors/mg/patches/patch-ad create mode 100644 editors/mg/patches/patch-ae create mode 100644 editors/mg/patches/patch-af create mode 100644 editors/mg/patches/patch-ag (limited to 'editors/mg/patches') diff --git a/editors/mg/patches/patch-aa b/editors/mg/patches/patch-aa new file mode 100644 index 00000000000..3a814c4fa37 --- /dev/null +++ b/editors/mg/patches/patch-aa @@ -0,0 +1,19 @@ +$NetBSD: patch-aa,v 1.1.1.1 2009/02/13 11:04:14 abs Exp $ + +--- dired.c.orig 2008-12-30 12:40:28.000000000 +0000 ++++ dired.c +@@ -570,11 +570,11 @@ d_makename(struct line *lp, char *fn, si + ep = lp->l_text + llength(lp); + p++; /* skip action letter, if any */ + for (i = 0; i < NAME_FIELD; i++) { +- while (p < ep && isspace(*p)) ++ while (p < ep && isspace((unsigned char)*p)) + p++; +- while (p < ep && !isspace(*p)) ++ while (p < ep && !isspace((unsigned char)*p)) + p++; +- while (p < ep && isspace(*p)) ++ while (p < ep && isspace((unsigned char)*p)) + p++; + if (p == ep) + return (ABORT); diff --git a/editors/mg/patches/patch-ab b/editors/mg/patches/patch-ab new file mode 100644 index 00000000000..4b4b82acc04 --- /dev/null +++ b/editors/mg/patches/patch-ab @@ -0,0 +1,12 @@ +$NetBSD: patch-ab,v 1.1.1.1 2009/02/13 11:04:14 abs Exp $ + +--- sysdef.h.orig 2008-12-11 09:38:10.000000000 +0000 ++++ sysdef.h +@@ -31,6 +31,7 @@ + #include + #include + #include ++#include + + + #define KBLOCK 8192 /* Kill grow. */ diff --git a/editors/mg/patches/patch-ac b/editors/mg/patches/patch-ac new file mode 100644 index 00000000000..146ac0593ea --- /dev/null +++ b/editors/mg/patches/patch-ac @@ -0,0 +1,12 @@ +$NetBSD: patch-ac,v 1.1.1.1 2009/02/13 11:04:14 abs Exp $ + +--- configure.orig 2008-12-12 08:40:04.000000000 +0000 ++++ configure +@@ -187,6 +187,7 @@ if [ ! -r /usr/include/term.h ]; then + exit 1 + } + fi ++ add_inc NCURSES + fi + + note 'base and dirname' diff --git a/editors/mg/patches/patch-ad b/editors/mg/patches/patch-ad new file mode 100644 index 00000000000..2535d444e7b --- /dev/null +++ b/editors/mg/patches/patch-ad @@ -0,0 +1,13 @@ +$NetBSD: patch-ad,v 1.1.1.1 2009/02/13 11:04:14 abs Exp $ + +--- extend.c.orig 2007-01-12 17:24:48.000000000 +0000 ++++ extend.c +@@ -445,7 +445,7 @@ dobindkey(KEYMAP *map, const char *func, + for (i = 0; *str && i < MAXKEY; i++) { + /* XXX - convert numbers w/ strol()? */ + if (*str == '^' && *(str + 1) != '\0') { +- key.k_chars[i] = CCHR(toupper(*++str)); ++ key.k_chars[i] = CCHR(toupper((unsigned char)*++str)); + } else if (*str == '\\' && *(str + 1) != '\0') { + switch (*++str) { + case '^': diff --git a/editors/mg/patches/patch-ae b/editors/mg/patches/patch-ae new file mode 100644 index 00000000000..45e3e41c620 --- /dev/null +++ b/editors/mg/patches/patch-ae @@ -0,0 +1,15 @@ +$NetBSD: patch-ae,v 1.1.1.1 2009/02/13 11:04:14 abs Exp $ + +--- ttydef.h.orig 2006-04-27 03:28:14.000000000 +0100 ++++ ttydef.h +@@ -10,7 +10,9 @@ + * enough for windowing systems. + */ + +-#define STANDOUT_GLITCH /* possible standout glitch */ ++#ifdef NCURSES ++# define STANDOUT_GLITCH /* possible standout glitch */ ++#endif + #define TERMCAP /* for possible use in ttyio.c */ + + #ifdef undef diff --git a/editors/mg/patches/patch-af b/editors/mg/patches/patch-af new file mode 100644 index 00000000000..95f66c240ab --- /dev/null +++ b/editors/mg/patches/patch-af @@ -0,0 +1,30 @@ +$NetBSD: patch-af,v 1.1.1.1 2009/02/13 11:04:14 abs Exp $ + +--- grep.c.orig 2008-12-30 12:39:43.000000000 +0000 ++++ grep.c +@@ -152,7 +152,7 @@ gid(int f, int n) + /* Skip backwards over delimiters we are currently on */ + while (i > 0) { + c = lgetc(curwp->w_dotp, i); +- if (isalnum(c) || c == '_') ++ if (isalnum((unsigned char)c) || c == '_') + break; + + i--; +@@ -161,14 +161,14 @@ gid(int f, int n) + /* Skip the symbol itself */ + for (; i > 0; i--) { + c = lgetc(curwp->w_dotp, i - 1); +- if (!isalnum(c) && c != '_') ++ if (!isalnum((unsigned char)c) && c != '_') + break; + } + /* Fill the symbol in cprompt[] */ + for (j = 0; j < sizeof(cprompt) - 1 && i < llength(curwp->w_dotp); + j++, i++) { + c = lgetc(curwp->w_dotp, i); +- if (!isalnum(c) && c != '_') ++ if (!isalnum((unsigned char)c) && c != '_') + break; + cprompt[j] = c; + } diff --git a/editors/mg/patches/patch-ag b/editors/mg/patches/patch-ag new file mode 100644 index 00000000000..a44fb42b6de --- /dev/null +++ b/editors/mg/patches/patch-ag @@ -0,0 +1,22 @@ +$NetBSD: patch-ag,v 1.1.1.1 2009/02/13 11:04:14 abs Exp $ + +--- Makefile.in.orig 2008-12-11 09:11:05.000000000 +0000 ++++ Makefile.in +@@ -7,7 +7,7 @@ + + name= mg + +-prefix= /usr/local ++prefix?= /usr/local + bindir= $(prefix)/bin + libdir= $(prefix)/lib + includedir= $(prefix)/include +@@ -17,7 +17,7 @@ mandir= $(prefix)/man + CC= gcc + CFLAGS?= -O2 -pipe + CFLAGS+= -g -Wall -Werror +-LDFLAGS= -lncurses ++LDFLAGS+= -lncurses + + INSTALL= /usr/bin/install + STRIP= /usr/bin/strip -- cgit v1.2.3