Skip site navigation (1)Skip section navigation (2)
Date:      18 Sep 1997 16:43:04 -0000
From:      vanilla@MinJe.com.TW
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   ports/4570: New ports ted 3.6a
Message-ID:  <19970918164304.12966.qmail@MinJe.com.TW>
Resent-Message-ID: <199709181650.JAA18669@hub.freebsd.org>

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

>Number:         4570
>Category:       ports
>Synopsis:       New ports ted3.6a
>Confidential:   yes
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 18 09:50:01 PDT 1997
>Last-Modified:
>Originator:     Vanill I. Shu
>Organization:
Cray running FreeBSD
>Release:        FreeBSD 3.0-CURRENT i386
>Environment:

>Description:

	Ted is small and powerful text editor for X,
	the interface is like PE2 on DOS

>How-To-Repeat:

>Fix:

diff -bcrNp ted.orig/Makefile ted/Makefile
*** ted.orig/Makefile	Thu Jan  1 08:00:00 1970
--- ted/Makefile	Fri Sep 19 00:32:43 1997
***************
*** 0 ****
--- 1,21 ----
+ # New ports collection makefile for:	ted
+ # Version required:	3.6a
+ # Date Created:		18 Sep 1997
+ # Whom:			Vanilla I. Shu <vanilla@MinJe.com.TW>
+ #
+ # $Id$
+ #
+ 
+ DISTNAME=	ted3.6a
+ PKGNAME=	ted-3.6a
+ CATEGORIES=	editors
+ MASTER_SITES=	ftp://moon.csie.ntu.edu.tw/pub/X/ted/ \
+ 		ftp://ftp.x.org/contrib/editors/
+ EXTRACT_SUFX=	.tgz
+ 
+ MAINTAINER=	vanilla@MinJe.com.TW
+ 
+ USE_X11=	yes
+ WRKSRC=		${WRKDIR}/ted
+ 
+ .include <bsd.port.mk>
diff -bcrNp ted.orig/files/md5 ted/files/md5
*** ted.orig/files/md5	Thu Jan  1 08:00:00 1970
--- ted/files/md5	Thu Sep 18 23:15:59 1997
***************
*** 0 ****
--- 1 ----
+ MD5 (ted3.6a.tgz) = 2914e6dc0e5b6c99bdf11ab724a679fa
diff -bcrNp ted.orig/patches/patch-aa ted/patches/patch-aa
*** ted.orig/patches/patch-aa	Thu Jan  1 08:00:00 1970
--- ted/patches/patch-aa	Fri Sep 19 00:40:51 1997
***************
*** 0 ****
--- 1,80 ----
+ *** Makefile.orig	Mon Sep 15 08:40:56 1997
+ --- Makefile	Fri Sep 19 00:40:45 1997
+ ***************
+ *** 1,5 ****
+   CHINESE=0
+ ! TEDDIR=/usr/local/lib/Ted
+   ########## GCC/Linux ......  ############
+   CC=gcc
+   CComp=GCC
+ --- 1,5 ----
+   CHINESE=0
+ ! TEDDIR=/usr/X11R6/lib/X11/ted
+   ########## GCC/Linux ......  ############
+   CC=gcc
+   CComp=GCC
+ *************** LDFLAGS= -L/usr/X11R6/lib
+ *** 20,39 ****
+   #LDFLAGS= -L/usr/lib/X11
+   ###########################
+   ########## Solaris ############
+ ! CC=gcc
+ ! CComp=GCC
+ ! XINC=/usr/X11R6.3/include
+ ! LDFLAGS= -L/usr/X11R6/lib -lsocket
+ ! SUNKBD=-DSUNKBD
+   ###########################
+   
+   #CFLAGS = -g -DCHINESE=$(CHINESE) -I$(XINC) -DCComp=$(CComp) -DDEBUG $(SUNKBD)
+ ! CFLAGS = -O -DCHINESE=$(CHINESE) -I$(XINC) -DCComp=$(CComp) $(SUNKBD)
+   
+   OBJS =	e.o x.o m.o f.o b.o edln.o xcp.o s.o u.o misc.o twin.o dir.o xkey.o \
+   	cwin.o filebrowse.o kwcomp.o
+   
+ ! all:	ted ref ctags
+   ted:	$(OBJS)
+   	$(CC) $(OBJS) -o $@ $(LDFLAGS) -lX11
+   	strip $@
+ --- 20,39 ----
+   #LDFLAGS= -L/usr/lib/X11
+   ###########################
+   ########## Solaris ############
+ ! #CC=gcc
+ ! #CComp=GCC
+ ! #XINC=/usr/X11R6.3/include
+ ! #LDFLAGS= -L/usr/X11R6/lib -lsocket
+ ! #SUNKBD=-DSUNKBD
+   ###########################
+   
+   #CFLAGS = -g -DCHINESE=$(CHINESE) -I$(XINC) -DCComp=$(CComp) -DDEBUG $(SUNKBD)
+ ! CFLAGS += -DCHINESE=$(CHINESE) -I$(XINC) -DCComp=$(CComp) $(SUNKBD)
+   
+   OBJS =	e.o x.o m.o f.o b.o edln.o xcp.o s.o u.o misc.o twin.o dir.o xkey.o \
+   	cwin.o filebrowse.o kwcomp.o
+   
+ ! all:	ted #ref ctags
+   ted:	$(OBJS)
+   	$(CC) $(OBJS) -o $@ $(LDFLAGS) -lX11
+   	strip $@
+ *************** ctags:
+ *** 45,53 ****
+   	$(CC) $(CFLAGS) ctags.c -o $@
+   	strip $@
+   install:
+ ! 	cp ted ref ctags /usr/local/bin
+   	if [ ! -d $(TEDDIR) ]; then mkdir $(TEDDIR); fi
+ ! 	cp tedrc ted.help $(TEDDIR)
+   cli_xcin.o:
+   	ln -s ../big5-pack/xcin/cli_xcin.o .
+   clean:
+ --- 45,54 ----
+   	$(CC) $(CFLAGS) ctags.c -o $@
+   	strip $@
+   install:
+ ! 	install -c -s -o root -g wheel -m 0755 ted /usr/X11R6/bin
+   	if [ ! -d $(TEDDIR) ]; then mkdir $(TEDDIR); fi
+ ! 	install -c -o root -g wheel -m 0555 tedrc $(TEDDIR)
+ ! 	install -c -o root -g wheel -m 0555 ted.help $(TEDDIR)
+   cli_xcin.o:
+   	ln -s ../big5-pack/xcin/cli_xcin.o .
+   clean:
diff -bcrNp ted.orig/patches/patch-ab ted/patches/patch-ab
*** ted.orig/patches/patch-ab	Thu Jan  1 08:00:00 1970
--- ted/patches/patch-ab	Thu Sep 18 23:23:54 1997
***************
*** 0 ****
--- 1,19 ----
+ *** xkey.c.orig	Thu Sep 18 23:23:06 1997
+ --- xkey.c	Thu Sep 18 23:23:45 1997
+ *************** if (cdtedrc && (fp=fopen(ftedrc,"r"))) {
+ *** 563,569 ****
+   if (fp=fopen(
+   	strcat(strcat(strcpy(tt,(char *)getenv("HOME")),"/.Ted/"),ftedrc), "r"
+   )) 	return fp;
+ ! if (fp=fopen(strcat(strcpy(uu,"/usr/local/lib/Ted/"),ftedrc),"r"))
+   	return fp;
+   if (!depth) {
+   	if (cdtedrc)
+ --- 563,569 ----
+   if (fp=fopen(
+   	strcat(strcat(strcpy(tt,(char *)getenv("HOME")),"/.Ted/"),ftedrc), "r"
+   )) 	return fp;
+ ! if (fp=fopen(strcat(strcpy(uu,"/usr/X11R6/lib/X11/ted/"),ftedrc),"r"))
+   	return fp;
+   if (!depth) {
+   	if (cdtedrc)
diff -bcrNp ted.orig/patches/patch-ac ted/patches/patch-ac
*** ted.orig/patches/patch-ac	Thu Jan  1 08:00:00 1970
--- ted/patches/patch-ac	Thu Sep 18 23:24:55 1997
***************
*** 0 ****
--- 1,21 ----
+ *** tedrc.orig	Thu Sep 18 23:24:10 1997
+ --- tedrc	Thu Sep 18 23:24:39 1997
+ *************** f [a-f12]	MergeTedrc("localtedrc")
+ *** 153,160 ****
+   f [s-f9]	ExeCmdFnameExt("make",".o")
+   ##		If the file is already open, switch to this file; otherwise
+   ##		load the file
+ ! f [f1]		RaiseOrLoad("/usr/local/lib/Ted/ted.help")
+ ! f [c-a][f1]	RaiseOrLoad("/usr/local/lib/Ted/tedrc")
+   ## execute command and place the output in the current file
+   #f [c-q][s]	InsPipe("ls")
+   # Excute command and and place output in a new file with name same as the command
+ --- 153,160 ----
+   f [s-f9]	ExeCmdFnameExt("make",".o")
+   ##		If the file is already open, switch to this file; otherwise
+   ##		load the file
+ ! f [f1]		RaiseOrLoad("/usr/X11R6/lib/X11/ted/ted.help")
+ ! f [c-a][f1]	RaiseOrLoad("/usr/X11R6/lib/X11/ted/tedrc")
+   ## execute command and place the output in the current file
+   #f [c-q][s]	InsPipe("ls")
+   # Excute command and and place output in a new file with name same as the command
diff -bcrNp ted.orig/pkg/COMMENT ted/pkg/COMMENT
*** ted.orig/pkg/COMMENT	Thu Jan  1 08:00:00 1970
--- ted/pkg/COMMENT	Thu Sep 18 23:26:36 1997
***************
*** 0 ****
--- 1 ----
+ A Small and Powerful Text Editor for X Window
diff -bcrNp ted.orig/pkg/DESCR ted/pkg/DESCR
*** ted.orig/pkg/DESCR	Thu Jan  1 08:00:00 1970
--- ted/pkg/DESCR	Fri Sep 19 00:02:04 1997
***************
*** 0 ****
--- 1,5 ----
+ Ted is a small and powerful Text editor for X Window,
+ the interface is like PE2 on DOS
+ 
+ - Vanilla
+ vanilla@MinJe.com.TW
diff -bcrNp ted.orig/pkg/PLIST ted/pkg/PLIST
*** ted.orig/pkg/PLIST	Thu Jan  1 08:00:00 1970
--- ted/pkg/PLIST	Thu Sep 18 23:32:06 1997
***************
*** 0 ****
--- 1,4 ----
+ bin/ted
+ lib/X11/ted/ted.help
+ lib/X11/ted/tedrc
+ @dirrm lib/X11/ted
>Audit-Trail:
>Unformatted:



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