the stable port information

Package: the
Version: 3.1
Revision: 1016
Maintainer: Eric Oberle
GCC: 4.0
Source: mirror:sourceforge:hessling-editor/THE-%v.tar.gz
Source-MD5: 3d09dad65e1c0efe9ec8ead013df9d08
SourceDirectory: THE-%v
Depends: libncurses5-shlibs, pdcurses-shlibs (>= 2.6-1014), regina-bin (>= 3.2-1026), x11
BuildDepends: libncurses5, pdcurses (>= 2.6-1014), regina (>= 3.2-1026), x11-dev, fink (>= 0.24.12)
Suggests: regina
PatchFile: %n.patch
PatchFile-MD5: 0d1cd98f3eeb04677a1a147b96d5acaf
PatchScript: sed 's|@PREFIX@|%p|g' <%{PatchFile} | patch -p1
CompileScript: <<
#!/bin/sh -ev
./configure --prefix=%p --with-rexx=regina --with-ncurses --with-cursesincdir=%p/include --with-curseslibdir=%p/lib/ncurses
make
mv the the-ncurses
rm config.cache
./configure --prefix=%p --with-rexx=regina --with-xcurses --with-cursesincdir=%p/include --with-curseslibdir=%p/lib
make the
mv the the-xcurses
<<

