joe stable port information

Package: joe
Version: 3.5
Revision: 1002
Description: User friendly full screen text editor
License: GPL
Maintainer: Andreas Gockel
Depends: libncurses5-shlibs (>= 5.4-20041023-1006) | libncursesw5-shlibs (>= 5.4-20041023-1001)
BuildDepends: libncurses5 (>= 5.4-20041023-1006) | libncursesw5 (>= 5.4-20041023-1001)
Suggests: ispell | aspell
Source: mirror:sourceforge:%n-editor/%n-%v.tar.gz
Source-MD5: 9bdffecce7ef910feaa06452d48843de
Source2: http://cvsweb.allbsd.org/cvsweb.cgi/~checkout~/contrib/code/jupp/jupprc?rev=1.15&content-type=text/plain&cvsroot=mirbsd
Source2Rename: %n-3_1jupp9
Source2-MD5: 60d584e5ec84a5e16e3272ef9796de0d
Patch: %n.patch
ConfigureParams: --mandir=%p/share/man --sysconfdir=%p/etc --disable-dependency-tracking
InstallScript: <<
make install DESTDIR=%d
/bin/rm %i/bin/termidx
/bin/ln -s %n %i/bin/jupp
/usr/bin/install -c -m 444 ../%n-3_1jupp9 %i/etc/%n/jupprc
/usr/bin/gzip -9 %i/share/man/man1/%n.1
/usr/bin/gzip -9 %i/share/man/ru/man1/%n.1
for i in jmacs jstar r%n jpico jupp; do \
/bin/ln -s %n.1.gz %i/share/man/man1/${i}.1.gz; \
done
for i in COPYING TODO docs/help-system.html; do \
/usr/bin/install -c -m 444 ${i} %i/share/doc/%n/; \
done
for i in ChangeLog COPYING HACKING help-system.html HINTS LIST NEWS README TODO; do \
/usr/bin/gzip -9 %i/share/doc/%n/${i}; \
done
<<
PostInstScript: <<
if [ "$1" = "configure" ]; then
update-alternatives --install %p/bin/editor editor %p/bin/%n 70 \
--slave %p/share/man/man1/editor.1.gz editor.1.gz %p/share/man/man1/%n.1.gz
update-alternatives --install %p/etc/%n/editorrc editorrc %p/etc/%n/%nrc 70
update-alternatives --install %p/bin/editor editor %p/bin/jupp 50 \
--slave %p/share/man/man1/editor.1.gz editor.1.gz %p/share/man/man1/jupp.1.gz
update-alternatives --install %p/etc/%n/editorrc editorrc %p/etc/%n/jupprc 50
update-alternatives --install %p/bin/editor editor %p/bin/jmacs 50 \
--slave %p/share/man/man1/editor.1.gz editor.1.gz %p/share/man/man1/jmacs.1.gz
update-alternatives --install %p/etc/%n/editorrc editorrc %p/etc/%n/jmacsrc 50
update-alternatives --install %p/bin/editor editor %p/bin/jstar 50 \
--slave %p/share/man/man1/editor.1.gz editor.1.gz %p/share/man/man1/jstar.1.gz
update-alternatives --install %p/etc/%n/editorrc editorrc %p/etc/%n/jstarrc 50
update-alternatives --install %p/bin/editor editor %p/bin/jpico 50 \
--slave %p/share/man/man1/editor.1.gz editor.1.gz %p/share/man/man1/jpico.1.gz
update-alternatives --install %p/etc/%n/editorrc editorrc %p/etc/%n/jpicorc 50
update-alternatives --install %p/bin/editor editor %p/bin/r%n 25 \
--slave %p/share/man/man1/editor.1.gz editor.1.gz %p/share/man/man1/r%n.1.gz
update-alternatives --install %p/etc/%n/editorrc editorrc %p/etc/%n/r%nrc 25
fi
<<
PreRmScript: <<
if [ "$1" != "upgrade" ]; then
update-alternatives --remove editor %p/bin/%n
update-alternatives --remove editorrc %p/etc/%n/%nrc
update-alternatives --remove editor %p/bin/jupp
update-alternatives --remove editorrc %p/etc/%n/jupprc
update-alternatives --remove editor %p/bin/jmacs
update-alternatives --remove editorrc %p/etc/%n/jmacsrc
update-alternatives --remove editor %p/bin/jstar
update-alternatives --remove editorrc %p/etc/%n/jstarrc
update-alternatives --remove editor %p/bin/jpico
update-alternatives --remove editorrc %p/etc/%n/jpicorc
update-alternatives --remove editor %p/bin/r%n
update-alternatives --remove editorrc %p/etc/%n/r%nrc
fi
<<
PostRmScript: <<
if [ "$1" = "purge" ]; then
rm -rf %p/etc/%n
fi
<<
ConfFiles: <<
%p/etc/%n/charmaps/klingon %p/etc/%n/jmacsrc %p/etc/%n/%nrc %p/etc/%n/jpicorc
%p/etc/%n/jstarrc %p/etc/%n/jupprc %p/etc/%n/r%nrc %p/etc/%n/syntax/4gl.jsf
%p/etc/%n/syntax/ada.jsf %p/etc/%n/syntax/asm.jsf %p/etc/%n/syntax/awk.jsf
%p/etc/%n/syntax/c.jsf %p/etc/%n/syntax/cobol.jsf %p/etc/%n/syntax/conf.jsf
%p/etc/%n/syntax/csh.jsf %p/etc/%n/syntax/css.jsf %p/etc/%n/syntax/diff.jsf
%p/etc/%n/syntax/fortran.jsf %p/etc/%n/syntax/html.jsf %p/etc/%n/syntax/java.jsf
%p/etc/%n/syntax/lisp.jsf %p/etc/%n/syntax/mail.jsf %p/etc/%n/syntax/mason.jsf
%p/etc/%n/syntax/ocaml.jsf %p/etc/%n/syntax/pascal.jsf %p/etc/%n/syntax/perl.jsf
%p/etc/%n/syntax/php.jsf %p/etc/%n/syntax/ps.jsf %p/etc/%n/syntax/python.jsf
%p/etc/%n/syntax/sed.jsf %p/etc/%n/syntax/sh.jsf %p/etc/%n/syntax/sml.jsf
%p/etc/%n/syntax/sql.jsf %p/etc/%n/syntax/tcl.jsf %p/etc/%n/syntax/tex.jsf
%p/etc/%n/syntax/verilog.jsf %p/etc/%n/syntax/vhdl.jsf %p/etc/%n/syntax/xml.jsf
<<
Homepage: http://sourceforge.net/projects/joe-editor
DescDetail: <<
Joe, the Joe's Own Editor, has the feel of most PC text editors: the key
sequences are reminiscent of WordStar and Turbo C editors, but the feature
set is much larger than of those. Joe has all of the features a Unix
user should expect: full use of termcap/terminfo, complete VI-style Unix
integration, a powerful configuration file, and regular expression search
system. It also has six help reference cards which are always available,
and an intuitive, simple, and well thought-out user interface.
.
Joe has a great screen update optimization algorithm, multiple windows
(through/between which you can scroll) and lacks the confusing notion of
named buffers. It has command history, TAB expansion in file selection
menus, undo and redo functions, (un)indenting and paragraph formatting,
filtering highlighted blocks through any external Unix command, editing
a pipe into or out of a command, and block move, copy, delete or filter.
.
Through simple QEdit-style configuration files, Joe can be set up to
emulate editors such as Pico and Emacs, along with a complete imitation
of WordStar, and a restricted mode version (lets you edit only the files
specified on the command line). Joe also has a deferred screen update to
handle type-ahead, and it ensures that deferral is not bypassed by tty
buffering. It's usable even at 2400 baud, and it will work on any
kind of sane terminal.
<<
DescUsage: <<
Uses update-alternatives in case users wants to change between
default editor.
<<
DescPackaging: <<
Patched Makefile to get docs in the right place.
Since %n doesn't use termcap (but terminfo), termidx can be removed.
Fixing Segfault when using execmd with empty command.
.
Previous versions by Christoph Pfisterer and Matt Stephenson
<<

