Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 May 2001 22:09:18 -0700 (PDT)
From:      dima@unixfreak.org
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/27327: New port: a small, fast Emacs-like editor
Message-ID:  <200105150509.f4F59Iu41593@spike.unixfreak.org>

next in thread | raw e-mail | index | archive | help

>Number:         27327
>Category:       ports
>Synopsis:       New port: a small, fast Emacs-like editor
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 14 22:10:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Dima Dorfman
>Release:        FreeBSD 5.0-20010507-CURRENT i386
>Organization:
Private
>Environment:
System: FreeBSD spike.unixfreak.org 5.0-20010507-CURRENT FreeBSD 5.0-20010507-CURRENT #115: Sun May 13 13:59:44 PDT 2001 dima@spike.unixfreak.org:/c/home/dima/w/f/src/sys/compile/SPIKE i386

>Description:

New port of Mg.  From pkg-descr:

	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.

>How-To-Repeat:
>Fix:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	mg
#	mg/files
#	mg/files/tarignore
#	mg/pkg-plist
#	mg/pkg-descr
#	mg/pkg-comment
#	mg/distinfo
#	mg/Makefile
#
echo c - mg
mkdir -p mg > /dev/null 2>&1
echo c - mg/files
mkdir -p mg/files > /dev/null 2>&1
echo x - mg/files/tarignore
sed 's/^X//' >mg/files/tarignore << 'END-of-mg/files/tarignore'
XCVS
END-of-mg/files/tarignore
echo x - mg/pkg-plist
sed 's/^X//' >mg/pkg-plist << 'END-of-mg/pkg-plist'
Xbin/mg
Xshare/doc/mg/README
Xshare/doc/mg/tutorial
X@dirrm share/doc/mg
END-of-mg/pkg-plist
echo x - mg/pkg-descr
sed 's/^X//' >mg/pkg-descr << 'END-of-mg/pkg-descr'
XMg is a small, fast, portable, and free (public domain) Emacs-like
Xeditor maintained by the OpenBSD Project.  It is intended for people
Xwho can't, or don't want to, run the real GNU Emacs, or are not
Xfamiliar with the vi(1) editor.
X
XAlthough it is intended to be largely compatible with GNU Emacs, Mg
Xdoesn't have special modes for tasks other than editing plain text.
XMoreover, since it is written entirely in C, there is no language in
Xwhich to write extensions in (read: no builtin Lisp interpreter).
X
XIf you are looking for something that looks like Emacs (don't want to
Xlearn another editor) but don't have the resources to run the latter,
Xthis may be what you're looking for.
X
XEnjoy!
X
X					Dima Dorfman
X					dima@unixfreak.org
X					14 May 2001
END-of-mg/pkg-descr
echo x - mg/pkg-comment
sed 's/^X//' >mg/pkg-comment << 'END-of-mg/pkg-comment'
XA small, fast Emacs-like editor
END-of-mg/pkg-comment
echo x - mg/distinfo
sed 's/^X//' >mg/distinfo << 'END-of-mg/distinfo'
XMD5 (mg-20010514.tar.gz) = 36c7ef4af945ccedded2ca9e0635eb2a
END-of-mg/distinfo
echo x - mg/Makefile
sed 's/^X//' >mg/Makefile << 'END-of-mg/Makefile'
X# New ports collection makefile for:	mg
X# Date created:			14 May 2001
X# Whom:				Dima Dorfman <dima@unixfreak.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	mg
XPORTVERSION=	20010514
XCATEGORIES=	editors
XMASTER_SITES=	${MASTER_SITE_LOCAL} \
X		http://www.unixfreak.org/~dima/distfiles/
XMASTER_SITE_SUBDIR=	dd
X
XMAINTAINER=	dima@unixfreak.org
X
XMAN1=		mg.1
XMANCOMPRESSED=	maybe
X
X# This isn't very scalable, but I'm lazy..
X.if defined(NOMANCOMPRESS)
XMANNAME= mg.1
X.else
XMANNAME= mg.1.gz
X.endif
X
Xdo-install:
X	@${INSTALL_PROGRAM} ${WRKSRC}/mg ${PREFIX}/bin/mg
X	@${INSTALL_MAN} ${WRKSRC}/${MANNAME} ${PREFIX}/man/man1
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${PREFIX}/share/doc/mg
X	@${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/tutorial \
X		${PREFIX}/share/doc/mg
X.endif
X
X#
X# Ports build/install stuff stops here.  Tarball creation stuff begins here.
X#
X.include <bsd.port.pre.mk>
XCVS_CMD?=	cvs -z3
XCVS_DATE=	Mon May 14 17:41:46 PDT 2001
XCVS_SITES?=	anoncvs@anoncvs3.usa.openbsd.org:/cvs \
X		anoncvs@anoncvs1.ca.openbsd.org:/cvs
XCVS_MODULE=	src/usr.bin/mg
X
X#
X# CVS checkout stuff mostly stolen from security/openssh-askpass port by
X# kris@freebsd.org
X#
Xtarball:
X	@${MKDIR} ${DISTDIR}/${PKGNAME} && \
X	cd ${DISTDIR}/${PKGNAME}; \
X	for CVS_SITE in ${CVS_SITES}; do \
X		${ECHO_MSG} ">> Attempting to check out from $${CVS_SITE}."; \
X		if ${CVS_CMD} -d $${CVS_SITE} co -D "${CVS_DATE}" \
X		    ${CVS_MODULE}; then \
X			cd ${DISTDIR}; \
X			${ECHO_MSG} ">> Creating dist tarball in ${DISTDIR}"; \
X			${ECHO_MSG} ">> \"${PKGNAME}.tar.gz\"."; \
X			${MV} ${PKGNAME}/${CVS_MODULE} \
X				${PKGNAME}/${CVS_MODULE:H}/${PKGNAME}; \
X			${TAR} -cz \
X				-X ${FILESDIR}/tarignore \
X				-f ${PKGNAME}.tar.gz \
X				-C ${PKGNAME}/${CVS_MODULE:H} \
X				${PKGNAME}; \
X			exit; \
X		fi \
X	done; \
X	${RMDIR} ${DISTDIR}/${PKGNAME}; \
X	${ECHO_MSG} ">> CVS checkout failed."; \
X	exit 1;
X
X.include <bsd.port.post.mk>
END-of-mg/Makefile
exit

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105150509.f4F59Iu41593>