summaryrefslogtreecommitdiff
path: root/math/rascal
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2002-06-20 16:44:19 +0000
committerGreg Lewis <glewis@FreeBSD.org>2002-06-20 16:44:19 +0000
commit414d40e1c21e3f473336277f84bd6436ade6541f (patch)
tree4db9c50436ccaaa1acc8a2016082bc484a2de3f6 /math/rascal
parentDon't bother to build tests which aren't installed anyway. (diff)
. Update to 0.3.1.
. Unbreak by adding a patch for hoc.y. Note: Cannot update to 0.3.2 due to 4.x having an older readline library.
Notes
Notes: svn path=/head/; revision=61639
Diffstat (limited to 'math/rascal')
-rw-r--r--math/rascal/Makefile2
-rw-r--r--math/rascal/distinfo2
-rw-r--r--math/rascal/files/patch-hoc.y38
3 files changed, 40 insertions, 2 deletions
diff --git a/math/rascal/Makefile b/math/rascal/Makefile
index 080962fc50f6..21b76e893c38 100644
--- a/math/rascal/Makefile
+++ b/math/rascal/Makefile
@@ -7,7 +7,7 @@
#
PORTNAME= rascal
-PORTVERSION= 0.3.0
+PORTVERSION= 0.3.1
CATEGORIES= math
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
diff --git a/math/rascal/distinfo b/math/rascal/distinfo
index b966acf643bc..2c2c6e457559 100644
--- a/math/rascal/distinfo
+++ b/math/rascal/distinfo
@@ -1 +1 @@
-MD5 (rascal-0.3.0.tar.gz) = 31cc46c064fe938887c4e43419425524
+MD5 (rascal-0.3.1.tar.gz) = 569ff6269f68e1bf29bfe5a3c28ef1ee
diff --git a/math/rascal/files/patch-hoc.y b/math/rascal/files/patch-hoc.y
new file mode 100644
index 000000000000..598f32de0081
--- /dev/null
+++ b/math/rascal/files/patch-hoc.y
@@ -0,0 +1,38 @@
+--- hoc.y.orig Thu Jun 20 10:22:54 2002
++++ hoc.y Thu Jun 20 10:35:33 2002
+@@ -36,6 +36,10 @@
+ #include <math.h>
+ #include <stdlib.h>
+ #include <string.h>
++#include <stdio.h>
++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