Import FTE, a powerful, intuitive and lightweight editor for X.
Help and OK naddy@.
This commit is contained in:
parent
4ce0b1c30b
commit
ee2b094f80
32
editors/fte/Makefile
Normal file
32
editors/fte/Makefile
Normal file
@ -0,0 +1,32 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2007/12/01 21:19:33 mgrimm Exp $
|
||||
|
||||
COMMENT= powerful and intuitive editor for programmers
|
||||
|
||||
DISTNAME= fte-20070915
|
||||
CATEGORIES= editors devel
|
||||
|
||||
HOMEPAGE= http://fte.sourceforge.net/
|
||||
|
||||
MAINTAINER= Moritz Grimm <mdgrimm@gmx.net>
|
||||
|
||||
# GPLv2 or later / Artistic License
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
WANTLIB= X11 Xau Xdmcp Xpm c m stdc++
|
||||
|
||||
MASTER_SITES= http://scapa.dnsalias.net/distfiles/ \
|
||||
http://openbsd.dead-parrot.de/distfiles/ \
|
||||
http://www.phxbsd.com/OpenBSD/
|
||||
|
||||
NO_REGRESS= Yes
|
||||
USE_X11= Yes
|
||||
|
||||
MAKE_ENV+= CC="${CC}" CXX="${CXX}"
|
||||
|
||||
post-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/fte
|
||||
${INSTALL_DATA} ${WRKSRC}/doc/*.html ${PREFIX}/share/doc/fte/
|
||||
|
||||
.include <bsd.port.mk>
|
5
editors/fte/distinfo
Normal file
5
editors/fte/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (fte-20070915.tar.gz) = j616FIlNy3miLrlXMAVzaA==
|
||||
RMD160 (fte-20070915.tar.gz) = nypnJrGOXJO1Ed3Ib3W5bHJD4xI=
|
||||
SHA1 (fte-20070915.tar.gz) = uraPypEe59eZ2rGS3LDYvhWYbTs=
|
||||
SHA256 (fte-20070915.tar.gz) = Ru/JeBSZNBOU0uXzTq4zYSlSM0Dv3bWOLx1yGgnw1Xs=
|
||||
SIZE (fte-20070915.tar.gz) = 562550
|
20
editors/fte/patches/patch-Makefile
Normal file
20
editors/fte/patches/patch-Makefile
Normal file
@ -0,0 +1,20 @@
|
||||
$OpenBSD: patch-Makefile,v 1.1.1.1 2007/12/01 21:19:33 mgrimm Exp $
|
||||
--- Makefile.orig Sat Sep 15 10:11:58 2007
|
||||
+++ Makefile Sat Sep 15 10:25:55 2007
|
||||
@@ -1,13 +1,13 @@
|
||||
-PREFIX=/usr/local
|
||||
+PREFIX?=/usr/local
|
||||
|
||||
BINDIR=$(PREFIX)/bin
|
||||
-LIBDIR=$(PREFIX)/lib/fte
|
||||
+LIBDIR=$(PREFIX)/share/fte
|
||||
CONFIGDIR=$(LIBDIR)/config
|
||||
|
||||
.PHONY: all install
|
||||
|
||||
all: fte
|
||||
- $(MAKE) -C src unix
|
||||
+ (cd src; ${MAKE} unix)
|
||||
|
||||
install: all
|
||||
sh ./install
|
67
editors/fte/patches/patch-install
Normal file
67
editors/fte/patches/patch-install
Normal file
@ -0,0 +1,67 @@
|
||||
$OpenBSD: patch-install,v 1.1.1.1 2007/12/01 21:19:33 mgrimm Exp $
|
||||
--- install.orig Mon Jan 6 18:18:30 2003
|
||||
+++ install Sat Sep 15 12:33:48 2007
|
||||
@@ -12,27 +12,11 @@ PREFIX=${PREFIX:-/usr/local}
|
||||
# INSTALLATION CODE (do not touch):
|
||||
|
||||
BINDIR=$PREFIX/bin
|
||||
-LIBDIR=$PREFIX/lib/fte
|
||||
+LIBDIR=$PREFIX/share/fte
|
||||
CONFIGDIR=$LIBDIR/config
|
||||
|
||||
LOCALCONFIGDIR=$LIBDIR/localconfig
|
||||
|
||||
-# To do some of this stuff, you should be root...
|
||||
-if [ -z "$INSTALL_NONROOT" ]
|
||||
-then
|
||||
- id | grep "^uid=0(" > /dev/null
|
||||
- if [ $? -ne 0 ]
|
||||
- then
|
||||
- echo "We don't recommend installing as non-root. To try anyway,"
|
||||
- echo "export INSTALL_NONROOT=1 before running the install."
|
||||
- echo "NOTE: You should also export PREFIX=/your/home/dir/fte to"
|
||||
- echo "give this a chance of working."
|
||||
- exit 1
|
||||
- fi
|
||||
-else
|
||||
- echo "Root-check bypassed - installing at your own risk"
|
||||
-fi
|
||||
-
|
||||
# Ensure everything is made.
|
||||
make -e all
|
||||
if [ $? -ne 0 ]
|
||||
@@ -45,9 +29,9 @@ fi
|
||||
rm -rf $CONFIGDIR
|
||||
|
||||
# Make the directories we'll need.
|
||||
-mkdir -p $BINDIR
|
||||
-mkdir -p $LIBDIR
|
||||
-mkdir -p $LOCALCONFIGDIR
|
||||
+${BSD_INSTALL_PROGRAM_DIR} $BINDIR
|
||||
+${BSD_INSTALL_DATA_DIR} $LIBDIR
|
||||
+${BSD_INSTALL_DATA_DIR} $LOCALCONFIGDIR
|
||||
|
||||
# Set up our binaries.
|
||||
for file in fte xfte cfte sfte vfte nfte
|
||||
@@ -58,20 +42,7 @@ do
|
||||
# if this is the right directory for this file, use it.
|
||||
if [ -f $dir/$file ]
|
||||
then
|
||||
- # try to copy it.
|
||||
- cp $dir/$file $BINDIR 2> /dev/null
|
||||
- # if that doesn't work, force it.
|
||||
- # NOTE: This may crash any running copy of FTE on some platforms
|
||||
- # AIX, Linux: confirmed okay
|
||||
- # Sun: confirmed crash
|
||||
- if [ $? -ne 0 ]
|
||||
- then
|
||||
- # Unix has the nice capability of being able to unlink
|
||||
- # in-use files.
|
||||
- echo "Forcing $file"
|
||||
- rm -f $BINDIR/$file
|
||||
- cp $dir/$file $BINDIR
|
||||
- fi
|
||||
+ ${BSD_INSTALL_PROGRAM} $dir/$file $BINDIR 2> /dev/null
|
||||
fi
|
||||
done
|
||||
done
|
12
editors/fte/patches/patch-src_clip_x11_cpp
Normal file
12
editors/fte/patches/patch-src_clip_x11_cpp
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-src_clip_x11_cpp,v 1.1.1.1 2007/12/01 21:19:33 mgrimm Exp $
|
||||
--- src/clip_x11.cpp.orig Tue Sep 18 22:02:08 2007
|
||||
+++ src/clip_x11.cpp Tue Sep 18 22:02:13 2007
|
||||
@@ -10,7 +10,7 @@
|
||||
#include "fte.h"
|
||||
|
||||
int GetXSelection(int *len, char **data, int clipboard);
|
||||
-int SetXSelection(int len, char *data, int clipboard);
|
||||
+int SetXSelection(long len, char *data, int clipboard);
|
||||
|
||||
int GetPMClip(int clipboard) {
|
||||
char *data;
|
85
editors/fte/patches/patch-src_con_x11_cpp
Normal file
85
editors/fte/patches/patch-src_con_x11_cpp
Normal file
@ -0,0 +1,85 @@
|
||||
$OpenBSD: patch-src_con_x11_cpp,v 1.1.1.1 2007/12/01 21:19:33 mgrimm Exp $
|
||||
--- src/con_x11.cpp.orig Tue Sep 18 21:57:13 2007
|
||||
+++ src/con_x11.cpp Tue Sep 18 22:00:34 2007
|
||||
@@ -152,7 +152,7 @@ static char winTitle[256] = "FTE";
|
||||
static char winSTitle[256] = "FTE";
|
||||
|
||||
static unsigned char* CurSelectionData[3] = {NULL,NULL,NULL};
|
||||
-static int CurSelectionLen[3] = {0,0,0};
|
||||
+static long CurSelectionLen[3] = {0,0,0};
|
||||
static int CurSelectionOwn[3] = {0,0,0};
|
||||
static Time now;
|
||||
|
||||
@@ -170,7 +170,7 @@ IncrementalSelectionInfo *incrementalSelections = NULL
|
||||
|
||||
static Bool gotXError;
|
||||
|
||||
-static void SendSelection(XEvent *notify, Atom property, Atom type, unsigned char *data, int len, Bool privateData);
|
||||
+static void SendSelection(XEvent *notify, Atom property, Atom type, unsigned char *data, long len, Bool privateData);
|
||||
|
||||
static int ErrorHandler(Display *, XErrorEvent *ee) {
|
||||
gotXError = True;
|
||||
@@ -569,9 +569,9 @@ static int SetupXWindow(int argc, char **argv)
|
||||
}
|
||||
if (i == ICON_COUNT) {
|
||||
// Everything OK, can create property
|
||||
- CARD32 *iconBuffer = (CARD32 *)malloc(iconBufferSize * sizeof(CARD32));
|
||||
+ long *iconBuffer = (long *)malloc(iconBufferSize * sizeof(long));
|
||||
if (iconBuffer) {
|
||||
- CARD32 *b = iconBuffer;
|
||||
+ long *b = iconBuffer;
|
||||
for (i = 0; i < ICON_COUNT; i++) {
|
||||
XpmImage &xpm = xpmImage[i];
|
||||
CARD32 *&colors = xpmColors[i];
|
||||
@@ -1697,7 +1697,7 @@ static int WaitForXEvent(int eventType, XEvent *event)
|
||||
}
|
||||
}
|
||||
|
||||
-static void SendSelection(XEvent *notify, Atom property, Atom type, unsigned char *data, int len, Bool privateData) {
|
||||
+static void SendSelection(XEvent *notify, Atom property, Atom type, unsigned char *data, long len, Bool privateData) {
|
||||
int (*oldHandler)(Display *, XErrorEvent *);
|
||||
int i, send;
|
||||
|
||||
@@ -1787,13 +1787,13 @@ static int ConvertSelection(Atom selection, Atom type,
|
||||
|
||||
if (actual_type == proptype_incr) {
|
||||
// Incremental data
|
||||
- int pos, buffer_len;
|
||||
+ long pos, buffer_len;
|
||||
unsigned char *buffer;
|
||||
|
||||
// Get selection length and allocate buffer
|
||||
XGetWindowProperty(display, win, prop_selection, 0, 8, True, proptype_incr,
|
||||
&actual_type, &actual_format, &nitems, &bytes_after, &d);
|
||||
- buffer_len = *(int *)d;
|
||||
+ buffer_len = *(long *)d;
|
||||
buffer = (unsigned char *)malloc(buffer_len);
|
||||
XFree(d);
|
||||
// Cannot exit right now if data == NULL since we need to complete the handshake
|
||||
@@ -1819,7 +1819,7 @@ static int ConvertSelection(Atom selection, Atom type,
|
||||
|
||||
if (nitems && buffer) {
|
||||
// Data received and have buffer
|
||||
- if (nitems > (unsigned int)(buffer_len - pos)) {
|
||||
+ if (nitems > (unsigned long)(buffer_len - pos)) {
|
||||
// More data than expected - realloc buffer
|
||||
int new_len = pos + nitems;
|
||||
unsigned char *new_buffer = (unsigned char *)malloc(new_len);
|
||||
@@ -1937,7 +1937,7 @@ int GetXSelection(int *len, char **data, int clipboard
|
||||
return 0;
|
||||
}
|
||||
|
||||
-int SetXSelection(int len, char *data, int clipboard) {
|
||||
+int SetXSelection(long len, char *data, int clipboard) {
|
||||
Atom clip = GetXClip(clipboard);
|
||||
if (CurSelectionData[clipboard] != NULL)
|
||||
free(CurSelectionData[clipboard]);
|
||||
@@ -1952,7 +1952,7 @@ int SetXSelection(int len, char *data, int clipboard)
|
||||
memcpy(CurSelectionData[clipboard], data, CurSelectionLen[clipboard]);
|
||||
CurSelectionData[clipboard][len] = 0;
|
||||
if (CurSelectionLen[clipboard] < 64 * 1024) {
|
||||
- XStoreBytes(display, data, len);
|
||||
+ XStoreBytes(display, data, (int)len);
|
||||
}
|
||||
XSetSelectionOwner(display, clip, win, CurrentTime);
|
||||
if (XGetSelectionOwner(display, clip) == win)
|
12
editors/fte/patches/patch-src_e_loadsave_cpp
Normal file
12
editors/fte/patches/patch-src_e_loadsave_cpp
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-src_e_loadsave_cpp,v 1.1.1.1 2007/12/01 21:19:33 mgrimm Exp $
|
||||
--- src/e_loadsave.cpp.orig Sat Sep 15 10:32:34 2007
|
||||
+++ src/e_loadsave.cpp Sat Sep 15 10:34:02 2007
|
||||
@@ -506,7 +506,7 @@ int EBuffer::SaveTo(char *AFileName) {
|
||||
while ((bindex = GetUserBookmarkForLine(bindex, l, bname, bpos)) != -1) {
|
||||
// Skip too long bookmarks
|
||||
if (strlen(bname) > 256 || blen + strlen(bname) + 6 + 6 > sizeof(book)) continue;
|
||||
- blen += sprintf(book + blen, "%04x%02x%s", bpos.Col, strlen(bname), bname);
|
||||
+ blen += sprintf(book + blen, "%04x%02zx%s", bpos.Col, strlen(bname), bname);
|
||||
}
|
||||
if (blen != 4) {
|
||||
blen += sprintf(book + blen, "x%04xb", blen);
|
99
editors/fte/patches/patch-src_fte-unix_mak
Normal file
99
editors/fte/patches/patch-src_fte-unix_mak
Normal file
@ -0,0 +1,99 @@
|
||||
$OpenBSD: patch-src_fte-unix_mak,v 1.1.1.1 2007/12/01 21:19:33 mgrimm Exp $
|
||||
--- src/fte-unix.mak.orig Sat Sep 15 09:44:17 2007
|
||||
+++ src/fte-unix.mak Sat Sep 15 18:51:54 2007
|
||||
@@ -5,10 +5,10 @@
|
||||
|
||||
# vfte - for Linux console directly (with limitations, see con_linux.cpp)
|
||||
|
||||
-TGT_NFTE = nfte
|
||||
+#TGT_NFTE = nfte
|
||||
#TGT_QFTE = qfte
|
||||
#TGT_SFTE = sfte
|
||||
-TGT_VFTE = vfte
|
||||
+#TGT_VFTE = vfte
|
||||
TGT_XFTE = xfte
|
||||
|
||||
TARGETS = $(TGT_XFTE) $(TGT_NFTE) $(TGT_QFTE) $(TGT_SFTE) $(TGT_VFTE)
|
||||
@@ -43,9 +43,10 @@ XPMLIB = -lXpm
|
||||
#gcc/g++
|
||||
#CC = g++
|
||||
#LD = g++
|
||||
-CC = $(CXX)
|
||||
+CC?= cc
|
||||
+CXX?= c++
|
||||
LD = $(CXX)
|
||||
-CPPOPTIONS = -Wall -Wpointer-arith -Wconversion -Wwrite-strings -Winline
|
||||
+CPPOPTIONS = -Wall -Wpointer-arith -Wconversion -Wwrite-strings
|
||||
|
||||
# try this for smaller/faster code and less dependencies
|
||||
NOEXCEPTION = -fno-rtti -fno-exceptions
|
||||
@@ -56,8 +57,8 @@ NOEXCEPTION = -fno-rtti -fno-exceptions
|
||||
#######################################################################
|
||||
# Linux
|
||||
UOS = -DLINUX
|
||||
-XINCDIR = -I/usr/X11R6/include
|
||||
-XLIBDIR = -L/usr/X11R6/lib
|
||||
+XINCDIR = -I${X11BASE}/include
|
||||
+XLIBDIR = -L${X11BASE}/lib
|
||||
|
||||
#######################################################################
|
||||
# HP/UX
|
||||
@@ -77,7 +78,7 @@ XLIBDIR = -L/usr/X11R6/lib
|
||||
#MINCDIR = -I/usr/include/Motif1.2
|
||||
#MLIBDIR = -L/usr/lib/Motif1.2
|
||||
|
||||
-SINCDIR = -I/usr/include/slang
|
||||
+#SINCDIR = -I/usr/include/slang
|
||||
|
||||
#######################################################################
|
||||
# AIX
|
||||
@@ -137,17 +138,17 @@ SINCDIR = -I/usr/include/slang
|
||||
#QLIBDIR = -L$(QTDIR)/lib
|
||||
#QINCDIR = -I$(QTDIR)/include
|
||||
#QINCDIR = -I/usr/include/qt
|
||||
-QINCDIR = -I/usr/include/qt3
|
||||
+#QINCDIR = -I/usr/include/qt3
|
||||
MOC = moc
|
||||
|
||||
LIBDIRS =
|
||||
INCDIRS = $(XINCDIR) $(QINCDIR) $(MINCDIR) $(SINCDIR)
|
||||
|
||||
-OPTIMIZE = -g # -O -g
|
||||
+DEBUG ?= -g -ggdb
|
||||
#OPTIMIZE = -O2
|
||||
#OPTIMIZE = -O2 -s
|
||||
|
||||
-CCFLAGS = $(CPPOPTIONS) $(OPTIMIZE) $(NOEXCEPTION) $(INCDIRS) -DUNIX $(UOS) \
|
||||
+CCFLAGS = ${DEBUG} $(CPPOPTIONS) $(NOEXCEPTION) $(INCDIRS) -DUNIX $(UOS) \
|
||||
$(I18NOPTIONS) $(APPOPTIONS) $(USE_XICON)
|
||||
LDFLAGS = $(OPTIMIZE) $(LIBDIRS)
|
||||
|
||||
@@ -160,7 +161,7 @@ include objs.inc
|
||||
SRCS = $(OBJS:.o=.cpp)
|
||||
|
||||
# Need -lXt below if USE_XTINIT is defined
|
||||
-XLIBS = $(XLIBDIR) -lX11 $(SOCKETLIB) $(XPMLIB)
|
||||
+XLIBS = $(XLIBDIR) $(XPMLIB) -lX11 -lXdmcp -lXau $(SOCKETLIB)
|
||||
VLIBS = -lgpm -lncurses
|
||||
NLIBS = -lncurses
|
||||
SLIBS = -lslang
|
||||
@@ -169,7 +170,7 @@ QLIBS = $(QLIBDIR) -lqt-mt
|
||||
#MLIBS = $(MLIBDIR) -lXm -lXp -lXt -lXpm -lXext
|
||||
|
||||
.cpp.o:
|
||||
- $(CC) -c $< $(CXXFLAGS) $(CPPFLAGS) $(CCFLAGS)
|
||||
+ $(CXX) -c $< $(CXXFLAGS) $(CPPFLAGS) $(CCFLAGS)
|
||||
|
||||
.c.o:
|
||||
$(CC) -c $< $(CFLAGS) $(CPPFLAGS) $(CCFLAGS)
|
||||
@@ -232,10 +233,3 @@ tags: $(SRCS) $(wildcard *.h)
|
||||
clean:
|
||||
rm -f core *.o *.moc .depend $(TARGETS) defcfg.h defcfg.cnf \
|
||||
cfte fte sfte vfte nfte qfte xfte compkeys tags
|
||||
-
|
||||
-#
|
||||
-# include dependency files if they exist
|
||||
-#
|
||||
-ifneq ($(wildcard .depend),)
|
||||
-include .depend
|
||||
-endif
|
14
editors/fte/patches/patch-src_h_simple_cpp
Normal file
14
editors/fte/patches/patch-src_h_simple_cpp
Normal file
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-src_h_simple_cpp,v 1.1.1.1 2007/12/01 21:19:33 mgrimm Exp $
|
||||
--- src/h_simple.cpp.orig Sat Sep 15 10:34:22 2007
|
||||
+++ src/h_simple.cpp Sat Sep 15 10:36:39 2007
|
||||
@@ -24,8 +24,8 @@ int Hilit_SIMPLE(EBuffer *BF, int LN, PCell B, int Pos
|
||||
int nextState;
|
||||
char *match;
|
||||
int lastPos = -1;
|
||||
- hlState entryState;
|
||||
- int iterCount;
|
||||
+ hlState entryState = 0;
|
||||
+ int iterCount = 1;
|
||||
bool reportError = true;
|
||||
|
||||
if (hm == 0 || hm->stateCount == 0)
|
12
editors/fte/patches/patch-src_i_complete_cpp
Normal file
12
editors/fte/patches/patch-src_i_complete_cpp
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-src_i_complete_cpp,v 1.1.1.1 2007/12/01 21:19:33 mgrimm Exp $
|
||||
--- src/i_complete.cpp.orig Sat Sep 15 10:36:48 2007
|
||||
+++ src/i_complete.cpp Sat Sep 15 10:38:21 2007
|
||||
@@ -278,7 +278,7 @@ void ExComplete::RepaintStatus()
|
||||
(WordFixedCount == 1) ? COM_ORIG : COM_HIGH, W);
|
||||
p += l;
|
||||
char s[100];
|
||||
- sprintf(s, "] (T:%d/%d S:%d)", WordPos + 1, WordsLast,
|
||||
+ sprintf(s, "] (T:%d/%d S:%zu)", WordPos + 1, WordsLast,
|
||||
WordFixedCount);
|
||||
MoveStr(B, p, W, s, COM_NORM, W);
|
||||
// ConSetCursorPos(cur + WordFixed, H - 1);
|
21
editors/fte/patches/patch-src_o_cvsbase_cpp
Normal file
21
editors/fte/patches/patch-src_o_cvsbase_cpp
Normal file
@ -0,0 +1,21 @@
|
||||
$OpenBSD: patch-src_o_cvsbase_cpp,v 1.1.1.1 2007/12/01 21:19:33 mgrimm Exp $
|
||||
--- src/o_cvsbase.cpp.orig Sat Sep 15 10:38:45 2007
|
||||
+++ src/o_cvsbase.cpp Sat Sep 15 10:40:22 2007
|
||||
@@ -409,7 +409,7 @@ void ECvsBase::GetName (char *AName,int MaxLen) {
|
||||
void ECvsBase::GetInfo (char *AInfo,int MaxLen) {
|
||||
char format[128];
|
||||
|
||||
- sprintf (format,"%2d %04d/%03d %s (%%.%is) ",ModelNo,Row,Count,Title,MaxLen-24-strlen (Title));
|
||||
+ sprintf (format,"%2d %04d/%03d %s (%%.%lus) ",ModelNo,Row,Count,Title,MaxLen-24-strlen (Title));
|
||||
sprintf (AInfo,format,Command);
|
||||
}
|
||||
|
||||
@@ -424,7 +424,7 @@ void ECvsBase::GetPath (char *APath,int MaxLen) {
|
||||
void ECvsBase::GetTitle(char *ATitle, int MaxLen, char *ASTitle, int SMaxLen) {
|
||||
char format[128];
|
||||
|
||||
- sprintf (format,"%s: %%.%is",Title,MaxLen-4-strlen (Title));
|
||||
+ sprintf (format,"%s: %%.%lus",Title,MaxLen-4-strlen (Title));
|
||||
sprintf (ATitle,format,Command);
|
||||
strncpy (ASTitle,Title,SMaxLen);
|
||||
ASTitle[SMaxLen-1]=0;
|
21
editors/fte/patches/patch-src_o_svnbase_cpp
Normal file
21
editors/fte/patches/patch-src_o_svnbase_cpp
Normal file
@ -0,0 +1,21 @@
|
||||
$OpenBSD: patch-src_o_svnbase_cpp,v 1.1.1.1 2007/12/01 21:19:33 mgrimm Exp $
|
||||
--- src/o_svnbase.cpp.orig Sat Sep 15 10:40:36 2007
|
||||
+++ src/o_svnbase.cpp Sat Sep 15 10:41:06 2007
|
||||
@@ -409,7 +409,7 @@ void ESvnBase::GetName (char *AName,int MaxLen) {
|
||||
void ESvnBase::GetInfo (char *AInfo,int MaxLen) {
|
||||
char format[128];
|
||||
|
||||
- sprintf (format,"%2d %04d/%03d %s (%%.%is) ",ModelNo,Row,Count,Title,MaxLen-24-strlen (Title));
|
||||
+ sprintf (format,"%2d %04d/%03d %s (%%.%lus) ",ModelNo,Row,Count,Title,MaxLen-24-strlen (Title));
|
||||
sprintf (AInfo,format,Command);
|
||||
}
|
||||
|
||||
@@ -424,7 +424,7 @@ void ESvnBase::GetPath (char *APath,int MaxLen) {
|
||||
void ESvnBase::GetTitle(char *ATitle, int MaxLen, char *ASTitle, int SMaxLen) {
|
||||
char format[128];
|
||||
|
||||
- sprintf (format,"%s: %%.%is",Title,MaxLen-4-strlen (Title));
|
||||
+ sprintf (format,"%s: %%.%lus",Title,MaxLen-4-strlen (Title));
|
||||
sprintf (ATitle,format,Command);
|
||||
strncpy (ASTitle,Title,SMaxLen);
|
||||
ASTitle[SMaxLen-1]=0;
|
13
editors/fte/pkg/DESCR
Normal file
13
editors/fte/pkg/DESCR
Normal file
@ -0,0 +1,13 @@
|
||||
The FTE Text Editor is a powerful, yet very easy and intuitive to use
|
||||
text editor for programmers. In fact, its features virtually make it a
|
||||
complete IDE. It is small and fast.
|
||||
|
||||
Among many other things, it supports syntax highlighting and
|
||||
syntax-aware autoindenting for many languages, parenthesis matching,
|
||||
parsing of compiler output and folds. Most of its features are
|
||||
configurable, including user-definable syntax highlighting through a
|
||||
configurable state machine.
|
||||
|
||||
This port is based on a CVS snapshot, which includes Subversion support
|
||||
in addition to CVS. Only the X11 version of FTE (xfte) is currently
|
||||
functional.
|
124
editors/fte/pkg/PLIST
Normal file
124
editors/fte/pkg/PLIST
Normal file
@ -0,0 +1,124 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2007/12/01 21:19:33 mgrimm Exp $
|
||||
bin/cfte
|
||||
bin/fte
|
||||
bin/xfte
|
||||
share/doc/fte/
|
||||
share/doc/fte/about.html
|
||||
share/doc/fte/cfgfiles.html
|
||||
share/doc/fte/cmdopt.html
|
||||
share/doc/fte/colorize.html
|
||||
share/doc/fte/colors.html
|
||||
share/doc/fte/command.html
|
||||
share/doc/fte/contents.html
|
||||
share/doc/fte/events.html
|
||||
share/doc/fte/global.html
|
||||
share/doc/fte/index.html
|
||||
share/doc/fte/install.html
|
||||
share/doc/fte/modes.html
|
||||
share/doc/fte/perftips.html
|
||||
share/doc/fte/regexp.html
|
||||
share/doc/fte/status.html
|
||||
share/fte/
|
||||
share/fte/config/
|
||||
share/fte/config/ab_c.fte
|
||||
share/fte/config/ab_c_os2.fte
|
||||
share/fte/config/ab_java.fte
|
||||
share/fte/config/ab_perl.fte
|
||||
share/fte/config/ab_rexx.fte
|
||||
share/fte/config/ab_sh.fte
|
||||
share/fte/config/color.fte
|
||||
share/fte/config/global.fte
|
||||
share/fte/config/k_brief.fte
|
||||
share/fte/config/kbd/
|
||||
share/fte/config/kbd/k_c.fte
|
||||
share/fte/config/kbd/k_fte.fte
|
||||
share/fte/config/kbd/k_html.fte
|
||||
share/fte/config/kbd/k_java.fte
|
||||
share/fte/config/kbd/k_perl.fte
|
||||
share/fte/config/kbd/k_rexx.fte
|
||||
share/fte/config/kbd/k_rst.fte
|
||||
share/fte/config/kbd/k_sgml.fte
|
||||
share/fte/config/m_4gl.fte
|
||||
share/fte/config/m_a51.fte
|
||||
share/fte/config/m_ada.fte
|
||||
share/fte/config/m_asm.fte
|
||||
share/fte/config/m_asm370.fte
|
||||
share/fte/config/m_bin.fte
|
||||
share/fte/config/m_c.fte
|
||||
share/fte/config/m_catbs.fte
|
||||
share/fte/config/m_clario.fte
|
||||
share/fte/config/m_diff.fte
|
||||
share/fte/config/m_ebnf.fte
|
||||
share/fte/config/m_fort90.fte
|
||||
share/fte/config/m_fte.fte
|
||||
share/fte/config/m_gawk.fte
|
||||
share/fte/config/m_html.fte
|
||||
share/fte/config/m_idl.fte
|
||||
share/fte/config/m_ipf.fte
|
||||
share/fte/config/m_java.fte
|
||||
share/fte/config/m_ldsgml.fte
|
||||
share/fte/config/m_make.fte
|
||||
share/fte/config/m_merge.fte
|
||||
share/fte/config/m_mod3.fte
|
||||
share/fte/config/m_msg.fte
|
||||
share/fte/config/m_mvsasm.fte
|
||||
share/fte/config/m_pascal.fte
|
||||
share/fte/config/m_perl.fte
|
||||
share/fte/config/m_php.fte
|
||||
share/fte/config/m_plain.fte
|
||||
share/fte/config/m_py.fte
|
||||
share/fte/config/m_resdlg.fte
|
||||
share/fte/config/m_rexx.fte
|
||||
share/fte/config/m_rst.fte
|
||||
share/fte/config/m_ruby.fte
|
||||
share/fte/config/m_sgml.fte
|
||||
share/fte/config/m_sh.fte
|
||||
share/fte/config/m_siod.fte
|
||||
share/fte/config/m_sl.fte
|
||||
share/fte/config/m_sml.fte
|
||||
share/fte/config/m_sql.fte
|
||||
share/fte/config/m_tcl.fte
|
||||
share/fte/config/m_tex.fte
|
||||
share/fte/config/m_texi.fte
|
||||
share/fte/config/m_text.fte
|
||||
share/fte/config/m_unrealscript.fte
|
||||
share/fte/config/m_vi.fte
|
||||
share/fte/config/m_xml.fte
|
||||
share/fte/config/m_xp.fte
|
||||
share/fte/config/m_xslt.fte
|
||||
share/fte/config/main.fte
|
||||
share/fte/config/menu/
|
||||
share/fte/config/menu/m_c.fte
|
||||
share/fte/config/menu/m_html.fte
|
||||
share/fte/config/menu/m_rexx.fte
|
||||
share/fte/config/menu/m_rst.fte
|
||||
share/fte/config/menu/m_sgml.fte
|
||||
share/fte/config/mymain.fte
|
||||
share/fte/config/pal_b_kb.fte
|
||||
share/fte/config/pal_base.fte
|
||||
share/fte/config/pal_blk.fte
|
||||
share/fte/config/pal_blue.fte
|
||||
share/fte/config/pal_bluez.fte
|
||||
share/fte/config/pal_gray.fte
|
||||
share/fte/config/pal_wht.fte
|
||||
share/fte/config/rgbcolor.fte
|
||||
share/fte/config/slang/
|
||||
share/fte/config/slang/simple.keylist
|
||||
share/fte/config/slang/slangkbd.map
|
||||
share/fte/config/ui_brief.fte
|
||||
share/fte/config/ui_fte.fte
|
||||
share/fte/config/ui_k_fte.fte
|
||||
share/fte/config/ui_k_joe.fte
|
||||
share/fte/config/ui_k_ne.fte
|
||||
share/fte/config/ui_k_ws.fte
|
||||
share/fte/config/ui_m_fte.fte
|
||||
share/fte/config/ui_m_ne.fte
|
||||
share/fte/config/ui_m_ws.fte
|
||||
share/fte/config/ui_mew.fte
|
||||
share/fte/config/ui_ne.fte
|
||||
share/fte/config/ui_vi.fte
|
||||
share/fte/config/ui_ws.fte
|
||||
share/fte/config/uicstyle.fte
|
||||
share/fte/localconfig/
|
||||
share/fte/localconfig/systemmain.fte
|
||||
share/fte/system.fterc
|
Loading…
x
Reference in New Issue
Block a user