[Midnightbsd-cvs] mports: mports/editors: add mg
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Fri Oct 12 18:49:16 EDT 2007
Log Message:
-----------
add mg
Modified Files:
--------------
mports/editors:
Makefile (r1.16 -> r1.17)
Added Files:
-----------
mports/editors/mg:
Makefile (r1.1)
distinfo (r1.1)
pkg-descr (r1.1)
pkg-plist (r1.1)
mports/editors/mg/files:
patch-Makefile (r1.1)
patch-def.h (r1.1)
patch-queue.h (r1.1)
patch-sysdef.h (r1.1)
tarignore (r1.1)
-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/editors/Makefile,v
retrieving revision 1.16
retrieving revision 1.17
diff -Leditors/Makefile -Leditors/Makefile -u -r1.16 -r1.17
--- editors/Makefile
+++ editors/Makefile
@@ -15,6 +15,7 @@
SUBDIR += joe2
SUBDIR += koffice-kde3
SUBDIR += manedit
+ SUBDIR += mg
SUBDIR += nano
SUBDIR += pico
SUBDIR += staroffice70
--- /dev/null
+++ editors/mg/pkg-descr
@@ -0,0 +1,15 @@
+Mg is a small, fast, portable, and free (public domain) Emacs-like
+editor maintained by the OpenBSD Project. It is intended for people
+who can't, or don't want to, run the real GNU Emacs, or are not
+familiar with the vi(1) editor.
+
+Although it is intended to be largely compatible with GNU Emacs, Mg
+doesn't have special modes for tasks other than editing plain text.
+Moreover, since it is written entirely in C, there is no language in
+which to write extensions in (read: no builtin Lisp interpreter).
+
+If you are looking for something that looks like Emacs (don't want to
+learn another editor) but don't have the resources to run the latter,
+this may be what you're looking for.
+
+Enjoy!
--- /dev/null
+++ editors/mg/pkg-plist
@@ -0,0 +1,4 @@
+bin/mg
+share/doc/mg/README
+share/doc/mg/tutorial
+ at dirrm share/doc/mg
--- /dev/null
+++ editors/mg/Makefile
@@ -0,0 +1,84 @@
+# New ports collection makefile for: mg
+# Date created: 14 May 2001
+# Whom: Dima Dorfman <dima at unixfreak.org>
+#
+# $MidnightBSD: mports/editors/mg/Makefile,v 1.1 2007/10/12 22:49:14 laffer1 Exp $
+# $FreeBSD: ports/editors/mg/Makefile,v 1.9 2006/11/19 12:28:48 miwi Exp $
+#
+
+PORTNAME= mg
+PORTVERSION= 20050820
+CATEGORIES= editors
+MASTER_SITES= ${MASTER_SITE_LOCAL}
+MASTER_SITE_SUBDIR= lawrance
+
+MAINTAINER= ports at MidnightBSD.org
+COMMENT= A small, fast Emacs-like editor
+
+MANSECTS= 1
+MAN1= mg.1
+MANCOMPRESSED= maybe
+
+# MAN page COMPression SUFFIX
+.if !defined(NOMANCOMPRESS)
+MANCOMPSUFFIX= .gz
+.else
+MANCOMPSUFFIX=
+.endif
+
+do-install:
+ @${INSTALL_PROGRAM} ${WRKSRC}/mg ${PREFIX}/bin/mg
+.for __s in ${MANSECTS}
+.for __m in ${MAN${__s}:S/$/${MANCOMPSUFFIX}/}
+ @${INSTALL_MAN} ${WRKSRC}/${__m} ${PREFIX}/man/man${__s}/${__m}
+.endfor
+.endfor
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${PREFIX}/share/doc/mg
+ @${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/tutorial \
+ ${PREFIX}/share/doc/mg
+.endif
+
+.include <bsd.port.pre.mk>
+
+#
+# Ports build/install stuff stops here. Tarball creation stuff begins here.
+#
+CVS_CMD?= cvs -z3
+CVS_DATE= Sat Aug 20 21:22:23 UTC 2005
+CVS_SITES?= anoncvs at anoncvs3.usa.openbsd.org:/cvs \
+ anoncvs at anoncvs1.ca.openbsd.org:/cvs
+CVS_MODULE= src/usr.bin/mg
+CVS_STRTONUM= src/lib/libc/stdlib/strtonum.c
+
+#
+# CVS checkout stuff mostly stolen from security/openssh-askpass port by
+# kris at freebsd.org
+#
+tarball:
+ @${MKDIR} ${DISTDIR}/${PKGNAME} && \
+ cd ${DISTDIR}/${PKGNAME}; \
+ for CVS_SITE in ${CVS_SITES}; do \
+ ${ECHO_MSG} ">> Attempting to check out from $${CVS_SITE}."; \
+ if ${CVS_CMD} -d $${CVS_SITE} co -D "${CVS_DATE}" \
+ ${CVS_MODULE} ${CVS_STRTONUM}; then \
+ cd ${DISTDIR}; \
+ ${ECHO_MSG} ">> Creating dist tarball in ${DISTDIR}"; \
+ ${ECHO_MSG} ">> \"${PKGNAME}.tar.gz\"."; \
+ ${MV} ${PKGNAME}/${CVS_MODULE} \
+ ${PKGNAME}/${CVS_MODULE:H}/${PKGNAME}; \
+ ${MV} ${PKGNAME}/${CVS_STRTONUM} \
+ ${PKGNAME}/${CVS_MODULE:H}/${PKGNAME}; \
+ ${TAR} -cz \
+ -X ${FILESDIR}/tarignore \
+ -f ${PKGNAME}.tar.gz \
+ -C ${PKGNAME}/${CVS_MODULE:H} \
+ ${PKGNAME}; \
+ exit; \
+ fi \
+ done; \
+ ${RMDIR} ${DISTDIR}/${PKGNAME}; \
+ ${ECHO_MSG} ">> CVS checkout failed."; \
+ exit 1;
+
+.include <bsd.port.post.mk>
--- /dev/null
+++ editors/mg/distinfo
@@ -0,0 +1,3 @@
+MD5 (mg-20050820.tar.gz) = b3083b7fa423f67ef0924277d9115cfb
+SHA256 (mg-20050820.tar.gz) = cc5d54822dacafbc263bb80c179fedc89d553f69b5a2dcb8fd33f2de20f75649
+SIZE (mg-20050820.tar.gz) = 117541
--- /dev/null
+++ editors/mg/files/tarignore
@@ -0,0 +1 @@
+CVS
--- /dev/null
+++ editors/mg/files/patch-sysdef.h
@@ -0,0 +1,11 @@
+diff -u -x _darcs -ur _darcs/current/sysdef.h ./sysdef.h
+--- _darcs/current/sysdef.h Tue Jun 14 20:14:40 2005
++++ ./sysdef.h Sun Aug 21 02:47:40 2005
+@@ -26,3 +26,7 @@
+ gid_t fi_gid;
+ mode_t fi_mode;
+ };
++
++#ifndef LOGIN_NAME_MAX
++#define LOGIN_NAME_MAX MAXLOGNAME
++#endif
--- /dev/null
+++ editors/mg/files/patch-Makefile
@@ -0,0 +1,10 @@
+diff -u -x _darcs -ur _darcs/current/Makefile ./Makefile
+--- _darcs/current/Makefile Thu Mar 10 19:27:47 2005
++++ ./Makefile Sun Aug 21 02:41:52 2005
+@@ -29,4 +29,6 @@
+ #
+ SRCS+= grep.c theo.c mail.c
+
++SRCS+= strtonum.c
++
+ .include <bsd.prog.mk>
--- /dev/null
+++ editors/mg/files/patch-queue.h
@@ -0,0 +1,4 @@
+--- /dev/null Sun Aug 21 03:44:00 2005
++++ queue.h Sun Aug 21 02:27:51 2005
+@@ -0,0 +1 @@
++#define LIST_END(head) NULL
--- /dev/null
+++ editors/mg/files/patch-def.h
@@ -0,0 +1,11 @@
+diff -u -x _darcs -ur _darcs/current/def.h ./def.h
+--- _darcs/current/def.h Tue Jun 14 20:14:40 2005
++++ ./def.h Sun Aug 21 02:30:50 2005
+@@ -3,6 +3,7 @@
+ /* This file is in the public domain. */
+
+ #include <sys/queue.h>
++#include "queue.h"
+
+ /*
+ * This file is the general header file for all parts
More information about the Midnightbsd-cvs
mailing list