A fancy-looking editor that's smaller than emacs (surprise!).

Note this port requires Motif, and is patched to build with libXm
static (to change this, just go hack in patches/patch-aa, it's only
two lines).  Some time later, I will make some changes to the ports
framework to make this configurable, but for now, it's "the way thud
wants it". :>

Submitted by:	"Daniel M. Eischen" <deischen@iworks.InterWorks.org>
This commit is contained in:
Satoshi Asami 1996-04-09 11:03:13 +00:00
parent 46c42a8785
commit 5e945c5595
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=2963
6 changed files with 180 additions and 0 deletions

27
editors/nedit/Makefile Normal file
View File

@ -0,0 +1,27 @@
# New ports collection makefile for: nedit
# Version required: 4.0.1
# Date created: 7 April 1996
#
# Whom: Daniel Eischen <deischen@iworks.InterWorks.org>
#
# $Id:
#
DISTNAME= nedit-4.0.1
CATEGORIES= editors x11
MASTER_SITES= ftp://ftp.fnal.gov/KITS/pub/nedit/v4_0_1/ \
ftp://ftp.fnal.gov/KITS/pub/nedit/v4_0_1/contrib/
DISTFILES= nedit_source.tar nedit.app-defaults
MAINTAINER= deischen@iworks.InterWorks.org
LIB_DEPENDS= Xpm\\.4\\.:${PORTSDIR}/graphics/xpm
USE_X11= yes
NO_WRKSUBDIR= yes
EXTRACT_BEFORE_ARGS= -C ${WRKDIR} -xf
EXTRACT_ONLY= nedit_source.tar
post-extract:
${CP} ${DISTDIR}/nedit.app-defaults ${WRKSRC}/NEdit
.include <bsd.port.mk>

2
editors/nedit/distinfo Normal file
View File

@ -0,0 +1,2 @@
MD5 (nedit_source.tar) = a6c47527ade8ba284696324c65af62b3
MD5 (nedit.app-defaults) = 410daeaf3129d0b9333e558183b586aa

View File

