mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
- Pass maintainershipt to submitter
- Use TCL/TK 8.4 PR: 110313 Submitted by: Martin Tournoij <carpetsmoker@xs4all.nl>
This commit is contained in:
parent
df18a25543
commit
57a18f1763
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=187812
@ -7,19 +7,29 @@
|
||||
|
||||
PORTNAME= e93
|
||||
PORTVERSION= 1.3.4
|
||||
CATEGORIES= editors tcl82 tk82
|
||||
MASTER_SITES= ftp://ftp.e93.org/pub/
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= editors tcl84 tk84
|
||||
MASTER_SITES= ftp://ftp.e93.org/pub/ \
|
||||
http://www.crpetsmoker.net/distfiles/ \
|
||||
http://www.xs4all.nl/~tournoij/distfiles/
|
||||
DISTNAME= ${PORTNAME}-1.3r4X
|
||||
EXTRACT_SUFX= .tgz
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
MAINTAINER= carpetsmoker@xs4all.nl
|
||||
COMMENT= A nifty editor based on Tcl/Tk
|
||||
|
||||
LIB_DEPENDS= tcl82.1:${PORTSDIR}/lang/tcl82 \
|
||||
tk82.1:${PORTSDIR}/x11-toolkits/tk82
|
||||
|
||||
USE_TCL= yes
|
||||
USE_TCL_BUILD= yes
|
||||
USE_TK= yes
|
||||
USE_TK_BUILD= yes
|
||||
USE_XLIB= yes
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} 's|wish|wish${TK_VER}|' ${WRKSRC}/e93r
|
||||
@${REINPLACE_CMD} 's|CFLAGS=|CFLAGS+=$$(TK_INCLUDE) -I${LOCALBASE}/include |' \
|
||||
${WRKSRC}/Makefile ${WRKSRC}/xgui/Makefile
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/e93 ${PREFIX}/bin
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/e93r ${PREFIX}/bin
|
||||
|
@ -1,11 +0,0 @@
|
||||
--- Makefile.orig Sun Sep 24 18:33:49 2000
|
||||
+++ Makefile Sun Sep 24 18:34:49 2000
|
||||
@@ -21,7 +21,7 @@
|
||||
# Include machine/platform specific information
|
||||
include machdef.mk
|
||||
|
||||
-CFLAGS=-I. $(TCL_INCLUDE) $(X_INCLUDE) $(OPTIONS) $(MACHINESPEC)
|
||||
+CFLAGS+=-I. $(TCL_INCLUDE) ${TK_INCLUDE} $(X_INCLUDE) $(OPTIONS) $(MACHINESPEC)
|
||||
|
||||
OBJECTS = \
|
||||
e93.o \
|
@ -1,11 +0,0 @@
|
||||
--- xgui/Makefile.orig Sun Sep 24 23:32:13 2000
|
||||
+++ xgui/Makefile Sun Sep 24 23:32:30 2000
|
||||
@@ -17,7 +17,7 @@
|
||||
# Include machine/platform specific information into the build
|
||||
include ../machdef.mk
|
||||
|
||||
-CFLAGS=-I. $(TCL_INCLUDE) $(X_INCLUDE) $(OPTIONS) $(MACHINESPEC) -DPREFIX=\"$(PREFIX)\"
|
||||
+CFLAGS+=-I. $(TCL_INCLUDE) $(TK_INCLUDE) $(X_INCLUDE) $(OPTIONS) $(MACHINESPEC) -DPREFIX=\"$(PREFIX)\"
|
||||
|
||||
OBJECTS = \
|
||||
globals.o \
|
@ -1,11 +0,0 @@
|
||||
--- e93r.orig Fri Sep 29 03:29:30 2000
|
||||
+++ e93r Fri Sep 29 03:33:59 2000
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
# NOTE: you may have to adjust the wish to e.g. /usr/local/bin/wish8.3
|
||||
# restart using wish \
|
||||
-exec wish "$0" "$@"
|
||||
+exec wish8.2 "$0" "$@"
|
||||
|
||||
# check presence of another e93
|
||||
set e93present ""
|
@ -1,20 +0,0 @@
|
||||
--- ./channels.c.orig Sat May 29 12:01:41 2004
|
||||
+++ ./channels.c Wed Dec 20 14:35:21 2006
|
||||
@@ -54,7 +54,7 @@
|
||||
return(TCL_OK); // nothing for us to do, but this proc must exist
|
||||
}
|
||||
|
||||
-static int StdoutOutputProc(ClientData clientData,const char *buf,int charsToWrite,int *errorCode)
|
||||
+static int StdoutOutputProc(ClientData clientData,char *buf,int charsToWrite,int *errorCode)
|
||||
// Writes the given output on the IO channel. Returns count of how
|
||||
// many characters were actually written, and an error indication.
|
||||
{
|
||||
@@ -76,7 +76,7 @@
|
||||
return(charsWritten);
|
||||
}
|
||||
|
||||
-static int StderrOutputProc(ClientData clientData,const char *buf,int charsToWrite,int *errorCode)
|
||||
+static int StderrOutputProc(ClientData clientData,char *buf,int charsToWrite,int *errorCode)
|
||||
// Writes the given output on the IO channel. Returns count of how
|
||||
// many characters were actually written, and an error indication.
|
||||
{
|
@ -11,12 +11,12 @@
|
||||
# files are located elsewhere on your system:
|
||||
-TCL_INCLUDE=-I/usr/local/include
|
||||
-TCL_LIB=-L/usr/local/lib
|
||||
+TCL_INCLUDE=-I${LOCALBASE}/include/tcl8.2
|
||||
+TCL_INCLUDE=-I${LOCALBASE}/include/tcl8.4
|
||||
+TCL_LIB=-L${LOCALBASE}/lib
|
||||
# uncomment and change if you want to link with specific versions of Tcl/Tk
|
||||
-#TCL_VERSION=8.3
|
||||
+TCL_VERSION=82
|
||||
+TK_INCLUDE=-I${LOCALBASE}/include/tk8.2
|
||||
+TCL_VERSION=84
|
||||
+TK_INCLUDE=-I${LOCALBASE}/include/tk8.4
|
||||
|
||||
|
||||
# The following lines may need to be altered if the X include and library
|
@ -1,11 +0,0 @@
|
||||
--- ./shell.c.orig Mon May 31 19:37:29 2004
|
||||
+++ ./shell.c Wed Dec 20 14:24:36 2006
|
||||
@@ -935,7 +935,7 @@
|
||||
return(TCL_ERROR);
|
||||
}
|
||||
|
||||
-static void TraceCheckAbortProc(ClientData theClientData,Tcl_Interp *theInterpreter,int theLevel,char *theCommand,Tcl_CmdProc *theProc,ClientData cmdClientData,int argc,const char *argv[])
|
||||
+static void TraceCheckAbortProc(ClientData theClientData,Tcl_Interp *theInterpreter,int theLevel,char *theCommand,Tcl_CmdProc *theProc,ClientData cmdClientData,int argc,char *argv[])
|
||||
// This is a small trick on Tcl. We tell it we want to trace, but really, we want
|
||||
// to check to see if the user is trying to abort the execution of a script.
|
||||
// So, every time we are called, we check to see if the user is aborting, and
|
@ -1,111 +0,0 @@
|
||||
--- ./shellcmd.c.orig Thu Dec 1 16:16:19 2005
|
||||
+++ ./shellcmd.c Wed Dec 20 14:34:05 2006
|
||||
@@ -199,7 +199,7 @@
|
||||
return(false);
|
||||
}
|
||||
|
||||
-static bool GetUINT32String(Tcl_Interp *localInterpreter,const char *theString,UINT32 *theNumber)
|
||||
+static bool GetUINT32String(Tcl_Interp *localInterpreter,char *theString,UINT32 *theNumber)
|
||||
// convert theString to a UINT32
|
||||
// return false if the conversion failed, and fill the Tcl result
|
||||
{
|
||||
@@ -668,7 +668,7 @@
|
||||
{
|
||||
for(theIndex=1;!fail&&(int)theIndex<objc;theIndex++)
|
||||
{
|
||||
- if(Tcl_SplitList(localInterpreter,Tcl_GetStringFromObj(objv[theIndex],NULL),&pathArgc,&pathArgv)==TCL_OK)
|
||||
+ if(Tcl_SplitList(localInterpreter,Tcl_GetStringFromObj(objv[theIndex],NULL),&pathArgc,(char ***)&pathArgv)==TCL_OK)
|
||||
{
|
||||
theMenu=NULL; // start at the root
|
||||
if(GetEditorMenu(pathArgc,pathArgv,&theMenu))
|
||||
@@ -720,7 +720,7 @@
|
||||
{
|
||||
if(GetBoolean(localInterpreter,objv[3],&active))
|
||||
{
|
||||
- if(Tcl_SplitList(localInterpreter,Tcl_GetStringFromObj(objv[1],NULL),&pathArgc,&pathArgv)==TCL_OK)
|
||||
+ if(Tcl_SplitList(localInterpreter,Tcl_GetStringFromObj(objv[1],NULL),&pathArgc,(char ***)&pathArgv)==TCL_OK)
|
||||
{
|
||||
if(CreateEditorMenu(pathArgc,pathArgv,theRelationship,Tcl_GetStringFromObj(objv[4],NULL),Tcl_GetStringFromObj(objv[5],NULL),Tcl_GetStringFromObj(objv[6],NULL),active))
|
||||
{
|
||||
@@ -1223,7 +1223,7 @@
|
||||
fail=false;
|
||||
if(objc==3)
|
||||
{
|
||||
- if(Tcl_SplitList(localInterpreter,Tcl_GetStringFromObj(objv[2],NULL),&listArgc,&listArgv)==TCL_OK)
|
||||
+ if(Tcl_SplitList(localInterpreter,Tcl_GetStringFromObj(objv[2],NULL),&listArgc,(char ***)&listArgv)==TCL_OK)
|
||||
{
|
||||
if((selectedElements=(bool *)MNewPtrClr(sizeof(bool)*listArgc))) // get array of "falses"
|
||||
{
|
||||
@@ -3696,19 +3696,19 @@
|
||||
{
|
||||
if(ShellBufferNotBusy(localInterpreter,theBuffer))
|
||||
{
|
||||
- if(Tcl_SplitList(localInterpreter,Tcl_GetStringFromObj(objv[2],NULL),&listArgc,&listArgv)==TCL_OK)
|
||||
+ if(Tcl_SplitList(localInterpreter,Tcl_GetStringFromObj(objv[2],NULL),&listArgc,(char ***)&listArgv)==TCL_OK)
|
||||
{
|
||||
EditorStartSelectionChange(theBuffer);
|
||||
fail=false;
|
||||
for(i=0;!fail&&i<listArgc;i++)
|
||||
{
|
||||
- if(Tcl_SplitList(localInterpreter,listArgv[i],&elementArgc,&elementArgv)==TCL_OK)
|
||||
+ if(Tcl_SplitList(localInterpreter,listArgv[i],&elementArgc,(char ***)&elementArgv)==TCL_OK)
|
||||
{
|
||||
if(elementArgc==2)
|
||||
{
|
||||
- if(GetUINT32String(localInterpreter,elementArgv[0],&startPosition))
|
||||
+ if(GetUINT32String(localInterpreter,(char *)elementArgv[0],&startPosition))
|
||||
{
|
||||
- if(GetUINT32String(localInterpreter,elementArgv[1],&endPosition))
|
||||
+ if(GetUINT32String(localInterpreter,(char *)elementArgv[1],&endPosition))
|
||||
{
|
||||
startPosition=ForcePositionIntoRange(theBuffer,startPosition);
|
||||
endPosition=ForcePositionIntoRange(theBuffer,endPosition);
|
||||
@@ -4604,7 +4604,7 @@
|
||||
fail;
|
||||
|
||||
fail=false;
|
||||
- if(Tcl_SplitList(localInterpreter,endExpressionList,&argc,&argv)==TCL_OK) // get list of end expressions
|
||||
+ if(Tcl_SplitList(localInterpreter,endExpressionList,&argc,(char ***)&argv)==TCL_OK) // get list of end expressions
|
||||
{
|
||||
for(i=0;!fail&&i<argc;i++)
|
||||
{
|
||||
@@ -4654,11 +4654,11 @@
|
||||
SetMappingStartExpressionPiece(theMapping,expressionPiece);
|
||||
if(ParseEndExpressions(localInterpreter,theMap,theMapping,argv[2]))
|
||||
{
|
||||
- if(GetUINT32String(localInterpreter,argv[3],&startStyle))
|
||||
+ if(GetUINT32String(localInterpreter,(char *)argv[3],&startStyle))
|
||||
{
|
||||
- if(GetUINT32String(localInterpreter,argv[4],&betweenStyle))
|
||||
+ if(GetUINT32String(localInterpreter,(char *)argv[4],&betweenStyle))
|
||||
{
|
||||
- if(GetUINT32String(localInterpreter,argv[5],&endStyle))
|
||||
+ if(GetUINT32String(localInterpreter,(char *)argv[5],&endStyle))
|
||||
{
|
||||
SetMappingStyles(theMapping,startStyle,betweenStyle,endStyle);
|
||||
return(true);
|
||||
@@ -4704,13 +4704,13 @@
|
||||
i,j;
|
||||
|
||||
fail=false;
|
||||
- if(Tcl_SplitList(localInterpreter,mapContents,&listArgc,&listArgv)==TCL_OK) // make list of command/parameter
|
||||
+ if(Tcl_SplitList(localInterpreter,mapContents,&listArgc,(char ***)&listArgv)==TCL_OK) // make list of command/parameter
|
||||
{
|
||||
for(i=0;(i<listArgc)&&!fail;i+=2) // step over each command, parameter list pair
|
||||
{
|
||||
if(MatchToken(listArgv[i],syntaxMapCommands,&syntaxMapToken))
|
||||
{
|
||||
- if(Tcl_SplitList(localInterpreter,listArgv[i+1],&argc,&argv)==TCL_OK) // make parameters into arguments
|
||||
+ if(Tcl_SplitList(localInterpreter,listArgv[i+1],&argc,(char ***)&argv)==TCL_OK) // make parameters into arguments
|
||||
{
|
||||
switch(syntaxMapToken)
|
||||
{
|
||||
@@ -4749,7 +4749,7 @@
|
||||
{
|
||||
if((theMapping=LocateSyntaxStyleMapping(theMap,argv[0])))
|
||||
{
|
||||
- if(Tcl_SplitList(localInterpreter,argv[1],&mappinglistArgc,&mappinglistArgv)==TCL_OK) // make parameters into arguments
|
||||
+ if(Tcl_SplitList(localInterpreter,argv[1],&mappinglistArgc,(char ***)&mappinglistArgv)==TCL_OK) // make parameters into arguments
|
||||
{
|
||||
for(j=0;j<mappinglistArgc&&!fail;j++)
|
||||
{
|
Loading…
Reference in New Issue
Block a user