TextEdit port
This commit is contained in:
parent
3aebd46044
commit
3397ce1378
28
editors/textedit/Makefile
Normal file
28
editors/textedit/Makefile
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
# New ports collection makefile for: textedit
|
||||||
|
# Version required: 1.0
|
||||||
|
# Date created: 15 Sept 1998
|
||||||
|
# Whom: Ian Darwin <ian@darwinsys.com>
|
||||||
|
#
|
||||||
|
# $Id: Makefile,v 1.1.1.1 1998/09/16 15:02:03 ian Exp $
|
||||||
|
#
|
||||||
|
|
||||||
|
DISTNAME= textedit
|
||||||
|
PKGNAME= textedit-1.0
|
||||||
|
CATEGORIES= editors
|
||||||
|
MASTER_SITES= http://www.darwinsys.com/freeware/
|
||||||
|
|
||||||
|
LIB_DEPENDS= xview\\.3\\.:${PORTSDIR}/x11/xview-lib
|
||||||
|
|
||||||
|
MAINTAINER= ian@OpenBSD.ORG
|
||||||
|
|
||||||
|
USE_IMAKE= yes
|
||||||
|
MAN1= textedit.1
|
||||||
|
|
||||||
|
do-install:
|
||||||
|
$(INSTALL_PROGRAM) $(WRKSRC)/textedit $(PREFIX)/bin/textedit
|
||||||
|
$(INSTALL_MAN) $(WRKSRC)/textedit.man $(PREFIX)/man/man1/textedit.1
|
||||||
|
#don't really need these as they're included only in this program
|
||||||
|
#$(INSTALL_DATA) $(WRKSRC)/textedit.icon $(PREFIX)/include/X11/bitmaps
|
||||||
|
#$(INSTALL_DATA) $(WRKSRC)/textedit.mask.icon $(PREFIX)/include/X11/bitmaps
|
||||||
|
|
||||||
|
.include <bsd.port.mk>
|
1
editors/textedit/files/md5
Normal file
1
editors/textedit/files/md5
Normal file
@ -0,0 +1 @@
|
|||||||
|
MD5 (textedit.tar.gz) = 05535e6137209a4ac1153adf4ecdf736
|
61
editors/textedit/patches/patch-aa
Normal file
61
editors/textedit/patches/patch-aa
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
--- textedit.c.orig Tue Sep 15 15:37:56 1998
|
||||||
|
+++ textedit.c Tue Sep 15 15:55:11 1998
|
||||||
|
@@ -17,7 +17,7 @@
|
||||||
|
|
||||||
|
#include <fcntl.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
-#include <strings.h>
|
||||||
|
+#include <string.h>
|
||||||
|
#include <X11/X.h>
|
||||||
|
#include <xview/defaults.h>
|
||||||
|
#include <xview/font.h>
|
||||||
|
@@ -31,19 +31,11 @@
|
||||||
|
#include <xview/sel_svc.h>
|
||||||
|
#include <xview/sel_attrs.h>
|
||||||
|
|
||||||
|
-#ifdef ecd.help
|
||||||
|
+#ifdef ecd_help
|
||||||
|
#include <suntool/help.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
-/*
|
||||||
|
- * The presence of this line caused textedit not to be built
|
||||||
|
- * The function is already defined in the XView libraries
|
||||||
|
-long textsw_store_file();
|
||||||
|
-*/
|
||||||
|
-char *getwd();
|
||||||
|
-#ifndef __linux
|
||||||
|
-char *sprintf();
|
||||||
|
-#endif
|
||||||
|
+static void die(char *m1, char *m2, char *m3);
|
||||||
|
void frame_cmdline_help();
|
||||||
|
static int off();
|
||||||
|
static Notify_value mysigproc();
|
||||||
|
@@ -312,7 +304,8 @@
|
||||||
|
if (pass_on)
|
||||||
|
(void)textsw_default_notify(textsw_local, attributes);
|
||||||
|
if (repaint) {
|
||||||
|
- (void)sprintf(frame_label, "%s Text Editor - %s%s, dir; %s",
|
||||||
|
+ (void)snprintf(frame_label, sizeof(frame_label),
|
||||||
|
+ "%s Text Editor - %s%s, dir; %s",
|
||||||
|
(caps_lock_on) ? "[CAPS] " : "",
|
||||||
|
current_filename,
|
||||||
|
(was_read_only) ? " (read only)"
|
||||||
|
@@ -521,7 +514,7 @@
|
||||||
|
FRAME_LABEL, "Text Editor",
|
||||||
|
FRAME_SHOW_LABEL, TRUE,
|
||||||
|
FRAME_CMDLINE_HELP_PROC, my_frame_help,
|
||||||
|
-#ifdef ecd.help
|
||||||
|
+#ifdef ecd_help
|
||||||
|
HELP_DATA, "sunview:textedit",
|
||||||
|
#endif
|
||||||
|
0);
|
||||||
|
@@ -998,7 +991,7 @@
|
||||||
|
/*
|
||||||
|
* Misc. utilities
|
||||||
|
*/
|
||||||
|
-static
|
||||||
|
+static void
|
||||||
|
die(msg1, msg2, msg3)
|
||||||
|
char *msg1, *msg2, *msg3;
|
||||||
|
{
|
43
editors/textedit/patches/patch-ab
Normal file
43
editors/textedit/patches/patch-ab
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
--- textedit.man.orig Tue Sep 15 15:57:01 1998
|
||||||
|
+++ textedit.man Tue Sep 15 15:59:39 1998
|
||||||
|
@@ -7,7 +7,7 @@
|
||||||
|
.SH SYNOPSIS
|
||||||
|
.B textedit
|
||||||
|
[
|
||||||
|
-.I generic-tool-arguments
|
||||||
|
+.I generic-xview-arguments
|
||||||
|
]
|
||||||
|
[
|
||||||
|
.B "\-Ea on\|" |\| off
|
||||||
|
@@ -95,10 +95,8 @@
|
||||||
|
]
|
||||||
|
.I filename
|
||||||
|
.SH AVAILABILITY
|
||||||
|
-This command is available with the OpenWindows
|
||||||
|
-environment.
|
||||||
|
-For information about installing OpenWindows, refer to the
|
||||||
|
-.I OpenWindows Installation and Start-Up Guide.
|
||||||
|
+This command is availalbe on OpenBSD as the ports/package named
|
||||||
|
+editors/textedit.
|
||||||
|
.SH DESCRIPTION
|
||||||
|
.IX tools textedit "" "\fLtextedit\fR"
|
||||||
|
.LP
|
||||||
|
@@ -640,6 +638,13 @@
|
||||||
|
usually due to a missing file or running out of swap space
|
||||||
|
.PD
|
||||||
|
.RE
|
||||||
|
+.SH HISTORY
|
||||||
|
+The TextEdit sources are copyright by Sun but were distributed in
|
||||||
|
+their open source distributions of The XView Toolkit, which included
|
||||||
|
+permission to copy them. The version in the OpenBSD ports/editors/textedit
|
||||||
|
+is that found on Darwin Open Systems' 1995
|
||||||
|
+CD-ROM \fIThe XView and OPEN LOOK CD-ROM\fP (see
|
||||||
|
+http://www.darwinsys.com/olcd).
|
||||||
|
.SH BUGS
|
||||||
|
Multi-click to change the current selection does not work for
|
||||||
|
.BR "Adjust Selection" .
|
||||||
|
@@ -647,4 +652,3 @@
|
||||||
|
Handling of long lines is incorrect in certain scrolling situations.
|
||||||
|
.LP
|
||||||
|
There is no way to replay any editing sequence except the most recent.
|
||||||
|
-.LP
|
1
editors/textedit/pkg/COMMENT
Normal file
1
editors/textedit/pkg/COMMENT
Normal file
@ -0,0 +1 @@
|
|||||||
|
The standard OPEN LOOK text editor for X Windows.
|
6
editors/textedit/pkg/DESCR
Normal file
6
editors/textedit/pkg/DESCR
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
Before Motif came along, OPEN LOOK was the standard look and feel for X,
|
||||||
|
for a thousand generations of... Sorry, wrong plot. For a long time.
|
||||||
|
XView was the standard library, and TextEdit the standard Text Editor.
|
||||||
|
Here is an OpenBSD port of TextEdit based upon Sun's open source distribution
|
||||||
|
of The XView Toolkit. For more information on OPEN LOOK, refer to the
|
||||||
|
OPEN LOOK CD-ROM, at http://www.darwinsys.com/olcd.
|
2
editors/textedit/pkg/PLIST
Normal file
2
editors/textedit/pkg/PLIST
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
bin/textedit
|
||||||
|
man/man1/textedit.1
|
Loading…
x
Reference in New Issue
Block a user