joe stable port .patch

diff -urN joe-3.5/Makefile.in joe-3.5-p1/Makefile.in
--- joe-3.5/Makefile.in 2006-07-20 19:24:18.000000000 +0000
+++ joe-3.5-p1/Makefile.in 2007-05-28 15:01:58.000000000 +0000
@@ -216,7 +216,7 @@
sysconf_joedir = $(sysconfdir)/joe
sysconf_charmapsdir = $(sysconf_joedir)/charmaps
sysconf_charmaps_DATA = charmaps/klingon
-sysconf_docdir = $(sysconf_joedir)/doc
+sysconf_docdir = $(datadir)/doc/joe
sysconf_doc_DATA = LIST README HINTS ChangeLog HACKING NEWS
noinst_HEADERS = b.h blocks.h bw.h cmd.h config.h hash.h help.h kbd.h \
macro.h main.h menu.h path.h poshist.h pw.h queue.h qw.h rc.h regex.h \
diff -urN joe-3.5/macro.c joe-3.5-p1/macro.c
--- joe-3.5/macro.c 2006-07-19 00:19:02.000000000 +0000
+++ joe-3.5-p1/macro.c 2007-05-28 15:03:04.000000000 +0000
@@ -113,6 +113,12 @@
while (joe_isblank(locale_map,buf[x]))
++x;

