diff options
Diffstat (limited to 'lang/Sather/files')
16 files changed, 155 insertions, 19 deletions
diff --git a/lang/Sather/files/freebsd-CONFIG b/lang/Sather/files/freebsd-CONFIG new file mode 100644 index 000000000000..db7bd3fff6a1 --- /dev/null +++ b/lang/Sather/files/freebsd-CONFIG @@ -0,0 +1 @@ +CC_OPTIONS: "-I%%LOCALBASE%%/include -I%%X11BASE%%/include -I%%LOCALBASE%%/include/tcl8.3 -I%%LOCALBASE%%/include/tk8.3 "; diff --git a/lang/Sather/files/freebsd-Makefile b/lang/Sather/files/freebsd-Makefile new file mode 100644 index 000000000000..3b0a0061fd93 --- /dev/null +++ b/lang/Sather/files/freebsd-Makefile @@ -0,0 +1,7 @@ +all: +clean: +test: +boot: + ln -s `pwd`/header.h ../BOOT + $(MAKE) -C $(SATHER_HOME)/Boot/sacomp.code CC=$(CC) + rm -f ../BOOT/header.h diff --git a/lang/Sather/files/freebsd-Platform.module b/lang/Sather/files/freebsd-Platform.module new file mode 100644 index 000000000000..b798fac48763 --- /dev/null +++ b/lang/Sather/files/freebsd-Platform.module @@ -0,0 +1,5 @@ +$(SATHER_HOME)/Library/System/Socket/Socket.module +-external C_SOCKET "$(SATHER_HOME)/Library/System/Socket/socket_support.c " -end +-external BROWSER " " -end +-external C_TCL_TK " " -end + diff --git a/lang/Sather/files/freebsd-header.h b/lang/Sather/files/freebsd-header.h new file mode 100644 index 000000000000..8a2c294fb27c --- /dev/null +++ b/lang/Sather/files/freebsd-header.h @@ -0,0 +1,14 @@ +#ifndef _HEADER_H_ +#define _HEADER_H_ + +#ifndef ZONES +# include <gc.h> +#endif + +#include "../../Common/c_header.h" +#include "../../Common/runtime.h" + +#undef GC_ENABLE_INCREMENTAL + +#endif + diff --git a/lang/Sather/files/patch-03 b/lang/Sather/files/patch-Boot::sacomp.code::Makefile index 84ad725dbffd..63645da4e622 100644 --- a/lang/Sather/files/patch-03 +++ b/lang/Sather/files/patch-Boot::sacomp.code::Makefile @@ -4,9 +4,9 @@ SHOME =../.. -CFLAGS = -I. -O2 -I../System/Common -CC =gcc -+CFLAGS += -I. -I../System/Common -I${LOCALBASE}/include -+CC ?=gcc ++CFLAGS = -I. %%CFLAGS%% -I../System/Common -I%%LOCALBASE%%/include ++CC =%%CC%% HDR =sather.h tags.h -LIBS = -lgc -lm -+LIBS = -lgc -lm -L${LOCALBASE}/lib ++LIBS = -lgc -lm -L%%LOCALBASE%%/lib CS =sacomp diff --git a/lang/Sather/files/patch-Emacs::sather-mode.texinfo b/lang/Sather/files/patch-Emacs::sather-mode.texinfo new file mode 100644 index 000000000000..4e90bc1793dd --- /dev/null +++ b/lang/Sather/files/patch-Emacs::sather-mode.texinfo @@ -0,0 +1,19 @@ +--- Emacs/sather-mode.texinfo.orig Wed Nov 3 22:09:35 1999 ++++ Emacs/sather-mode.texinfo Thu May 2 22:00:14 2002 +@@ -5,7 +5,16 @@ + @setchapternewpage off + @c %**end of header + ++ + @ifinfo ++@format ++INFO-DIR-SECTION Sather ++START-INFO-DIR-ENTRY ++* sather-mode: (sather-mode). ++ The Sather Emacs Programming Environment. ++END-INFO-DIR-ENTRY ++@end format ++ + This file describes the Emacs editing environment for the Sather + language. + diff --git a/lang/Sather/files/patch-Emacs::sather-tutorial.texinfo b/lang/Sather/files/patch-Emacs::sather-tutorial.texinfo new file mode 100644 index 000000000000..fdb309dfa5d3 --- /dev/null +++ b/lang/Sather/files/patch-Emacs::sather-tutorial.texinfo @@ -0,0 +1,17 @@ +--- Emacs/sather-tutorial.texinfo.orig Wed Nov 3 22:09:35 1999 ++++ Emacs/sather-tutorial.texinfo Thu May 2 22:01:24 2002 +@@ -7,6 +7,14 @@ + @setchapternewpage odd + + @ifinfo ++@format ++INFO-DIR-SECTION Sather ++START-INFO-DIR-ENTRY ++* sather-tutorial: (sather-tutorial). ++ The Sather Eclectic Tutorial. ++END-INFO-DIR-ENTRY ++@end format ++ + Sather Eclectic Tutorial + + Copyright (C) 1995 by International Computer Science Institute diff --git a/lang/Sather/files/patch-Emacs::sather.texinfo b/lang/Sather/files/patch-Emacs::sather.texinfo new file mode 100644 index 000000000000..9cf230d89eb3 --- /dev/null +++ b/lang/Sather/files/patch-Emacs::sather.texinfo @@ -0,0 +1,16 @@ +--- Emacs/sather.texinfo.orig Sun Jul 25 17:23:34 1999 ++++ Emacs/sather.texinfo Thu May 2 22:01:13 2002 +@@ -9,6 +9,13 @@ + @c %**end of header + + @ifinfo ++@format ++INFO-DIR-SECTION Sather ++START-INFO-DIR-ENTRY ++* sather: (sather). The Sather Specification. ++END-INFO-DIR-ENTRY ++@end format ++ + This file describes the Sather language. + + Copyright (C) 1995 by International Computer Science Institute diff --git a/lang/Sather/files/patch-Library::System::unix.sa b/lang/Sather/files/patch-Library::System::unix.sa new file mode 100644 index 000000000000..45d4e277ace1 --- /dev/null +++ b/lang/Sather/files/patch-Library::System::unix.sa @@ -0,0 +1,11 @@ +--- Library/System/unix.sa.orig Wed Oct 13 13:34:47 1999 ++++ Library/System/unix.sa +@@ -20,7 +20,7 @@ + sather_home: STR is + r ::= get_env("SATHER_HOME"); + if void(r) then +- r := "/usr/lib/sather"; ++ r := "%%PREFIX%%/lib/sather"; + end; + if r[r.size-1] = '/' then + raise "Environment variable SATHER_HOME should not end with /"; diff --git a/lang/Sather/files/patch-Makefile b/lang/Sather/files/patch-Makefile new file mode 100644 index 000000000000..39ee9bc7c8b6 --- /dev/null +++ b/lang/Sather/files/patch-Makefile @@ -0,0 +1,22 @@ +--- Makefile.orig Thu Nov 4 17:04:28 1999 ++++ Makefile Fri Oct 11 10:13:26 2002 +@@ -30,8 +30,8 @@ + LN=ln -s + CP=cp + +-CPP=/lib/cpp -C -P +-CC=gcc ++CPP=/usr/bin/cpp -C -P ++CC?=cc + EXEC_SUFFIX= + # CC is only used for bootstrapping, check System/Common/CONFIG.proto if + # you want to change it for all Sather compilations +@@ -90,7 +90,7 @@ + # The platform to use if not overridden by a -<platform> option + # or the SATHER_PLATFORM environment variable + # Should be edited for a particular system +-DEFAULT_PLATFORM=unix ++DEFAULT_PLATFORM=freebsd + + # The platform used to compile the boot compiler. Usually just default, but has to + # be one of: freebsd, hpux_at, iris-4, linux, osf_at, solaris, solaris_at, unix, diff --git a/lang/Sather/files/patch-02 b/lang/Sather/files/patch-System::Common::CONFIG.proto index 903d80f8b32b..9e215f218a37 100644 --- a/lang/Sather/files/patch-02 +++ b/lang/Sather/files/patch-System::Common::CONFIG.proto @@ -1,5 +1,5 @@ --- System/Common/CONFIG.proto.orig Thu Nov 4 03:48:17 1999 -+++ System/Common/CONFIG.proto Wed Feb 2 20:25:35 2000 ++++ System/Common/CONFIG.proto Fri Oct 11 10:15:05 2002 @@ -23,12 +23,12 @@ ZONES: false; TRACE: false; @@ -8,7 +8,7 @@ -C_COMPILER: "gcc "; -CC_OPTIONS: ""; -GC_LINK: "-lgc"; -+VERSION: "1.2.1"; ++VERSION: "%%VERSION%%"; +C_COMPILER: "%%CC%% "; +CC_OPTIONS: "-I%%LOCALBASE%%/include"; +GC_LINK: "-lgc -L%%LOCALBASE%%/lib"; @@ -18,7 +18,7 @@ OBJECT_EXT: ".o"; LIB_EXT: ".a"; C_EXT: ".c"; -@@ -38,7 +38,7 @@ +@@ -38,11 +38,11 @@ SEPARATE_POINTERS: false; PSATHER_FLAG: "",""; CC_DEBUG_FLAG: "","-g"; @@ -27,3 +27,8 @@ CC_PROLIX_FLAG: "",""; -- passed to the C compiler (prolix implies verbose) MAKE_VERBOSE_FLAG: "-s","-s"; -- passed to make +-FORTRAN_APPEND_UNDERSCORE: "false"; ++FORTRAN_APPEND_UNDERSCORE: "true"; + FORTRAN_PREFIX_UNDERSCORE: "false"; + FORTRAN_BIND_FUNC: "true"; + diff --git a/lang/Sather/files/patch-System::Platforms::X::Platform.module b/lang/Sather/files/patch-System::Platforms::X::Platform.module new file mode 100644 index 000000000000..1513187697a6 --- /dev/null +++ b/lang/Sather/files/patch-System::Platforms::X::Platform.module @@ -0,0 +1,15 @@ +--- System/Platforms/X/Platform.module.orig Thu May 2 17:18:27 2002 ++++ System/Platforms/X/Platform.module Thu May 2 17:19:33 2002 +@@ -16,10 +16,10 @@ + -- Gui, DualGui and the Browser all rely on these paths + -not_a_real_platform + +--C_flag -I/usr/X11R6/include/X11/ -- Expected to contain X11/ headers ++-C_flag -I%%X11BASE%%/include -- Expected to contain X11/ headers + -- -C_flag -lm + +--C_flag -L/usr/X11R6/lib/ -- Expected to contain libX11.a ++-C_flag -L%%X11BASE%%/lib -- Expected to contain libX11.a + -C_flag -lX11 + + diff --git a/lang/Sather/files/patch-System::Platforms::tcltk::Make.target.inc b/lang/Sather/files/patch-System::Platforms::tcltk::Make.target.inc new file mode 100644 index 000000000000..a86361ecf560 --- /dev/null +++ b/lang/Sather/files/patch-System::Platforms::tcltk::Make.target.inc @@ -0,0 +1,7 @@ +--- System/Platforms/tcltk/Make.target.inc.orig Thu May 2 17:21:52 2002 ++++ System/Platforms/tcltk/Make.target.inc Thu May 2 17:21:35 2002 +@@ -1,2 +1,2 @@ +-TCL_LIB_NAME = $(shell if [ -e /usr/lib/libtcl8.0.so ] ; then echo "tcl8.0" ; else echo "tcl"; fi) +-TK_LIB_NAME = $(shell if [ -e /usr/lib/libtk8.0.so ] ; then echo "tk8.0" ; else echo "tk"; fi) ++TCL_LIB_NAME = tcl83 ++TK_LIB_NAME = tk83 diff --git a/lang/Sather/files/patch-04 b/lang/Sather/files/patch-System::Platforms::unix::header.h index 69c0786ca55b..69c0786ca55b 100644 --- a/lang/Sather/files/patch-04 +++ b/lang/Sather/files/patch-System::Platforms::unix::header.h diff --git a/lang/Sather/files/patch-ab b/lang/Sather/files/patch-ab deleted file mode 100644 index 1adc6c67faa1..000000000000 --- a/lang/Sather/files/patch-ab +++ /dev/null @@ -1,13 +0,0 @@ ---- Makefile.orig Thu Nov 4 17:04:28 1999 -+++ Makefile Wed Feb 2 19:46:11 2000 -@@ -30,8 +30,8 @@ - LN=ln -s - CP=cp - --CPP=/lib/cpp -C -P --CC=gcc -+CPP=/usr/bin/cpp -C -P -+CC?=gcc - EXEC_SUFFIX= - # CC is only used for bootstrapping, check System/Common/CONFIG.proto if - # you want to change it for all Sather compilations diff --git a/lang/Sather/files/patch-debian::bin-wrapper b/lang/Sather/files/patch-debian::bin-wrapper new file mode 100644 index 000000000000..c5e3c8e7804c --- /dev/null +++ b/lang/Sather/files/patch-debian::bin-wrapper @@ -0,0 +1,10 @@ +--- debian/bin-wrapper.orig Thu May 2 19:23:45 2002 ++++ debian/bin-wrapper Thu May 2 19:24:10 2002 +@@ -1,6 +1,6 @@ + #!/bin/sh + +-export SATHER_HOME=/usr/lib/sather ++export SATHER_HOME=%%PREFIX%%/lib/sather + + BIN_NAME=`basename $0` + |