summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MOVED1
-rw-r--r--editors/Makefile3
-rw-r--r--editors/e93/Makefile46
-rw-r--r--editors/e93/distinfo3
-rw-r--r--editors/e93/files/patch-Makefile24
-rw-r--r--editors/e93/files/patch-search.h13
-rw-r--r--editors/e93/files/patch-shell.c20
-rw-r--r--editors/e93/files/patch-shellcmd.c11
-rw-r--r--editors/e93/pkg-descr21
-rw-r--r--editors/e93/pkg-plist31
10 files changed, 171 insertions, 2 deletions
diff --git a/MOVED b/MOVED
index a1b9d99163db..ac507989b473 100644
--- a/MOVED
+++ b/MOVED
@@ -7877,7 +7877,6 @@ graphics/rubyphoto||2015-11-28|Has expired: Broken for more than 6 months
german/bsdpaste||2015-11-28|Has expired: Broken for more than 6 months
audio/amrcoder||2015-11-28|Has expired: Broken for more than 6 months
sysutils/bashburn||2015-11-28|Has expired: Broken for more than 6 months
-editors/e93||2015-11-28|Has expired: Broken for more than 6 months
audio/tepsonic||2015-11-28|Has expired: Broken for more than 6 months
astro/ephem||2015-11-28|Has expired: Broken for more than 6 months
chinese/cce||2015-11-28|Has expired: Broken for more than 6 months
diff --git a/editors/Makefile b/editors/Makefile
index 28684d30636d..cf82b0c729c5 100644
--- a/editors/Makefile
+++ b/editors/Makefile
@@ -21,8 +21,8 @@
SUBDIR += chexedit
SUBDIR += codelite
SUBDIR += cooledit
- SUBDIR += cudatext
SUBDIR += cream
+ SUBDIR += cudatext
SUBDIR += deforaos-editor
SUBDIR += dexed
SUBDIR += dhex
@@ -32,6 +32,7 @@
SUBDIR += drjava
SUBDIR += dte
SUBDIR += e3
+ SUBDIR += e93
SUBDIR += ecce
SUBDIR += ecrire
SUBDIR += edith
diff --git a/editors/e93/Makefile b/editors/e93/Makefile
new file mode 100644
index 000000000000..4dceacfd9ba1
--- /dev/null
+++ b/editors/e93/Makefile
@@ -0,0 +1,46 @@
+# Created by: Satoshi Asami (asami)
+# $FreeBSD$
+
+PORTNAME= e93
+PORTVERSION= 1.4.2
+CATEGORIES= editors tcl
+MASTER_SITES= http://www.sqrt.com/downloads/
+DISTNAME= ${PORTNAME}
+
+MAINTAINER= ports@FreeBSD.org
+COMMENT= Tcl-based text editor oriented to the programmers
+
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/LICENSE.TXT
+
+USES= tar:tgz tcl
+USE_XORG= x11 xinerama
+
+MAKE_ENV= TCL_VERSION=${TCL_SHLIB_VER}
+
+PORTDOCS= README* TODO
+
+OPTIONS_DEFINE= DOCS
+
+post-patch:
+ @${REINPLACE_CMD} -E \
+ '/^TCL_INCLUDE=/s,/usr/local/include,${TCL_INCLUDEDIR}, \
+ ;/^X_(INCLUDE|LIB)=/s,/usr/X11R6,${LOCALBASE}, \
+ ;/^EXTRALIBS=/s, -ldl,, \
+ ;/^OPTIONS=/s,-O2.*-g,${CFLAGS}, \
+ ;/^(PREFIX|CC)/s,=,?=,' ${WRKSRC}/machdef.mk
+ @${REINPLACE_CMD} -e '30s,^,#include <stdbool.h>,' \
+ ${WRKSRC}/includes.h
+ @${REINPLACE_CMD} -E '/X11\/(Intrinsic|Shell)\.h/d' \
+ ${WRKSRC}/xgui/includes.h
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/e93 ${STAGEDIR}${PREFIX}/bin
+ @${MKDIR} ${STAGEDIR}${PREFIX}/lib/e93lib
+ cd ${WRKSRC}/e93lib && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/lib/e93lib
+
+do-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>
diff --git a/editors/e93/distinfo b/editors/e93/distinfo
new file mode 100644
index 000000000000..209da7333722
--- /dev/null
+++ b/editors/e93/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1248219511
+SHA256 (e93.tgz) = 750d812fe5911a71cf18a4e0d623ae6c4ee420d9c7886205d3dcf19aecfbc3c1
+SIZE (e93.tgz) = 431733
diff --git a/editors/e93/files/patch-Makefile b/editors/e93/files/patch-Makefile
new file mode 100644
index 000000000000..bdf0245702b4
--- /dev/null
+++ b/editors/e93/files/patch-Makefile
@@ -0,0 +1,24 @@
+--- Makefile.orig 2009-07-21 15:04:13 UTC
++++ Makefile
+@@ -49,17 +49,17 @@ OBJECTS = \
+ abort.o \
+ errors.o
+
+-all : libgui e93
++all : e93
+
+ e93 : $(OBJECTS) xgui/libgui.a
+- $(CC) -O $(OBJECTS) -Lxgui -lgui -lstdc++ \
++ $(CC) $(CFLAGS:N-D*:N-I*) $(OBJECTS) -Lxgui -lgui \
+ $(X_LIB) -lX11 -lXinerama \
+ $(TCL_LIB) -ltcl$(TCL_VERSION) \
+ $(EXTRALIBS) \
+ -o e93
+
+-libgui :
+- cd xgui;make
++xgui/libgui.a :
++ $(MAKE) -C xgui
+
+ clean :
+ cd xgui;make clean
diff --git a/editors/e93/files/patch-search.h b/editors/e93/files/patch-search.h
new file mode 100644
index 000000000000..a9e087c03134
--- /dev/null
+++ b/editors/e93/files/patch-search.h
@@ -0,0 +1,13 @@
+--- search.h.orig 2009-01-03 17:37:00 UTC
++++ search.h
+@@ -14,8 +14,8 @@
+
+ bool LiteralMatch(CHUNK_HEADER *chunk,UINT32 offset,CHUNK_HEADER *forTextChunk,UINT32 forTextOffset,UINT32 numToSearch,CHUNK_HEADER **endChunk,UINT32 *endOffset);
+ bool LiteralMatchTT(CHUNK_HEADER *chunk,UINT32 offset,CHUNK_HEADER *forTextChunk,UINT32 forTextOffset,UINT32 numToSearch,const UINT8 *translateTable,CHUNK_HEADER **endChunk,UINT32 *endOffset);
+-bool SearchForwardLiteral(CHUNK_HEADER *chunk,UINT32 offset,CHUNK_HEADER *forTextChunk,UINT32 forTextOffset,UINT32 forTextLength,UINT32 numToSearch,bool ignoreCase,UINT32 *matchOffset,CHUNK_HEADER **startChunk,UINT32 *startOffset,CHUNK_HEADER **endChunk,UINT32 *endOffset,ABORT_TEST_FUNCTION *abortFunction);
+-bool SearchBackwardLiteral(CHUNK_HEADER *chunk,UINT32 offset,CHUNK_HEADER *forTextChunk,UINT32 forTextOffset,UINT32 forTextLength,UINT32 numToSearch,bool ignoreCase,UINT32 *matchOffset,CHUNK_HEADER **startChunk,UINT32 *startOffset,CHUNK_HEADER **endChunk,UINT32 *endOffset,ABORT_TEST_FUNCTION *abortFunction);
++bool SearchForwardLiteral(CHUNK_HEADER *chunk,UINT32 offset,CHUNK_HEADER *forTextChunk,UINT32 forTextOffset,UINT32 forTextLength,UINT32 numToSearch,bool ignoreCase,bool *foundMatch,UINT32 *matchOffset,UINT32 *numMatched,CHUNK_HEADER **startChunk,UINT32 *startOffset,CHUNK_HEADER **endChunk,UINT32 *endOffset,ABORT_TEST_FUNCTION *abortFunction);
++bool SearchBackwardLiteral(CHUNK_HEADER *chunk,UINT32 offset,CHUNK_HEADER *forTextChunk,UINT32 forTextOffset,UINT32 forTextLength,UINT32 numToSearch,bool ignoreCase,bool *foundMatch,UINT32 *matchOffset,UINT32 *numMatched,CHUNK_HEADER **startChunk,UINT32 *startOffset,CHUNK_HEADER **endChunk,UINT32 *endOffset,ABORT_TEST_FUNCTION *abortFunction);
+ bool EditorFind(EDITOR_BUFFER *buffer,SELECTION_UNIVERSE *selectionUniverse,TEXT_UNIVERSE *searchForText,bool backward,bool wrapAround,bool selectionExpr,bool ignoreCase,bool *foundMatch,SELECTION_UNIVERSE *resultSelectionUniverse,ABORT_TEST_FUNCTION *abortFunction);
+ bool EditorFindAll(EDITOR_BUFFER *buffer,SELECTION_UNIVERSE *selectionUniverse,TEXT_UNIVERSE *searchForText,bool backward,bool wrapAround,bool selectionExpr,bool ignoreCase,bool limitScope,bool *foundMatch,SELECTION_UNIVERSE *resultSelectionUniverse,ABORT_TEST_FUNCTION *abortFunction);
+ bool EditorReplace(EDITOR_BUFFER *buffer,SELECTION_UNIVERSE *selectionUniverse,TEXT_UNIVERSE *searchForText,TEXT_UNIVERSE *replaceWithText,bool backward,bool wrapAround,bool selectionExpr,bool ignoreCase,bool replaceProc,bool *foundMatch,SELECTION_UNIVERSE *resultSelectionUniverse,ABORT_TEST_FUNCTION *abortFunction);
diff --git a/editors/e93/files/patch-shell.c b/editors/e93/files/patch-shell.c
new file mode 100644
index 000000000000..2e68e44ee923
--- /dev/null
+++ b/editors/e93/files/patch-shell.c
@@ -0,0 +1,20 @@
+--- shell.c.orig 2013-05-22 09:35:54.000000000 +0200
++++ shell.c 2013-05-22 09:44:04.000000000 +0200
+@@ -992,7 +992,7 @@
+ Tcl_SetVar(interpreter,"SCRIPTPATH",scriptPath,TCL_LEAVE_ERR_MSG);
+ if(Tcl_EvalFile(interpreter,scriptPath)!=TCL_OK)
+ {
+- SetError("%s:%d:%s",scriptPath,interpreter->errorLine,Tcl_GetStringResult(interpreter));
++ SetError("%s:%d:%s",scriptPath,Tcl_GetErrorLine(interpreter),Tcl_GetStringResult(interpreter));
+ fail=true;
+ }
+ }
+@@ -1066,7 +1066,7 @@
+ }
+ else
+ {
+- SetError("Failed to Tcl_Init(): %s",tclInterpreter->result);
++ SetError("Failed to Tcl_Init(): %s",Tcl_GetStringResult(tclInterpreter));
+ }
+ UnInitChannels(tclInterpreter);
+ }
diff --git a/editors/e93/files/patch-shellcmd.c b/editors/e93/files/patch-shellcmd.c
new file mode 100644
index 000000000000..9e2967dec9dc
--- /dev/null
+++ b/editors/e93/files/patch-shellcmd.c
@@ -0,0 +1,11 @@
+--- shellcmd.c.orig 2013-05-22 09:45:47.000000000 +0200
++++ shellcmd.c 2013-05-22 09:46:25.000000000 +0200
+@@ -6354,7 +6354,7 @@
+ {
+ if(tclResult!=TCL_OK)
+ {
+- sprintf(tempString,"Error in line %d: ",localInterpreter->errorLine);
++ sprintf(tempString,"Error in line %d: ",Tcl_GetErrorLine(localInterpreter));
+ EditorAuxInsert(buffer,(UINT8 *)tempString,(UINT32)strlen(tempString));
+ }
+ EditorAuxInsert(buffer,(UINT8 *)stringResult,(UINT32)strlen(stringResult));
diff --git a/editors/e93/pkg-descr b/editors/e93/pkg-descr
new file mode 100644
index 000000000000..46e740b9e35a
--- /dev/null
+++ b/editors/e93/pkg-descr
@@ -0,0 +1,21 @@
+e93 is a portable window based text editor oriented to the needs of
+programmers. It was begun in 1993 (thus the name). It uses the mouse,
+selections, cut/copy/paste, and closely follows the model of editors
+on the Macintosh and NeXT platforms.
+
+e93 supports columnar selection. It achieves this by allowing multiple
+pieces of the text to be selected simultaneously (this is perhaps its
+most unique feature).
+
+e93 imposes no limits on the line length, file length, or number of
+simultaneous files which it can edit.
+
+e93 is able to handle all 8-bit binary codes without complaint, or
+confusion.
+
+e93 is highly configurable without recompiling because scripts which
+control the editor can be written in Tcl.
+
+e93 supports user-configurable syntax highlighting.
+
+WWW: http://www.e93.org/
diff --git a/editors/e93/pkg-plist b/editors/e93/pkg-plist
new file mode 100644
index 000000000000..dbc5a733bbf3
--- /dev/null
+++ b/editors/e93/pkg-plist
@@ -0,0 +1,31 @@
+bin/e93
+lib/e93lib/e93rc.tcl
+lib/e93lib/examples/README
+lib/e93lib/examples/sethighlightscheme.tcl
+lib/e93lib/highlightschemes/schemes.tcl
+lib/e93lib/images/about.ppm
+lib/e93lib/images/e93icon-16.png
+lib/e93lib/images/e93icon-24.png
+lib/e93lib/images/e93icon-48.png
+lib/e93lib/modules/c.tcl
+lib/e93lib/modules/colorme.tcl
+lib/e93lib/newstuff/NEW_WAY
+lib/e93lib/newstuff/README
+lib/e93lib/newstuff/htmlTEST.tcl
+lib/e93lib/newstuff/test.tcl
+lib/e93lib/syntaxmaps/asm.tcl
+lib/e93lib/syntaxmaps/c.tcl
+lib/e93lib/syntaxmaps/css.tcl
+lib/e93lib/syntaxmaps/eiffel.tcl
+lib/e93lib/syntaxmaps/email.tcl
+lib/e93lib/syntaxmaps/html.tcl
+lib/e93lib/syntaxmaps/java.tcl
+lib/e93lib/syntaxmaps/javaScript.tcl
+lib/e93lib/syntaxmaps/php.tcl
+lib/e93lib/syntaxmaps/tcl.tcl
+lib/e93lib/syntaxmaps/text.tcl
+lib/e93lib/syntaxmaps/unknown.tcl
+lib/e93lib/syntaxmaps/verilog.tcl
+lib/e93lib/syntaxmaps/vhdl.tcl
+lib/e93lib/syntaxmaps/xml.tcl
+lib/e93lib/syntaxmaps/xsl.tcl