+ /* If the buffer is only whitespace then treat as unknown command */
+ if (!buf[x]) {
+ *sta = -1;
+ return NULL;
+ }
+
/* Do we have a string? */
if (buf[x] == '\"') {
++x;
diff -urN joe-3.5/man/Makefile.in joe-3.5-p1/man/Makefile.in
--- joe-3.5/man/Makefile.in 2006-07-20 19:24:18.000000000 +0000
+++ joe-3.5-p1/man/Makefile.in 2007-05-28 15:01:58.000000000 +0000
@@ -506,7 +506,7 @@


joe.1 : joe.1.in
- sed 's,@JOERC\@,$(sysconf_joedir),; s,@SPELL\@,@SPELL@,; s,@BINDIR\@,$(bindir),' $(srcdir)/joe.1.in > $@
+ sed 's,@JOERC\@,$(DESTDIR)$(sysconf_joedir),; s,@SPELL\@,@SPELL@,; s,@BINDIR\@,$(DESTDIR)$(bindir),; s,@JOEDOC\@,$(DESTDIR)$(sysconf_docdir),' < $(srcdir)/joe.1.in > $@
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
diff -urN joe-3.5/rc/Makefile.in joe-3.5-p1/rc/Makefile.in
--- joe-3.5/rc/Makefile.in 2006-07-20 19:24:20.000000000 +0000
+++ joe-3.5-p1/rc/Makefile.in 2007-05-28 15:01:58.000000000 +0000
@@ -326,22 +326,22 @@


joerc : joerc.in
- sed 's,@JOERC\@,$(sysconf_joedir),; s,@SPELL\@,@SPELL@,' $(srcdir)/joerc.in > $@
+ sed 's,@JOERC\@,$(DESTDIR)$(sysconf_joedir),; s,@SPELL\@,@SPELL@,; s,@JOEDOC\@,$(DESTDIR)$(sysconf_docdir),' < $(srcdir)/joerc.in > $@

jicerc.ru : jicerc.ru.in
- sed 's,@JOERC\@,$(sysconf_joedir),; s,@SPELL\@,@SPELL@,' $(srcdir)/jicerc.ru.in > $@
+ sed 's,@JOERC\@,$(DESTDIR)$(sysconf_joedir),; s,@SPELL\@,@SPELL@,; s,@JOEDOC\@,$(DESTDIR)$(sysconf_docdir),' < $(srcdir)/jicerc.ru.in > $@

jmacsrc : jmacsrc.in
- sed 's,@JOERC\@,$(sysconf_joedir),; s,@SPELL\@,@SPELL@,' $(srcdir)/jmacsrc.in > $@
+ sed 's,@JOERC\@,$(DESTDIR)$(sysconf_joedir),; s,@SPELL\@,@SPELL@,; s,@JOEDOC\@,$(DESTDIR)$(sysconf_docdir),' < $(srcdir)/jmacsrc.in > $@

jstarrc : jstarrc.in
- sed 's,@JOERC\@,$(sysconf_joedir),; s,@SPELL\@,@SPELL@,' $(srcdir)/jstarrc.in > $@
+ sed 's,@JOERC\@,$(DESTDIR)$(sysconf_joedir),; s,@SPELL\@,@SPELL@,; s,@JOEDOC\@,$(DESTDIR)$(sysconf_docdir),' < $(srcdir)/jstarrc.in > $@

jpicorc : jpicorc.in
- sed 's,@JOERC\@,$(sysconf_joedir),; s,@SPELL\@,@SPELL@,' $(srcdir)/jpicorc.in > $@
+ sed 's,@JOERC\@,$(DESTDIR)$(sysconf_joedir),; s,@SPELL\@,@SPELL@,; s,@JOEDOC\@,$(DESTDIR)$(sysconf_docdir),' < $(srcdir)/jpicorc.in > $@

rjoerc : rjoerc.in
- sed 's,@JOERC\@,$(sysconf_joedir),; s,@SPELL\@,@SPELL@,' $(srcdir)/rjoerc.in > $@
+ sed 's,@JOERC\@,$(DESTDIR)$(sysconf_joedir),; s,@SPELL\@,@SPELL@,; s,@JOEDOC\@,$(DESTDIR)$(sysconf_docdir),' < $(srcdir)/rjoerc.in > $@
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
diff -urN joe-3.5/rc/jmacsrc.in joe-3.5-p1/rc/jmacsrc.in
--- joe-3.5/rc/jmacsrc.in 2006-06-21 13:15:43.000000000 +0000
+++ joe-3.5-p1/rc/jmacsrc.in 2007-05-28 15:01:58.000000000 +0000
@@ -423,7 +423,7 @@
\i \i Send bug reports to: http://sourceforge.net/projects/joe-editor \|\i \i
\i \i \|\i \i
\i \i default jmacsrc file is here @JOERC@/jmacsrc \|\i \i
-\i \i additional documentation can be found here @JOERC@/doc \|\i \i
+\i \i additional documentation can be found here @JOEDOC@ \|\i \i
}

