ports/77565: New port: editors/teco The old powerful and compact text editor
Stanislav Sedov
stas at core.310.ru
Tue Feb 15 17:40:19 UTC 2005
>Number: 77565
>Category: ports
>Synopsis: New port: editors/teco The old powerful and compact text editor
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Tue Feb 15 17:40:19 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Stanislav Sedov
>Release: FreeBSD 4.10-STABLE i386
>Organization:
>Environment:
System: FreeBSD core.310.ru 4.10-STABLE FreeBSD 4.10-STABLE #0: Mon Jan 10 18:59:43 MSK 2005 root at core.310.ru:/work/src/fbsd/src/sys/compile/DESKTOP i386
>Description:
A powerful and compact editor with completely nongrafical \
user interface.
>How-To-Repeat:
>Fix:
--- teco.shar begins here ---
# 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:
#
# teco
# teco/Makefile
# teco/distinfo
# teco/pkg-descr
# teco/pkg-plist
# teco/pkg-message
# teco/files
# teco/files/patch-makefile
# teco/files/patch-zlinux
#
echo c - teco
mkdir -p teco > /dev/null 2>&1
echo x - teco/Makefile
sed 's/^X//' >teco/Makefile << 'END-of-teco/Makefile'
XPORTNAME= teco
XPORTVERSION= 0398
XCATEGORIES= editors
XMASTER_SITES= http://almy.us/files/
X
XDISTFILES+= tecoclinux${PORTVERSION}.tar.gz
XDISTNAME= tecoc${PORTVERSION}
X
XMAINTAINER= stas at core.310.ru
XCOMMENT= A powerful and compact editor with completely nongrafical \
X user interface.
X
X#NOMAN= yes
XMAKEFILE= makefile
XBUILD_WRKSRC= ${WRKSRC}/src
XALL_TARGET=
X
XDOCSFILES= src/readme.1st src/readme.lnx src/changes.txt src/aaout.txt \
X src/problems.txt src/video.txt doc/teco.doc doc/wchart.txt
XMAKEFILE= makefile
XBUILD_WRKSRC= ${WRKSRC}/src
XALL_TARGET=
X
Xdo-install:
X @${MKDIR} ${DATADIR}
X ${INSTALL_PROGRAM} ${WRKSRC}/src/tecoc ${PREFIX}/bin
X ${INSTALL_DATA} ${WRKSRC}/lib/* ${DATADIR}
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X @${MKDIR} ${DOCSDIR}
X.for FILE in ${DOCSFILES}
X @${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
X.endfor
X.endif
X @${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-teco/Makefile
echo x - teco/distinfo
sed 's/^X//' >teco/distinfo << 'END-of-teco/distinfo'
XMD5 (tecoclinux0398.tar.gz) = 4667649cd858d8b1acc60024e38a7d70
END-of-teco/distinfo
echo x - teco/pkg-descr
sed 's/^X//' >teco/pkg-descr << 'END-of-teco/pkg-descr'
X TECO is the grand old text editor. It is powerful and compact
Xprecursor to EMACS and has a completely nongraphical user interface.
XIt is very fast (probably the fastes editor in the world) and have a
Xmacro language. TECO was written by Dan Murphy (http://www.opost.com/dlm)
Xat Digital Equipment Corporation in 1962. This is based on Pete Siemsen's
XTECOC implementation, and comes with a copy of the originals DECUS TECO
Xdocumentation.
X
XWWW: http://almy.us/teco.html
END-of-teco/pkg-descr
echo x - teco/pkg-plist
sed 's/^X//' >teco/pkg-plist << 'END-of-teco/pkg-plist'
Xbin/tecoc
X%%DATADIR%%/upcase.tec
X%%DATADIR%%/change.tes
X%%DATADIR%%/date.tes
X%%DATADIR%%/detab.tes
X%%DATADIR%%/dir.tes
X%%DATADIR%%/makprnt.tes
X%%DATADIR%%/squ.tes
X%%DATADIR%%/unsqu.tes
X%%DATADIR%%/change.tec
X%%DATADIR%%/checkqr.tec
X%%DATADIR%%/date.tec
X%%DATADIR%%/detab.tec
X%%DATADIR%%/dir.tec
X%%DATADIR%%/lowcase.tec
X%%DATADIR%%/makprnt.tec
X%%DATADIR%%/squ.tec
X%%DATADIR%%/sub.tec
X%%DATADIR%%/tstbsl.tec
X%%DATADIR%%/tstcss.tec
X%%DATADIR%%/tstequ.tec
X%%DATADIR%%/tsto.tec
X%%DATADIR%%/tstqr.tec
X%%DATADIR%%/tstsrc.tec
X%%DATADIR%%/tst.tec
X%%DATADIR%%/unsqu.tec
X%%PORTDOCS%%%%DOCSDIR%%/readme.1st
X%%PORTDOCS%%%%DOCSDIR%%/readme.lnx
X%%PORTDOCS%%%%DOCSDIR%%/changes.txt
X%%PORTDOCS%%%%DOCSDIR%%/aaout.txt
X%%PORTDOCS%%%%DOCSDIR%%/problems.txt
X%%PORTDOCS%%%%DOCSDIR%%/video.txt
X%%PORTDOCS%%%%DOCSDIR%%/teco.doc
X%%PORTDOCS%%%%DOCSDIR%%/wchart.txt
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
X at dirrm %%DATADIR%%
END-of-teco/pkg-plist
echo x - teco/pkg-message
sed 's/^X//' >teco/pkg-message << 'END-of-teco/pkg-message'
X=============================================================================
X
X Teco takes a first argument of mung, teco or make to control its
Xoperating mode. Also the name of the executable is tested to provide this
Xfirst argument. The mapping is:
X teco - tecoc teco
X Make - tecoc make
X mung - tecoc mung
X inspect - tecoc teco -inspect
X
XYou can create symlinks for this to work.
X
X=============================================================================
END-of-teco/pkg-message
echo c - teco/files
mkdir -p teco/files > /dev/null 2>&1
echo x - teco/files/patch-makefile
sed 's/^X//' >teco/files/patch-makefile << 'END-of-teco/files/patch-makefile'
X--- src/makefile.orig Fri May 21 18:26:06 2004
X+++ src/makefile Tue Feb 15 03:20:32 2005
X@@ -23,11 +23,11 @@
X # COMPILE.c macro so it doesn't stick in the -target option, which gcc
X # doesn't understand.
X
X-CC= gcc
X #CFLAGS= ${OSVERS} ${DEBG} ${CCHEK} -O -Wall -Wshadow -Wpointer-arith -Wcast-qual -DLINUX
X-CFLAGS= ${OSVERS} ${DEBG} ${CCHEK} -O -DLINUX
X+CFLAGS+= -O -DLINUX
X #TERMOBJS = -ltermcap
X-COMPILE.c = $(CC) $(CFLAGS) $(CPPFLAGS) -c -g
X+COMPILE.c = $(CC) $(CFLAGS) $(CPPFLAGS) -c
X+LINK.c = $(CC) $(LDFLAGS)
X
X #############################################################################
X
X@@ -56,7 +56,7 @@
X tecoc.o: tecoc.c zport.h tecoc.h deferr.h dchars.h chmacs.h
X
X clpars.h: genclp clpars.tec
X- genclp
X+ ./genclp
X
X genclp: genclp.o
X ${LINK.c} -o $@ genclp.o
END-of-teco/files/patch-makefile
echo x - teco/files/patch-zlinux
sed 's/^X//' >teco/files/patch-zlinux << 'END-of-teco/files/patch-zlinux'
X--- src/zlinux.c.orig Tue Feb 15 20:15:29 2005
X+++ src/zlinux.c Tue Feb 15 20:22:42 2005
X@@ -10,7 +10,6 @@
X
X #include <sys/types.h> /* needed before sys/param.h is included */
X #include <errno.h> /* define errno */
X-#include <malloc.h> /* malloc() and realloc() */
X #include <signal.h> /* to catch ^C and ^Z signals */
X #include <stdio.h> /* define stdin */
X #include <string.h> /* strncpy(), strlen(), etc. */
X@@ -50,8 +49,6 @@
X
X static int vernum(); /* see bottom of this file */
X
X-extern int sys_nerr; /* number of system error messages */
X-
X static int SupGotCtC = 0;
X
X static glob_t pglob;
X@@ -1057,9 +1054,9 @@
X * execute imbedded command line-parsing macro directly from clpars[]
X */
X
X- CStBeg = clpars; /* command string start */
X- CBfPtr = clpars; /* command string start */
X- CStEnd = clpars + CLPARS_LEN; /* command string end */
X+ CStBeg = (charptr)clpars; /* command string start */
X+ CBfPtr = (charptr)clpars; /* command string start */
X+ CStEnd = (charptr)((unsigned int)clpars + CLPARS_LEN); /* command string end */
X EStTop = EStBot; /* clear expression stack */
X ExeCSt(); /* execute command string */
X
END-of-teco/files/patch-zlinux
exit
--- teco.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list