summaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorexplorer <explorer>1997-10-29 19:48:28 +0000
committerexplorer <explorer>1997-10-29 19:48:28 +0000
commitebca6309cd9bd743e4d0cdde6eeca458058dd437 (patch)
treed389bec180038d7e9b99ef73ea33321a55e6453b /editors
parent2a8cc8a1e1f5ea122e13284974468237e204b371 (diff)
downloadpkgsrc-ebca6309cd9bd743e4d0cdde6eeca458058dd437.tar.gz
Import FreeBSD port of the "joe" text editor.
Diffstat (limited to 'editors')
-rw-r--r--editors/joe/Makefile19
-rw-r--r--editors/joe/files/md51
-rw-r--r--editors/joe/patches/patch-aa106
-rw-r--r--editors/joe/patches/patch-ab63
-rw-r--r--editors/joe/pkg/COMMENT1
-rw-r--r--editors/joe/pkg/DESCR9
-rw-r--r--editors/joe/pkg/PLIST11
7 files changed, 210 insertions, 0 deletions
diff --git a/editors/joe/Makefile b/editors/joe/Makefile
new file mode 100644
index 00000000000..165af8f1e1e
--- /dev/null
+++ b/editors/joe/Makefile
@@ -0,0 +1,19 @@
+# New ports collection makefile for: joe
+# Version required: 2.8
+# Date created: 01 Jul 1995
+# Whom: torstenb@FreeBSD.ORG
+#
+# $Id: Makefile,v 1.1.1.1 1997/10/29 19:48:28 explorer Exp $
+#
+
+DISTNAME= joe2.8
+PKGNAME= joe-2.8
+CATEGORIES= editors
+MASTER_SITES= ftp://ftp.std.com/src/editors/
+EXTRACT_SUFX= .tar.Z
+
+WRKSRC= ${WRKDIR}/joe
+ALL_TARGET= joe
+MAN1= joe.1
+
+.include <bsd.port.mk>
diff --git a/editors/joe/files/md5 b/editors/joe/files/md5
new file mode 100644
index 00000000000..58ec9d53e36
--- /dev/null
+++ b/editors/joe/files/md5
@@ -0,0 +1 @@
+MD5 (joe2.8.tar.Z) = bad4221aa63ca432e37dac1a953294b1
diff --git a/editors/joe/patches/patch-aa b/editors/joe/patches/patch-aa
new file mode 100644
index 00000000000..755912494ed
--- /dev/null
+++ b/editors/joe/patches/patch-aa
@@ -0,0 +1,106 @@
+*** Makefile.orig Sat Jul 1 18:43:39 1995
+--- Makefile Sat Jul 1 18:59:47 1995
+***************
+*** 9,17 ****
+ # to go and where you want the man page
+ # to go:
+
+! WHEREJOE = /usr/local/bin
+! WHERERC = /usr/local/lib
+! WHEREMAN = /usr/man/man1
+
+ # If you want to use TERMINFO, you have to set
+ # the following variable to 1. Also you have to
+--- 9,17 ----
+ # to go and where you want the man page
+ # to go:
+
+! WHEREJOE = ${PREFIX}/bin
+! WHERERC = ${PREFIX}/lib
+! WHEREMAN = ${PREFIX}/man/man1
+
+ # If you want to use TERMINFO, you have to set
+ # the following variable to 1. Also you have to
+***************
+*** 27,33 ****
+
+ # C compiler options: make's built-in rules use this variable
+
+! CFLAGS = -O
+
+ # C compiler to use: make's built-in rules use this variable
+
+--- 27,33 ----
+
+ # C compiler options: make's built-in rules use this variable
+
+! # CFLAGS = -O
+
+ # C compiler to use: make's built-in rules use this variable
+
+***************
+*** 84,100 ****
+
+ # Install proceedure
+
+! install: joe termidx
+ strip joe
+! strip termidx
+ if [ ! -d $(WHEREJOE) ]; then mkdir $(WHEREJOE); chmod a+rx $(WHEREJOE); fi
+! rm -f $(WHEREJOE)/joe $(WHEREJOE)/jmacs $(WHEREJOE)/jstar $(WHEREJOE)/jpico $(WHEREJOE)/rjoe $(WHEREJOE)/termidx
+ mv joe $(WHEREJOE)
+ ln $(WHEREJOE)/joe $(WHEREJOE)/jmacs
+ ln $(WHEREJOE)/joe $(WHEREJOE)/jstar
+ ln $(WHEREJOE)/joe $(WHEREJOE)/rjoe
+ ln $(WHEREJOE)/joe $(WHEREJOE)/jpico
+! mv termidx $(WHEREJOE)
+ if [ ! -d $(WHERERC) ]; then mkdir $(WHERERC); chmod a+rx $(WHERERC); fi
+ rm -f $(WHERERC)/joerc $(WHERERC)/jmacsrc $(WHERERC)/jstarrc $(WHERERC)/jpicorc $(WHERERC)/rjoerc $(WHEREMAN)/joe.1
+ cp joerc $(WHERERC)
+--- 84,100 ----
+
+ # Install proceedure
+
+! install: joe # termidx
+ strip joe
+! # strip termidx
+ if [ ! -d $(WHEREJOE) ]; then mkdir $(WHEREJOE); chmod a+rx $(WHEREJOE); fi
+! rm -f $(WHEREJOE)/joe $(WHEREJOE)/jmacs $(WHEREJOE)/jstar $(WHEREJOE)/jpico $(WHEREJOE)/rjoe # $(WHEREJOE)/termidx
+ mv joe $(WHEREJOE)
+ ln $(WHEREJOE)/joe $(WHEREJOE)/jmacs
+ ln $(WHEREJOE)/joe $(WHEREJOE)/jstar
+ ln $(WHEREJOE)/joe $(WHEREJOE)/rjoe
+ ln $(WHEREJOE)/joe $(WHEREJOE)/jpico
+! # mv termidx $(WHEREJOE)
+ if [ ! -d $(WHERERC) ]; then mkdir $(WHERERC); chmod a+rx $(WHERERC); fi
+ rm -f $(WHERERC)/joerc $(WHERERC)/jmacsrc $(WHERERC)/jstarrc $(WHERERC)/jpicorc $(WHERERC)/rjoerc $(WHEREMAN)/joe.1
+ cp joerc $(WHERERC)
+***************
+*** 114,126 ****
+ chmod a+r $(WHERERC)/rjoerc
+ chmod a+r $(WHERERC)/jpicorc
+ chmod a+r $(WHEREMAN)/joe.1
+! chmod a+x $(WHEREJOE)/termidx
+! rm -f $(WHERERC)/termcap
+! cp termcap $(WHERERC)/termcap
+! chmod a+r $(WHERERC)/termcap
+! rm -f $(WHERERC)/terminfo
+! cp terminfo $(WHERERC)/terminfo
+! chmod a+r $(WHERERC)/terminfo
+
+ # Cleanup proceedure
+
+--- 114,126 ----
+ chmod a+r $(WHERERC)/rjoerc
+ chmod a+r $(WHERERC)/jpicorc
+ chmod a+r $(WHEREMAN)/joe.1
+! # chmod a+x $(WHEREJOE)/termidx
+! # rm -f $(WHERERC)/termcap
+! # cp termcap $(WHERERC)/termcap
+! # chmod a+r $(WHERERC)/termcap
+! # rm -f $(WHERERC)/terminfo
+! # cp terminfo $(WHERERC)/terminfo
+! # chmod a+r $(WHERERC)/terminfo
+
+ # Cleanup proceedure
+
diff --git a/editors/joe/patches/patch-ab b/editors/joe/patches/patch-ab
new file mode 100644
index 00000000000..19a262be026
--- /dev/null
+++ b/editors/joe/patches/patch-ab
@@ -0,0 +1,63 @@
+*** main.c.old Sun Jan 22 03:21:08 1995
+--- main.c Tue Oct 15 16:54:32 1996
+***************
+*** 18,23 ****
+--- 18,27 ----
+
+ #include <stdio.h>
+ #include <fcntl.h>
++ #if defined(__FreeBSD__) || defined(__NetBSD__)
++ #include <locale.h>
++ #include <ctype.h>
++ #endif
+ #include "config.h"
+ #include "w.h"
+ #include "tty.h"
+***************
+*** 186,191 ****
+--- 190,209 ----
+ #else
+ run=namprt(argv[0]);
+ #endif
++
++ #if defined(__FreeBSD__) || defined(__NetBSD__)
++ setlocale(LC_ALL, "");
++ for(c=0;c<256;c++)
++ { int a=0;
++ if(iscntrl(c))
++ a|=UNDERLINE;
++ if((c&0x80)&&!isprint(c))
++ a|=INVERSE;
++ xlata[c]=a;
++ if(isprint(c))
++ xlatc[c]=c;
++ }
++ #endif
+
+ if(s=getenv("LINES")) sscanf(s,"%d",&lines);
+ if(s=getenv("COLUMNS")) sscanf(s,"%d",&columns);
+*** scrn.h.old Thu Oct 6 10:09:04 1994
+--- scrn.h Tue Oct 15 16:42:29 1996
+***************
+*** 254,263 ****
+
+ #define xlat(a,c) \
+ ( \
+! (dspasis && ((unsigned)(c)>=128)) ? \
+ ((a)=0) \
+ : \
+! (((a)=xlata[(unsigned)(c)]), ((c)=xlatc[(unsigned)(c)])) \
+ )
+
+ /* int eraeol(SCRN *t,int x,int y);
+--- 254,263 ----
+
+ #define xlat(a,c) \
+ ( \
+! (dspasis && ((unsigned char)(c)>=128)) ? \
+ ((a)=0) \
+ : \
+! (((a)=xlata[(unsigned char)(c)]), ((c)=xlatc[(unsigned char)(c)])) \
+ )
+
+ /* int eraeol(SCRN *t,int x,int y);
diff --git a/editors/joe/pkg/COMMENT b/editors/joe/pkg/COMMENT
new file mode 100644
index 00000000000..0dbd3670e23
--- /dev/null
+++ b/editors/joe/pkg/COMMENT
@@ -0,0 +1 @@
+Joe's own editor.
diff --git a/editors/joe/pkg/DESCR b/editors/joe/pkg/DESCR
new file mode 100644
index 00000000000..fa4a0a0d104
--- /dev/null
+++ b/editors/joe/pkg/DESCR
@@ -0,0 +1,9 @@
+ JOE is the professional freeware ASCII text screen editor for UNIX.
+It makes full use of the power and versatility of UNIX, but lacks the steep
+learning curve and basic nonsense you have to deal with in every other UNIX
+editor. JOE has the feel of most IBM PC text editors: The key-sequences are
+reminiscent of WordStar and Turbo-C. JOE is much more powerful than those
+editors, however. JOE has all of the features a UNIX user should expect:
+full use of termcap/terminfo, excellent screen update optimizations (JOE is
+fully useable at 2400 baud), simple installation, and all of the
+UNIX-integration features of VI.
diff --git a/editors/joe/pkg/PLIST b/editors/joe/pkg/PLIST
new file mode 100644
index 00000000000..66e049a3614
--- /dev/null
+++ b/editors/joe/pkg/PLIST
@@ -0,0 +1,11 @@
+bin/joe
+bin/jmacs
+bin/jstar
+bin/rjoe
+bin/jpico
+lib/joerc
+lib/jmacsrc
+lib/jstarrc
+lib/rjoerc
+lib/jpicorc
+man/man1/joe.1.gz