FOURTH SECTION: Key bindings:
diff -urN joe-3.5/rc/joerc.in joe-3.5-p1/rc/joerc.in
--- joe-3.5/rc/joerc.in 2006-06-21 13:15:50.000000000 +0000
+++ joe-3.5-p1/rc/joerc.in 2007-05-28 15:01:58.000000000 +0000
@@ -476,7 +476,7 @@
\i \i Send bug reports to: http://sourceforge.net/projects/joe-editor \|\i \i
\i \i \|\i \i
\i \i default joerc file is here @JOERC@/joerc \|\i \i
-\i \i additional documentation can be found here @JOERC@/doc \|\i \i
+\i \i additional documentation can be found here @JOEDOC@ \|\i \i
}

FOURTH SECTION: Key bindings:
diff -urN joe-3.5/rc/jpicorc.in joe-3.5-p1/rc/jpicorc.in
--- joe-3.5/rc/jpicorc.in 2006-06-21 13:15:56.000000000 +0000
+++ joe-3.5-p1/rc/jpicorc.in 2007-05-28 15:01:58.000000000 +0000
@@ -440,7 +440,7 @@
\i \i Send bug reports to: http://sourceforge.net/projects/joe-editor \|\i \i
\i \i \|\i \i
\i \i default joerc file is here @JOERC@/jpicorc \|\i \i
-\i \i additional documentation can be found here @JOERC@/doc \|\i \i
+\i \i additional documentation can be found here @JOEDOC@ \|\i \i
}

FOURTH SECTION: Key bindings:
diff -urN joe-3.5/rc/jstarrc.in joe-3.5-p1/rc/jstarrc.in
--- joe-3.5/rc/jstarrc.in 2006-06-21 13:16:13.000000000 +0000
+++ joe-3.5-p1/rc/jstarrc.in 2007-05-28 15:01:58.000000000 +0000
@@ -429,7 +429,7 @@
\i \i Send bug reports to: http://sourceforge.net/projects/joe-editor \|\i \i
\i \i \|\i \i
\i \i default jstarrc file is here @JOERC@/jstarrc \|\i \i
-\i \i additional documentation can be found here @JOERC@/doc \|\i \i
+\i \i additional documentation can be found here @JOEDOC@ \|\i \i
}

FOURTH SECTION: Key bindings:
diff -urN joe-3.5/rc/rjoerc.in joe-3.5-p1/rc/rjoerc.in
--- joe-3.5/rc/rjoerc.in 2006-06-21 13:16:25.000000000 +0000
+++ joe-3.5-p1/rc/rjoerc.in 2007-05-28 15:01:58.000000000 +0000
@@ -440,7 +440,7 @@
\i \i Send bug reports to: http://sourceforge.net/projects/joe-editor \|\i \i
\i \i \|\i \i
\i \i default joerc file is here @JOERC@/joerc \|\i \i
-\i \i additional documentation can be found here @JOERC@/doc \|\i \i
+\i \i additional documentation can be found here @JOEDOC@ \|\i \i
}


