aboutsummaryrefslogtreecommitdiff
path: root/math/spar
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2001-06-01 03:47:52 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2001-06-01 03:47:52 +0000
commitac027f3c61ce18bfca895ff0971b0777e04b374e (patch)
treea9461ea0f2c5c53d31dd4283db6debfc1c0315b9 /math/spar
parent5ce67365d60f3257c635b420c2b0a246e24b6f59 (diff)
downloadports-ac027f3c61ce18bfca895ff0971b0777e04b374e.tar.gz
ports-ac027f3c61ce18bfca895ff0971b0777e04b374e.zip
add spar
A modular math parser
Notes
Notes: svn path=/head/; revision=43374
Diffstat (limited to 'math/spar')
-rw-r--r--math/spar/Makefile28
-rw-r--r--math/spar/distinfo1
-rw-r--r--math/spar/files/patch-spar::readline.c10
-rw-r--r--math/spar/pkg-comment1
-rw-r--r--math/spar/pkg-descr22
-rw-r--r--math/spar/pkg-plist35
6 files changed, 97 insertions, 0 deletions
diff --git a/math/spar/Makefile b/math/spar/Makefile
new file mode 100644
index 000000000000..8d4e7d508cd1
--- /dev/null
+++ b/math/spar/Makefile
@@ -0,0 +1,28 @@
+# ex:ts=8
+# New ports collection makefile for: spar
+# Date created: Jun 1, 2001
+# Whom: ijliao
+#
+# $FreeBSD$
+#
+
+PORTNAME= spar
+PORTVERSION= 0.5.1
+CATEGORIES= math devel
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+
+MAINTAINER= ijliao@FreeBSD.org
+
+LIB_DEPENDS= gnugetopt:${PORTSDIR}/devel/libgnugetopt
+
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib -lgnugetopt"
+INSTALLS_SHLIB= yes
+
+MAN1= spar.1
+
+post-patch:
+ @${PERL} -pi -e "s,-ldl,,g" ${WRKSRC}/lib/Makefile.in
+
+.include <bsd.port.mk>
diff --git a/math/spar/distinfo b/math/spar/distinfo
new file mode 100644
index 000000000000..d978439108d6
--- /dev/null
+++ b/math/spar/distinfo
@@ -0,0 +1 @@
+MD5 (spar-0.5.1.tar.gz) = 767856a532b6cbada739255cd6c25f25
diff --git a/math/spar/files/patch-spar::readline.c b/math/spar/files/patch-spar::readline.c
new file mode 100644
index 000000000000..4c1fc29c64c1
--- /dev/null
+++ b/math/spar/files/patch-spar::readline.c
@@ -0,0 +1,10 @@
+--- spar/readline.c.orig Fri Jun 1 11:25:10 2001
++++ spar/readline.c Fri Jun 1 11:25:24 2001
+@@ -30,6 +30,7 @@
+ #include "cmd_table.h"
+
+ #ifdef HAVE_READLINE_HISTORY_H
++#include <stdio.h>
+ #include <readline/history.h>
+
+ int
diff --git a/math/spar/pkg-comment b/math/spar/pkg-comment
new file mode 100644
index 000000000000..90601cfdd6a7
--- /dev/null
+++ b/math/spar/pkg-comment
@@ -0,0 +1 @@
+A modular math parser
diff --git a/math/spar/pkg-descr b/math/spar/pkg-descr
new file mode 100644
index 000000000000..062d1c867baa
--- /dev/null
+++ b/math/spar/pkg-descr
@@ -0,0 +1,22 @@
+Spar is a modular math parser that comes with a fully featured text frontend,
+something like an interactive calculator. It also provides a simple but
+complete API for C/C++ programmers. This API provide a complete interface to
+a top down parser that supports: variables, constants, functions, modules and
+a libc based math library. This math library overrides standard functions with
+a "custom" version (such as. deg, rad auto conversion, infinite symbol,
+function domain...).
+
+Spar, can be easily extended with modules. A module is a "user" extensions,
+written in C/C++, to the basic features of the Simple Parser. Here you can
+find the module definition: is a C structure that contains only few data
+member:
+ - module name
+ - module version
+ - module description
+ - a pointer to the module main function
+
+The modules are loaded at run-time by the module loader (that is a high level
+layer of the module manager): you can load your modules, simply, coping theirs
+paths into the .spar_modules (or any other file, with the -c option).
+
+WWW: http://spar.sourceforge.net/
diff --git a/math/spar/pkg-plist b/math/spar/pkg-plist
new file mode 100644
index 000000000000..e4df291ba292
--- /dev/null
+++ b/math/spar/pkg-plist
@@ -0,0 +1,35 @@
+bin/spar
+include/sl/sl.h
+include/sl/sl_chartype.h
+include/sl/sl_conf.h
+include/sl/sl_constant.h
+include/sl/sl_error.h
+include/sl/sl_function.h
+include/sl/sl_init.h
+include/sl/sl_input.h
+include/sl/sl_memory.h
+include/sl/sl_module.h
+include/sl/sl_module_loader.h
+include/sl/sl_module_manager.h
+include/sl/sl_parser.h
+include/sl/sl_util.h
+include/sl/sl_variable.h
+include/sl/sl_writer.h
+include/sl_math.h
+include/sl_math_library.h
+include/sl_poly.h
+include/sl_sort.h
+include/sl_table.h
+lib/libspar.a
+lib/libspar.la
+lib/libspar.so
+lib/spar/solve_c.a
+lib/spar/solve_c.la
+lib/spar/solve_c.so
+lib/spar/solve_q.a
+lib/spar/solve_q.la
+lib/spar/solve_q.so
+share/spar/modules_config
+@dirrm include/sl
+@dirrm lib/spar
+@dirrm share/spar