summaryrefslogtreecommitdiff
path: root/editors/joe/patches
diff options
context:
space:
mode:
authorexplorer <explorer@pkgsrc.org>1997-10-29 19:48:28 +0000
committerexplorer <explorer@pkgsrc.org>1997-10-29 19:48:28 +0000
commit4ed74a869bf2b000bcd155158de552addcf874e0 (patch)
treed389bec180038d7e9b99ef73ea33321a55e6453b /editors/joe/patches
parent89d9ac7fc90e21ae3af5d8fe910119e2be8694a6 (diff)
downloadpkgsrc-4ed74a869bf2b000bcd155158de552addcf874e0.tar.gz
Import FreeBSD port of the "joe" text editor.
Diffstat (limited to 'editors/joe/patches')
-rw-r--r--editors/joe/patches/patch-aa106
-rw-r--r--editors/joe/patches/patch-ab63
2 files changed, 169 insertions, 0 deletions
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);