joe _unstable_ port information

Package: joe
Version: 3.5
Revision: 1002
Description: User friendly full screen text editor
License: GPL
Maintainer: Andreas Gockel
Depends: libncurses5-shlibs (>= 5.4-20041023-1006) | libncursesw5-shlibs (>= 5.4-20041023-1001)
BuildDepends: libncurses5 (>= 5.4-20041023-1006) | libncursesw5 (>= 5.4-20041023-1001)
Suggests: ispell | aspell
Source: mirror:sourceforge:%n-editor/%n-%v.tar.gz
Source-MD5: 9bdffecce7ef910feaa06452d48843de
Source2: http://cvsweb.allbsd.org/cvsweb.cgi/~checkout~/contrib/code/jupp/jupprc?rev=1.15&content-type=text/plain&cvsroot=mirbsd
Source2Rename: %n-3_1jupp9
Source2-MD5: 60d584e5ec84a5e16e3272ef9796de0d
Patch: %n.patch
ConfigureParams: --mandir=%p/share/man --sysconfdir=%p/etc --disable-dependency-tracking
InstallScript: <<
make install DESTDIR=%d
/bin/rm %i/bin/termidx
/bin/ln -s %n %i/bin/jupp
/usr/bin/install -c -m 444 ../%n-3_1jupp9 %i/etc/%n/jupprc
/usr/bin/gzip -9 %i/share/man/man1/%n.1
/usr/bin/gzip -9 %i/share/man/ru/man1/%n.1
for i in jmacs jstar r%n jpico jupp; do \
/bin/ln -s %n.1.gz %i/share/man/man1/${i}.1.gz; \
done
for i in COPYING TODO docs/help-system.html; do \
/usr/bin/install -c -m 444 ${i} %i/share/doc/%n/; \
done
for i in ChangeLog COPYING HACKING help-system.html HINTS LIST NEWS README TODO; do \
/usr/bin/gzip -9 %i/share/doc/%n/${i}; \
done
<<
PostInstScript: <<
if [ "$1" = "configure" ]; then
update-alternatives --install %p/bin/editor editor %p/bin/%n 70 \
--slave %p/share/man/man1/editor.1.gz editor.1.gz %p/share/man/man1/%n.1.gz
update-alternatives --install %p/etc/%n/editorrc editorrc %p/etc/%n/%nrc 70
update-alternatives --install %p/bin/editor editor %p/bin/jupp 50 \
--slave %p/share/man/man1/editor.1.gz editor.1.gz %p/share/man/man1/jupp.1.gz
update-alternatives --install %p/etc/%n/editorrc editorrc %p/etc/%n/jupprc 50
update-alternatives --install %p/bin/editor editor %p/bin/jmacs 50 \
--slave %p/share/man/man1/editor.1.gz editor.1.gz %p/share/man/man1/jmacs.1.gz
update-alternatives --install %p/etc/%n/editorrc editorrc %p/etc/%n/jmacsrc 50
update-alternatives --install %p/bin/editor editor %p/bin/jstar 50 \
--slave %p/share/man/man1/editor.1.gz editor.1.gz %p/share/man/man1/jstar.1.gz
update-alternatives --install %p/etc/%n/editorrc editorrc %p/etc/%n/jstarrc 50
update-alternatives --install %p/bin/editor editor %p/bin/jpico 50 \
--slave %p/share/man/man1/editor.1.gz editor.1.gz %p/share/man/man1/jpico.1.gz
update-alternatives --install %p/etc/%n/editorrc editorrc %p/etc/%n/jpicorc 50
update-alternatives --install %p/bin/editor editor %p/bin/r%n 25 \
--slave %p/share/man/man1/editor.1.gz editor.1.gz %p/share/man/man1/r%n.1.gz
update-alternatives --install %p/etc/%n/editorrc editorrc %p/etc/%n/r%nrc 25
fi
<<
PreRmScript: <<
if [ "$1" != "upgrade" ]; then
update-alternatives --remove editor %p/bin/%n
update-alternatives --remove editorrc %p/etc/%n/%nrc
update-alternatives --remove editor %p/bin/jupp
update-alternatives --remove editorrc %p/etc/%n/jupprc
update-alternatives --remove editor %p/bin/jmacs
update-alternatives --remove editorrc %p/etc/%n/jmacsrc
update-alternatives --remove editor %p/bin/jstar
update-alternatives --remove editorrc %p/etc/%n/jstarrc
update-alternatives --remove editor %p/bin/jpico
update-alternatives --remove editorrc %p/etc/%n/jpicorc
update-alternatives --remove editor %p/bin/r%n
update-alternatives --remove editorrc %p/etc/%n/r%nrc
fi
<<
PostRmScript: <<
if [ "$1" = "purge" ]; then
rm -rf %p/etc/%n
fi
<<
ConfFiles: <<
%p/etc/%n/charmaps/klingon %p/etc/%n/jmacsrc %p/etc/%n/%nrc %p/etc/%n/jpicorc
%p/etc/%n/jstarrc %p/etc/%n/jupprc %p/etc/%n/r%nrc %p/etc/%n/syntax/4gl.jsf
%p/etc/%n/syntax/ada.jsf %p/etc/%n/syntax/asm.jsf %p/etc/%n/syntax/awk.jsf
%p/etc/%n/syntax/c.jsf %p/etc/%n/syntax/cobol.jsf %p/etc/%n/syntax/conf.jsf
%p/etc/%n/syntax/csh.jsf %p/etc/%n/syntax/css.jsf %p/etc/%n/syntax/diff.jsf
%p/etc/%n/syntax/fortran.jsf %p/etc/%n/syntax/html.jsf %p/etc/%n/syntax/java.jsf
%p/etc/%n/syntax/lisp.jsf %p/etc/%n/syntax/mail.jsf %p/etc/%n/syntax/mason.jsf
%p/etc/%n/syntax/ocaml.jsf %p/etc/%n/syntax/pascal.jsf %p/etc/%n/syntax/perl.jsf
%p/etc/%n/syntax/php.jsf %p/etc/%n/syntax/ps.jsf %p/etc/%n/syntax/python.jsf
%p/etc/%n/syntax/sed.jsf %p/etc/%n/syntax/sh.jsf %p/etc/%n/syntax/sml.jsf
%p/etc/%n/syntax/sql.jsf %p/etc/%n/syntax/tcl.jsf %p/etc/%n/syntax/tex.jsf
%p/etc/%n/syntax/verilog.jsf %p/etc/%n/syntax/vhdl.jsf %p/etc/%n/syntax/xml.jsf
<<
Homepage: http://sourceforge.net/projects/joe-editor
DescDetail: <<
Joe, the Joe's Own Editor, has the feel of most PC text editors: the key
sequences are reminiscent of WordStar and Turbo C editors, but the feature
set is much larger than of those. Joe has all of the features a Unix
user should expect: full use of termcap/terminfo, complete VI-style Unix
integration, a powerful configuration file, and regular expression search
system. It also has six help reference cards which are always available,
and an intuitive, simple, and well thought-out user interface.
.
Joe has a great screen update optimization algorithm, multiple windows
(through/between which you can scroll) and lacks the confusing notion of
named buffers. It has command history, TAB expansion in file selection
menus, undo and redo functions, (un)indenting and paragraph formatting,
filtering highlighted blocks through any external Unix command, editing
a pipe into or out of a command, and block move, copy, delete or filter.
.
Through simple QEdit-style configuration files, Joe can be set up to
emulate editors such as Pico and Emacs, along with a complete imitation
of WordStar, and a restricted mode version (lets you edit only the files
specified on the command line). Joe also has a deferred screen update to
handle type-ahead, and it ensures that deferral is not bypassed by tty
buffering. It's usable even at 2400 baud, and it will work on any
kind of sane terminal.
<<
DescUsage: <<
Uses update-alternatives in case users wants to change between
default editor.
<<
DescPackaging: <<
Patched Makefile to get docs in the right place.
Since %n doesn't use termcap (but terminfo), termidx can be removed.
Fixing Segfault when using execmd with empty command.
.
Previous versions by Christoph Pfisterer and Matt Stephenson
<<