@ -0,0 +1,135 @@
*** Makefile.orig Sun Apr 7 17:30:29 1996
--- Makefile Sun Apr 7 20:07:04 1996
***************
*** 2,8 ****
# Makefile for NEdit text editor
#
# targets: sgi_nedit, hp_nedit, ultrix_nedit, ibm_nedit, sunos_nedit,
! # solaris_nedit, dec_nedit, linux_nedit
#
# Builds an intermediate library in util directory, then builds
# the nedit executable in the source directory
--- 2,8 ----
# Makefile for NEdit text editor
#
# targets: sgi_nedit, hp_nedit, ultrix_nedit, ibm_nedit, sunos_nedit,
! # solaris_nedit, dec_nedit, linux_nedit, freebsd_nedit
#
# Builds an intermediate library in util directory, then builds
# the nedit executable in the source directory
***************
*** 39,41 ****
--- 39,53 ----
linux_nedit:
(cd util; make -f Makefile.linux libNUtil.a)
(cd source; make -f Makefile.linux nedit nc)
+
+ freebsd_nedit:
+ (cd util; make -f Makefile.freebsd libNUtil.a)
+ (cd source; make -f Makefile.freebsd nedit nc)
+
+ all: freebsd_nedit
+
+ install::
+ (cd source; make -f Makefile.freebsd install)
+ ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 nedit.man ${PREFIX}/man/man1/nedit.1
+ ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 nc.man ${PREFIX}/man/man1/nc.1
+ ${INSTALL} ${COPY} -m 644 NEdit ${X11BASE}/lib/X11/app-defaults/NEdit
*** util/Makefile.freebsd.orig Sun Apr 7 18:09:19 1996
--- util/Makefile.freebsd Sun Apr 7 17:32:32 1996
***************
*** 0 ****
--- 1,8 ----
+ CC=cc
+ AR=ar
+
+ # For editres, add -DEDITRES to CFLAGS and -lXmu to LIBS
+ CFLAGS=-O -I${PREFIX}/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD
+ LIBS= -L${PREFIX}/lib -lm ${PREFIX}/lib/libXm.a -lXpm -lXext -lXt -lSM -lICE -lX11
+
+ include Makefile.common
*** util/Makefile.common.orig Sun Apr 7 17:33:24 1996
--- util/Makefile.common Sun Apr 7 17:33:42 1996
***************
*** 10,16 ****
all: libNUtil.a
libNUtil.a: $(OBJS)
! $(AR) -urs libNUtil.a $(OBJS)
printUtils.o: printUtils.c
$(CC) -c $(CFLAGS) $(PRINTFLAGS) printUtils.c
--- 10,16 ----
all: libNUtil.a
libNUtil.a: $(OBJS)
! $(AR) -ur libNUtil.a $(OBJS)
printUtils.o: printUtils.c
$(CC) -c $(CFLAGS) $(PRINTFLAGS) printUtils.c
*** source/Makefile.freebsd.orig Sun Apr 7 18:10:29 1996
--- source/Makefile.freebsd Sun Apr 7 17:38:04 1996
***************
*** 0 ****
--- 1,8 ----
+ CC=cc
+ AR=ar
+
+ # For editres, add -DEDITRES to CFLAGS and -lXmu to LIBS
+ CFLAGS=-O -I${PREFIX}/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD
+ LIBS= -L${PREFIX}/lib -lm ${PREFIX}/lib/libXm.a -lXpm -lXext -lXt -lSM -lICE -lX11
+
+ include Makefile.common
*** source/Makefile.common.orig Sun Apr 7 17:51:54 1996
--- source/Makefile.common Sun Apr 7 20:07:48 1996
***************
*** 16,21 ****
--- 16,25 ----
nc: nc.o
$(CC) $(CFLAGS) nc.o ../util/libNUtil.a $(LIBS) -o $@
+ install:: nedit nc
+ ${INSTALL} ${COPY} ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} nedit ${PREFIX}/bin
+ ${INSTALL} ${COPY} ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} nc ${PREFIX}/bin
+
help.o: help.c
$(CC) $(CFLAGS) $(BIGGER_STRINGS) -c help.c -o $@
*** source/preferences.c.orig Mon Apr 8 10:35:00 1996
--- source/preferences.c Mon Apr 8 10:35:22 1996
***************
*** 104,110 ****
#else
{"shellCommands", "ShellCommands", PREF_STRING, "spell:Alt+B:s:ED:\n\
(cat;echo \"\") | spell\nwc::w:ED:\nwc\nsort::o:EX:\nsort\n\
! number lines::n:AW:\nnl -ba\nmake:Alt+Z:m:W:\nmake\n\
expand::p:EX:\nexpand\nunexpand::u:EX:\nunexpand\n",
NULL, (void *)MAX_SHELL_CMDS_LEN, True},
#endif /* linux */
--- 104,110 ----
#else
{"shellCommands", "ShellCommands", PREF_STRING, "spell:Alt+B:s:ED:\n\
(cat;echo \"\") | spell\nwc::w:ED:\nwc\nsort::o:EX:\nsort\n\
! number lines::n:AW:\npr -tn\nmake:Alt+Z:m:W:\nmake\n\
expand::p:EX:\nexpand\nunexpand::u:EX:\nunexpand\n",
NULL, (void *)MAX_SHELL_CMDS_LEN, True},
#endif /* linux */
*** source/textDisp.c.orig Sun Apr 7 17:35:04 1996
--- source/textDisp.c Sun Apr 7 17:35:44 1996
***************
*** 1556,1562 ****
line number, and the number of visible lines respectively. The scroll
bar maximum value is chosen to generally represent the size of the whole
buffer, with minor adjustments to keep the scroll bar widget happy */
! sliderSize = textD->nVisibleLines;
sliderValue = textD->topLineNum;
sliderMax = max(textD->nBufferLines + 2, sliderSize + sliderValue);
XtVaSetValues(textD->vScrollBar,
--- 1556,1562 ----
line number, and the number of visible lines respectively. The scroll
bar maximum value is chosen to generally represent the size of the whole
buffer, with minor adjustments to keep the scroll bar widget happy */
! sliderSize = max(textD->nVisibleLines, 1);
sliderValue = textD->topLineNum;
sliderMax = max(textD->nBufferLines + 2, sliderSize + sliderValue);
XtVaSetValues(textD->vScrollBar,

View File

@ -0,0 +1 @@
An X11/Motif GUI text editor for programs and plain text files.

10
editors/nedit/pkg-descr Normal file
View File

@ -0,0 +1,10 @@
NEdit is a GUI (Graphical User Interface) style text editor for
programs and plain-text files. Users of Macintosh and MS Windows
based text editors will find NEdit a familiar and comfortable
environment. NEdit provides all of the standard menu, dialog,
editing, and mouse support, as well as all of the standard shortcuts
to which the users of modern GUI based environments are accustomed.
For users of older style Unix editors, welcome to the world of
mouse-based editing!
This port requires Motif to build.

5
editors/nedit/pkg-plist Normal file
View File

@ -0,0 +1,5 @@
bin/nedit
bin/nc
man/man1/nedit.1
man/man1/nc.1
lib/X11/app-defaults/NEdit