diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2002-12-03 07:15:21 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2002-12-03 07:15:21 +0000 |
commit | 58673b5198d9e7ecf9652951b85c2d7b66a8e126 (patch) | |
tree | 6bb29a8462c6a5613f5a904b6b24e63dee075ff6 /math/rascal/files | |
parent | dad821b043534b3561a02b1d3a2851a20c3fe72c (diff) | |
download | ports-58673b5198d9e7ecf9652951b85c2d7b66a8e126.tar.gz ports-58673b5198d9e7ecf9652951b85c2d7b66a8e126.zip |
Notes
Diffstat (limited to 'math/rascal/files')
-rw-r--r-- | math/rascal/files/patch-Makefile | 20 | ||||
-rw-r--r-- | math/rascal/files/patch-hoc.y | 50 | ||||
-rw-r--r-- | math/rascal/files/patch-rascal.1 | 70 |
3 files changed, 106 insertions, 34 deletions
diff --git a/math/rascal/files/patch-Makefile b/math/rascal/files/patch-Makefile index 2c6470845840..9a15175deca8 100644 --- a/math/rascal/files/patch-Makefile +++ b/math/rascal/files/patch-Makefile @@ -1,20 +1,28 @@ ---- Makefile.orig Thu Jun 28 02:07:37 2001 -+++ Makefile Thu Jun 28 02:11:27 2001 -@@ -21,4 +21,3 @@ +--- Makefile.orig Mon Dec 2 11:51:54 2002 ++++ Makefile Mon Dec 2 11:53:24 2002 +@@ -19,8 +19,7 @@ + + VERSION=0.3.2 -CC=g++ --CFLAGS=-O0 -g -DVERSION=\"$(VERSION)\" +-CFLAGS=-O0 -fno-rtti -g -DVERSION=\"$(VERSION)\" +CFLAGS+=-DVERSION=\"$(VERSION)\" -I%%LOCALBASE%%/include # With the following options you may generate an optimized version of -@@ -38,3 +37,3 @@ + # Rascal, but you will need a lot of time (takes 20min, that is 15* + # longer, on my machine) and physical memory (256 MB physical memory +@@ -38,10 +37,14 @@ + RMDIR=rm -rf + INSTDIR=install -d -LIBS=-lm -lreadline -lcurses +LIBS=-lm -lreadline -lcurses -L%%LOCALBASE%%/lib -lgnugetopt OBJS=y.tab.o lex.yy.o symtab.o value.o -@@ -42,2 +41,6 @@ + -include value.mak + +.SUFFIXES: .o .c + +.c.o: ; ${CXX} ${CFLAGS} -c $*.c + all: rascal + diff --git a/math/rascal/files/patch-hoc.y b/math/rascal/files/patch-hoc.y index 598f32de0081..8cd3f2472df4 100644 --- a/math/rascal/files/patch-hoc.y +++ b/math/rascal/files/patch-hoc.y @@ -1,6 +1,6 @@ ---- hoc.y.orig Thu Jun 20 10:22:54 2002 -+++ hoc.y Thu Jun 20 10:35:33 2002 -@@ -36,6 +36,10 @@ +--- hoc.y.orig Tue May 14 06:09:26 2002 ++++ hoc.y Tue Dec 3 14:45:21 2002 +@@ -38,6 +38,11 @@ #include <math.h> #include <stdlib.h> #include <string.h> @@ -8,31 +8,25 @@ +extern "C" { +#include <getopt.h> +} ++ int precis=8; void * set_string_input(char *); -@@ -197,17 +201,17 @@ - ; - PARSERexpr: - PARSERexpr PARSERwhite { $$ = $1; } -- | PARSERfunction { $$ = new value($1) } -- | PARSERfunction2 { $$ = new value($1) } -- | PARSERat PARSERprocedure { $$ = new value($2) } -- | PARSERuserfunction { $$ = new value($1) } -- | PARSERat PARSERvariable { $$ = new value($2) } -+ | PARSERfunction { $$ = new value($1); } -+ | PARSERfunction2 { $$ = new value($1); } -+ | PARSERat PARSERprocedure { $$ = new value($2); } -+ | PARSERuserfunction { $$ = new value($1); } -+ | PARSERat PARSERvariable { $$ = new value($2); } - | PARSERlbracket PARSERexprlist PARSERrbracket { $$=new value(bracket(cell(($2)->asMATRIX(),1),cell(($2)->asMATRIX(),2))); delete $2; } - | PARSERwhite PARSERexpr %prec PARSERbecomes { $$ = $2; } - | PARSERnumber { $$ = $1; } - | PARSERvariable { $$ = new value($1->var); } -- | PARSERvariable PARSERplusplus { $1->var=$1->var+1; $$ = new value($1->var) } -- | PARSERvariable PARSERminusminus { $1->var=$1->var-1; $$ = new value($1->var) } -+ | PARSERvariable PARSERplusplus { $1->var=$1->var+1; $$ = new value($1->var); } -+ | PARSERvariable PARSERminusminus { $1->var=$1->var-1; $$ = new value($1->var); } - | PARSERvariable PARSERbecomes PARSERexpr { $$ = $3; $1->var=*($3);} - | PARSERprocedure { $$=new value( (*($1->ivalue.procptr))() ); } - | PARSERexpr PARSERlbracket PARSERmatrix PARSERrbracket +@@ -517,7 +522,7 @@ + cout << " The content of given files and expressions will be treated as user input" << endl; + cout << " in the order rc-file, given files, expressions." << endl; + cout << endl; +- cout << " The rc-file is searched in /etc/rascal.rc, /usr/local/bin/rascal.rc, rascal.rc" << endl; ++ cout << " The rc-file is searched in %%PREFIX%%/etc/rascal.rc, rascal.rc" << endl; + return 0; + case 'n': + norc=1; +@@ -556,7 +561,7 @@ + } + + if(norc==0) +- if(load("/etc/rascal.rc") && load("/usr/local/bin/rascal.rc") && load("rascal.rc")) ++ if(load("%%PREFIX%%/etc/rascal.rc") && load("rascal.rc")) + ; // no rcfile found + + if(doeval!="") diff --git a/math/rascal/files/patch-rascal.1 b/math/rascal/files/patch-rascal.1 new file mode 100644 index 000000000000..03bcabe4bd44 --- /dev/null +++ b/math/rascal/files/patch-rascal.1 @@ -0,0 +1,70 @@ +--- rascal.1.orig Tue May 14 06:09:26 2002 ++++ rascal.1 Tue Dec 3 14:58:09 2002 +@@ -64,7 +64,7 @@ + For more information read the extensive user documentation: + + .B gv +-.I /usr/local/doc/rascal/rascal.ps ++.I %%PREFIX%%/share/doc/rascal/rascal.ps + + .SH EXAMPLE SESSIONS + +@@ -114,10 +114,7 @@ + [-4 2;3 -1] + + .SH FILES +-.I /etc/rascal.rc +-.RS +-.RE +-.I /usr/local/bin/rascal.rc ++.I %%PREFIX%%/etc/rascal.rc + .RS + .RE + .I ./rascal.rc +@@ -126,30 +123,30 @@ + i) + .RE + .P +-.I /usr/local/doc/rascal/rascal.ps ++.I %%PREFIX%%/share/doc/rascal/rascal.ps + .RS + .RE +-.I /usr/local/doc/rascal/rascal.pdf ++.I %%PREFIX%%/share/doc/rascal/rascal.pdf + .RS + .RE +-.I /usr/local/doc/rascal/rascal/rascal.html ++.I %%PREFIX%%/share/doc/rascal/html/rascal.html + .RS + User documentation, to view it invoke + .RS + .RE + .B gv +-.I /usr/local/doc/rascal/rascal.ps ++.I %%PREFIX%%/share/doc/rascal/rascal.ps + .RE + .P +-.I /usr/local/doc/rascal/TEST ++.I %%PREFIX%%/share/doc/rascal/TEST + .RS + Test suite, to test Rascal invoke + .RS + .RE +-.BI "rascal " "/usr/local/doc/rascal/TEST" ++.BI "rascal " "%%PREFIX%%/share/doc/rascal/TEST" + .RE + .P +-.I /usr/local/doc/rascal/CHANGES ++.I %%PREFIX%%/share/doc/rascal/CHANGES + .RS + Changelog + +@@ -169,7 +166,7 @@ + .I "http://rascal.sourceforge.net/" + and attach the output of the test + .RE +-.BI "rascal " "/usr/local/doc/rascal/TEST" ++.BI "rascal " "%%PREFIX%%/share/doc/rascal/TEST" + + .SH AUTHOR + Sebastian Ritterbusch <rascal@ritterbusch.de> |