joe _unstable_ port .patch

diff -urN joe-3.5/Makefile.in joe-3.5-p1/Makefile.in
--- joe-3.5/Makefile.in 2006-07-20 19:24:18.000000000 +0000
+++ joe-3.5-p1/Makefile.in 2007-05-28 15:01:58.000000000 +0000
@@ -216,7 +216,7 @@
sysconf_joedir = $(sysconfdir)/joe
sysconf_charmapsdir = $(sysconf_joedir)/charmaps
sysconf_charmaps_DATA = charmaps/klingon
-sysconf_docdir = $(sysconf_joedir)/doc
+sysconf_docdir = $(datadir)/doc/joe
sysconf_doc_DATA = LIST README HINTS ChangeLog HACKING NEWS
noinst_HEADERS = b.h blocks.h bw.h cmd.h config.h hash.h help.h kbd.h \
macro.h main.h menu.h path.h poshist.h pw.h queue.h qw.h rc.h regex.h \
diff -urN joe-3.5/macro.c joe-3.5-p1/macro.c
--- joe-3.5/macro.c 2006-07-19 00:19:02.000000000 +0000
+++ joe-3.5-p1/macro.c 2007-05-28 15:03:04.000000000 +0000
@@ -113,6 +113,12 @@
while (joe_isblank(locale_map,buf[x]))
++x;

