diff options
author | asami <asami@FreeBSD.org> | 1996-04-09 19:03:13 +0800 |
---|---|---|
committer | asami <asami@FreeBSD.org> | 1996-04-09 19:03:13 +0800 |
commit | bfa49547fe2e114d44e7581ee173a2a5284c99c2 (patch) | |
tree | 368fcea58998f50254514e5f87ac1e885ec32006 /editors/nedit | |
parent | 9e3b7e9a32662c1e994aecc87d93caca6e3970f6 (diff) | |
download | freebsd-ports-gnome-bfa49547fe2e114d44e7581ee173a2a5284c99c2.tar.gz freebsd-ports-gnome-bfa49547fe2e114d44e7581ee173a2a5284c99c2.tar.zst freebsd-ports-gnome-bfa49547fe2e114d44e7581ee173a2a5284c99c2.zip |
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>
Diffstat (limited to 'editors/nedit')
-rw-r--r-- | editors/nedit/Makefile | 27 | ||||
-rw-r--r-- | editors/nedit/distinfo | 2 | ||||
-rw-r--r-- | editors/nedit/files/patch-aa | 135 | ||||
-rw-r--r-- | editors/nedit/pkg-comment | 1 | ||||
-rw-r--r-- | editors/nedit/pkg-descr | 10 | ||||
-rw-r--r-- | editors/nedit/pkg-plist | 5 |
6 files changed, 180 insertions, 0 deletions
diff --git a/editors/nedit/Makefile b/editors/nedit/Makefile new file mode 100644 index 000000000000..0c376acb80b4 --- /dev/null +++ b/editors/nedit/Makefile @@ -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> diff --git a/editors/nedit/distinfo b/editors/nedit/distinfo new file mode 100644 index 000000000000..f5f34ff5a420 --- /dev/null +++ b/editors/nedit/distinfo @@ -0,0 +1,2 @@ +MD5 (nedit_source.tar) = a6c47527ade8ba284696324c65af62b3 +MD5 (nedit.app-defaults) = 410daeaf3129d0b9333e558183b586aa diff --git a/editors/nedit/files/patch-aa b/editors/nedit/files/patch-aa new file mode 100644 index 000000000000..540e206842fc --- /dev/null +++ b/editors/nedit/files/patch-aa @@ -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, diff --git a/editors/nedit/pkg-comment b/editors/nedit/pkg-comment new file mode 100644 index 000000000000..7ad704204aff --- /dev/null +++ b/editors/nedit/pkg-comment @@ -0,0 +1 @@ +An X11/Motif GUI text editor for programs and plain text files. diff --git a/editors/nedit/pkg-descr b/editors/nedit/pkg-descr new file mode 100644 index 000000000000..5b8fd2e384fa --- /dev/null +++ b/editors/nedit/pkg-descr @@ -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. diff --git a/editors/nedit/pkg-plist b/editors/nedit/pkg-plist new file mode 100644 index 000000000000..e364238e02d2 --- /dev/null +++ b/editors/nedit/pkg-plist @@ -0,0 +1,5 @@ +bin/nedit +bin/nc +man/man1/nedit.1 +man/man1/nc.1 +lib/X11/app-defaults/NEdit |