InstallScript: <<
make install prefix=%i mandir=%i/share/man
install -m 755 -c the.x %i/bin/the
install -m 755 -c the-ncurses %i/bin/
install -m 755 -c the-xcurses %i/bin/
install -m 644 -c system-profile.the %i/share/THE/
install -m 644 -c toggle-prefix.the %i/share/THE/
install -m 644 -c toggle-shadow.the %i/share/THE/
install -m 644 -c apple-terminal-extras-profile.the %i/share/THE/
<<
DocFiles: COPYING FAQ README THE_Help.txt
Description: X/Kedit-like scriptable text/program editor
DescDetail: <<
This package makes Mark Hessling's THE, a unix implementation of IBM's
VM/CMS Xedit and Kedit for the DOS platform, available to the Mac OS X
platform. The includes powerful folding and scripting features,
allowing users to do a search and replace, for example, only on lines
previously selected by other criteria. (Try for example the 'all
/criteria/' command followed by 'c /target/replace/ *') Also try using
the shadow selection prefix and line commands. All of this is fully
scriptable using the Rexx macro language, a powerful tcl-like
programming language (Rexx is made available via fink as the regina
package.)
The fink package of 'the' installs two binary executables, one built to
run in X11 ('the-xcurses') and one built to run in any terminal window,
most notably Apple's ('the-ncurses'). Invoking 'the' from the command
line will invoke whichever of these two versions that seems most
appropriate to the terminal type. The fink package also installs a
default user profile in ~/.therc and sets up a macro directory in
/sw/share/THE, provided the profile file does not already exist.
Full documentation of the editor and its many commands is available at
http://hessling-editor.sourceforge.net/doc/index.html. Some online help
is available within the by issuing the 'help' command from the
command/home line, or by typing shift-F4 under the default profile.
Many thanks for this package are due to Mathias Meyer, who made it
possible.
<<
DescPackaging:
License: GPL
Homepage: http://hessling-editor.sourceforge.net

the stable port .patch

diff -ru THE-3.1/Makefile.in THE-3.1_patched/Makefile.in
--- THE-3.1/Makefile.in Fri Jun 14 14:08:43 2002
+++ THE-3.1_patched/Makefile.in Thu Jun 19 23:14:17 2003
@@ -205,10 +205,10 @@

installbase: the the.man THE_Help.txt
$(INSTALL) -m 755 -d $(bindir)
- $(INSTALL) -m 755 -d $(prefix)/man/man1
+ $(INSTALL) -m 755 -d $(mandir)/man1
$(INSTALL) -m 755 -d $(prefix)/share/THE
$(INSTALL) -m 755 -c ./the $(bindir)/the
- $(INSTALL) -m 644 -c $(srcdir)/the.1 $(prefix)/man/man1/the.1
+ $(INSTALL) -m 644 -c $(srcdir)/the.1 $(mandir)/man1/the.1
$(INSTALL) -m 644 -c ./THE_Help.txt $(prefix)/share/THE/THE_Help.txt
$(INSTALL) -m 644 -c $(srcdir)/append.the $(prefix)/share/THE/append.the
$(INSTALL) -m 644 -c $(srcdir)/comm.the $(prefix)/share/THE/comm.the
diff -ru THE-3.1/system-profile.the THE-3.1_patched/system-profile.the
--- THE-3.1/system-profile.the Thu Jun 19 23:15:00 2003
+++ THE-3.1_patched/system-profile.the Thu Jun 19 23:13:26 2003
@@ -0,0 +1,52 @@
+/*trace all */
+ Command 'def f1 macro toggle-prefix'
+ Command 'def f2 macro toggle-shadow'
+ Command 'def f3 SOS makecurr'
+ Command 'def f4 nextw'
+ Command 'def f5 insertm toggle'
+ Command 'def f6 help '
+ command 'def f7 Spltjoin '
+ Command 'def f8 ffile'
+ Command 'def f9 set highlight altered'
+ command 'def f10 set highlight off'
+ command 'def f11 tabpre'
+ Command 'def f12 cursor home save'
+'Set Reserved -2 F1-Prefix 2-Shadow 3-CurrLin 4-NxtFile 5-InsMode 6-Help 7-Spltjn 8-save 9-hlt=alt 10-hlt=off 11-tabprefix 12-home'
+ Command 'def f13 qquit '
+ Command 'def f14 SOS tabwordb '
+ Command 'def f15 SOS tabwordf '
+ Command 'def f16 SOS startendchar'
+ Command 'def f17 left 75 '
+ Command 'def f18 right 75'
+ Command 'def f19 backward'
+ Command 'def f20 forward'
+ Command 'def C-F1 set hexshow on '
+ Command 'def C-F2 x ~/.therc '
+ Command 'def C-F3 CMAtch'
+ Command 'def C-F4 macro invert'
+ Command 'def C-F5 qquit'
+ Command 'def C-F6 SOS tabwordb '
+ Command 'def C-F7 SOS tabwordf '
+ Command 'def C-F8 SOS startendchar '
+ Command 'def C-F9 SOS left 75 '
+ Command 'def C-F10 SOS right 75 '
+ Command 'def C-F11 SOS backward '
+ Command 'def C-F12 SOS forward '
+ Command 'def S-F11 backward '
+ Command 'def S-F12 forward'
+ Command 'def c-f12 right 75'
+ Command 'def c-f11 left 75'
+ Command 'def \163 CMATCH'
+'Set Reserved -1 [ctl+] Hex ProfEd CMAtch [F13-]qquit wordb wordf eol/bol sleft sright Pageup Pagedwn'
+set reprofile on
+set number on
+'set insertmode on'
+'set macropath @PREFIX@/share/THE:@USERHOMEDIR@/.the '
+'def del sos cuadelba'
+'def c-d sos delc'
+'def c-k sos delend '
+'def c-a sos startendchar '
+'def c-v forward '
+'def c-b backward'
+Exit
+
diff -ru THE-3.1/the.x THE-3.1_patched/the.x
--- THE-3.1/the.x Thu Jun 19 23:15:06 2003
+++ THE-3.1_patched/the.x Thu Jun 19 23:13:26 2003
@@ -0,0 +1,37 @@
+#!/bin/sh
+#if user has no .therc, provide one
+if [ ! -r ~/.therc ]; then
+printf "/* User Profile for THE, provided by Fink package */
+if Initial() then do
+ macro '@PREFIX@/share/THE/system-profile.the' /*Call initial system profile*/
+ if Arg(1) = 'appleterm' then do /*call extra macro to fix pf key mapping */
+ macro '@PREFIX@/share/THE/apple-terminal-extras-profile.the'
+ end
+ /*place any additional first-run settings below this line */
+
+ /*place additional first-run settings above this line */
+end
+else do
+/* Place all 'reprofile' settings below this line, for execution upon opening of second file */
+
+/* Place all 'reprofile' settings above this line */
+end
+/*place all universal changes here. See above named macro file for model */
+
+
+'set macropath @PREFIX@/share/THE:$HOME/.the'
+ ">> ~/.therc;
+fi
+ #check if user is running in x11 or Apple's terminal, and launch appropriate version.
+ if [ $COLORTERM ]; then
+ the-xcurses $*;
+elif [ $TERM_PROGRAM ]; then
+the-ncurses $* -a appleterm ;
+elif [ $COLORTERM ]; then
+the-xcurses $*;
+elif [ $TERM ]; then
+the-xcurses $*;
+else
+ the-ncurses $* -a appleterm ;
+ fi
+
diff -ru THE-3.1/toggle-prefix.the THE-3.1_patched/toggle-prefix.the
--- THE-3.1/toggle-prefix.the Thu Jun 19 23:15:12 2003
+++ THE-3.1_patched/toggle-prefix.the Thu Jun 19 23:13:26 2003
@@ -0,0 +1,11 @@
+/* set prefix area on when off, set prefix area off when on */
+'extract @PREFIX'
+if prefix.1 = 'ON' then Do
+ 'set prefix off'
+ End
+Else Do
+ 'set prefix on LEFT'
+ End
+
+Exit
+
diff -ru THE-3.1/toggle-shadow.the THE-3.1_patched/toggle-shadow.the
--- THE-3.1/toggle-shadow.the Thu Jun 19 23:15:21 2003
+++ THE-3.1_patched/toggle-shadow.the Thu Jun 19 23:13:26 2003
@@ -0,0 +1,11 @@
+/* shadow off when on, set shadow on when off */
+'extract @SHADOW'
+if shadow.1 = 'ON' then Do
+ 'set shadow off'
+ 'msg shadow lines off'
+ End
+Else Do
+ 'set shadow on'
+ 'msg shadow ON'
+ End
+
diff -ru THE-3.1/apple-terminal-extras-profile.the THE-3.1_patched/apple-terminal-extras-profile.the
--- THE-3.1/apple-terminal-extras-profile.the Thu Jan 19 23:11:21 2004
+++ THE-3.1_patched/apple-terminal-extras-profile.the Thu Jan 19 23:11:26 2004
@@ -0,0 +1,7 @@
+/* apple-terminal-extras.the a set of extra commands to run */
+/* when using the apple terminal environment (ncurses) instead of */
+/* Xcurses (Xfree86) by Eric Oberle */
+ Command 'def pf1 macro toggle-prefix'
+ Command 'def pf2 macro toggle-shadow'
+ Command 'def pf3 SOS makecurr'
+ Command 'def pf4 nextw'
+

the _unstable_ port .patch