+ /* If the buffer is only whitespace then treat as unknown command */
+ if (!buf[x]) {
+ *sta = -1;
+ return NULL;
+ }
+
/* Do we have a string? */
if (buf[x] == '\"') {
++x;
diff -urN joe-3.5/man/Makefile.in joe-3.5-p1/man/Makefile.in
--- joe-3.5/man/Makefile.in 2006-07-20 19:24:18.000000000 +0000
+++ joe-3.5-p1/man/Makefile.in 2007-05-28 15:01:58.000000000 +0000
@@ -506,7 +506,7 @@


joe.1 : joe.1.in
- sed 's,@JOERC\@,$(sysconf_joedir),; s,@SPELL\@,@SPELL@,; s,@BINDIR\@,$(bindir),' $(srcdir)/joe.1.in > $@
+ sed 's,@JOERC\@,$(DESTDIR)$(sysconf_joedir),; s,@SPELL\@,@SPELL@,; s,@BINDIR\@,$(DESTDIR)$(bindir),; s,@JOEDOC\@,$(DESTDIR)$(sysconf_docdir),' < $(srcdir)/joe.1.in > $@
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
diff -urN joe-3.5/rc/Makefile.in joe-3.5-p1/rc/Makefile.in
--- joe-3.5/rc/Makefile.in 2006-07-20 19:24:20.000000000 +0000
+++ joe-3.5-p1/rc/Makefile.in 2007-05-28 15:01:58.000000000 +0000
@@ -326,22 +326,22 @@


joerc : joerc.in
- sed 's,@JOERC\@,$(sysconf_joedir),; s,@SPELL\@,@SPELL@,' $(srcdir)/joerc.in > $@
+ sed 's,@JOERC\@,$(DESTDIR)$(sysconf_joedir),; s,@SPELL\@,@SPELL@,; s,@JOEDOC\@,$(DESTDIR)$(sysconf_docdir),' < $(srcdir)/joerc.in > $@

jicerc.ru : jicerc.ru.in
- sed 's,@JOERC\@,$(sysconf_joedir),; s,@SPELL\@,@SPELL@,' $(srcdir)/jicerc.ru.in > $@
+ sed 's,@JOERC\@,$(DESTDIR)$(sysconf_joedir),; s,@SPELL\@,@SPELL@,; s,@JOEDOC\@,$(DESTDIR)$(sysconf_docdir),' < $(srcdir)/jicerc.ru.in > $@

jmacsrc : jmacsrc.in
- sed 's,@JOERC\@,$(sysconf_joedir),; s,@SPELL\@,@SPELL@,' $(srcdir)/jmacsrc.in > $@
+ sed 's,@JOERC\@,$(DESTDIR)$(sysconf_joedir),; s,@SPELL\@,@SPELL@,; s,@JOEDOC\@,$(DESTDIR)$(sysconf_docdir),' < $(srcdir)/jmacsrc.in > $@

jstarrc : jstarrc.in
- sed 's,@JOERC\@,$(sysconf_joedir),; s,@SPELL\@,@SPELL@,' $(srcdir)/jstarrc.in > $@
+ sed 's,@JOERC\@,$(DESTDIR)$(sysconf_joedir),; s,@SPELL\@,@SPELL@,; s,@JOEDOC\@,$(DESTDIR)$(sysconf_docdir),' < $(srcdir)/jstarrc.in > $@

jpicorc : jpicorc.in
- sed 's,@JOERC\@,$(sysconf_joedir),; s,@SPELL\@,@SPELL@,' $(srcdir)/jpicorc.in > $@
+ sed 's,@JOERC\@,$(DESTDIR)$(sysconf_joedir),; s,@SPELL\@,@SPELL@,; s,@JOEDOC\@,$(DESTDIR)$(sysconf_docdir),' < $(srcdir)/jpicorc.in > $@

rjoerc : rjoerc.in
- sed 's,@JOERC\@,$(sysconf_joedir),; s,@SPELL\@,@SPELL@,' $(srcdir)/rjoerc.in > $@
+ sed 's,@JOERC\@,$(DESTDIR)$(sysconf_joedir),; s,@SPELL\@,@SPELL@,; s,@JOEDOC\@,$(DESTDIR)$(sysconf_docdir),' < $(srcdir)/rjoerc.in > $@
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:
diff -urN joe-3.5/rc/jmacsrc.in joe-3.5-p1/rc/jmacsrc.in
--- joe-3.5/rc/jmacsrc.in 2006-06-21 13:15:43.000000000 +0000
+++ joe-3.5-p1/rc/jmacsrc.in 2007-05-28 15:01:58.000000000 +0000
@@ -423,7 +423,7 @@
\i \i Send bug reports to: http://sourceforge.net/projects/joe-editor \|\i \i
\i \i \|\i \i
\i \i default jmacsrc file is here @JOERC@/jmacsrc \|\i \i
-\i \i additional documentation can be found here @JOERC@/doc \|\i \i
+\i \i additional documentation can be found here @JOEDOC@ \|\i \i
}

FOURTH SECTION: Key bindings:
diff -urN joe-3.5/rc/joerc.in joe-3.5-p1/rc/joerc.in
--- joe-3.5/rc/joerc.in 2006-06-21 13:15:50.000000000 +0000
+++ joe-3.5-p1/rc/joerc.in 2007-05-28 15:01:58.000000000 +0000
@@ -476,7 +476,7 @@
\i \i Send bug reports to: http://sourceforge.net/projects/joe-editor \|\i \i
\i \i \|\i \i
\i \i default joerc file is here @JOERC@/joerc \|\i \i
-\i \i additional documentation can be found here @JOERC@/doc \|\i \i
+\i \i additional documentation can be found here @JOEDOC@ \|\i \i
}

FOURTH SECTION: Key bindings:
diff -urN joe-3.5/rc/jpicorc.in joe-3.5-p1/rc/jpicorc.in
--- joe-3.5/rc/jpicorc.in 2006-06-21 13:15:56.000000000 +0000
+++ joe-3.5-p1/rc/jpicorc.in 2007-05-28 15:01:58.000000000 +0000
@@ -440,7 +440,7 @@
\i \i Send bug reports to: http://sourceforge.net/projects/joe-editor \|\i \i
\i \i \|\i \i
\i \i default joerc file is here @JOERC@/jpicorc \|\i \i
-\i \i additional documentation can be found here @JOERC@/doc \|\i \i
+\i \i additional documentation can be found here @JOEDOC@ \|\i \i
}

FOURTH SECTION: Key bindings:
diff -urN joe-3.5/rc/jstarrc.in joe-3.5-p1/rc/jstarrc.in
--- joe-3.5/rc/jstarrc.in 2006-06-21 13:16:13.000000000 +0000
+++ joe-3.5-p1/rc/jstarrc.in 2007-05-28 15:01:58.000000000 +0000
@@ -429,7 +429,7 @@
\i \i Send bug reports to: http://sourceforge.net/projects/joe-editor \|\i \i
\i \i \|\i \i
\i \i default jstarrc file is here @JOERC@/jstarrc \|\i \i
-\i \i additional documentation can be found here @JOERC@/doc \|\i \i
+\i \i additional documentation can be found here @JOEDOC@ \|\i \i
}

FOURTH SECTION: Key bindings:
diff -urN joe-3.5/rc/rjoerc.in joe-3.5-p1/rc/rjoerc.in
--- joe-3.5/rc/rjoerc.in 2006-06-21 13:16:25.000000000 +0000
+++ joe-3.5-p1/rc/rjoerc.in 2007-05-28 15:01:58.000000000 +0000
@@ -440,7 +440,7 @@
\i \i Send bug reports to: http://sourceforge.net/projects/joe-editor \|\i \i
\i \i \|\i \i
\i \i default joerc file is here @JOERC@/joerc \|\i \i
-\i \i additional documentation can be found here @JOERC@/doc \|\i \i
+\i \i additional documentation can be found here @JOEDOC@ \|\i \i
}