summaryrefslogtreecommitdiff
path: root/math/libmatheval
diff options
context:
space:
mode:
authordrochner <drochner>2004-08-24 12:36:29 +0000
committerdrochner <drochner>2004-08-24 12:36:29 +0000
commit306f9f2213a309c3b8f39c25ed7cdba3bf33f995 (patch)
tree317de1f971068c80ffad9ed1398789a9ee8293d3 /math/libmatheval
parent07ff9fd1c1887a4221803e1a84da10a54512152d (diff)
downloadpkgsrc-306f9f2213a309c3b8f39c25ed7cdba3bf33f995.tar.gz
import libmatheval-1.1.1, a
Library for evaluating mathematical expressions
Diffstat (limited to 'math/libmatheval')
-rw-r--r--math/libmatheval/DESCR7
-rw-r--r--math/libmatheval/Makefile19
-rw-r--r--math/libmatheval/PLIST8
-rw-r--r--math/libmatheval/buildlink3.mk31
-rw-r--r--math/libmatheval/distinfo5
-rw-r--r--math/libmatheval/patches/patch-aa13
6 files changed, 83 insertions, 0 deletions
diff --git a/math/libmatheval/DESCR b/math/libmatheval/DESCR
new file mode 100644
index 00000000000..8c358d9ab70
--- /dev/null
+++ b/math/libmatheval/DESCR
@@ -0,0 +1,7 @@
+GNU libmatheval is a library which contains several procedures that make
+it possible to create an in-memory tree from the string representation
+of a mathematical function over single or multiple variables. This tree
+can be used later to evaluate a function for specified variable values,
+to create a corresponding tree for the function derivative over a
+specified variable, or to write a textual tree representation to a
+specified string. The library exposes C and Fortran 77 interfaces.
diff --git a/math/libmatheval/Makefile b/math/libmatheval/Makefile
new file mode 100644
index 00000000000..d6dee3dd776
--- /dev/null
+++ b/math/libmatheval/Makefile
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/08/24 12:36:29 drochner Exp $
+#
+
+DISTNAME= libmatheval-1.1.1
+CATEGORIES= math
+MASTER_SITES= ${MASTER_SITE_GNU:=libmatheval/}
+
+MAINTAINER= tech-pkg@NetBSD.org
+HOMEPAGE= http://www.gnu.org/software/libmatheval/
+COMMENT= Library for evaluating mathematical expressions
+
+USE_BUILDLINK3= yes
+USE_PKGLOCALEDIR= yes
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+
+.include "../../devel/flex/buildlink3.mk"
+.include "../../lang/guile/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/math/libmatheval/PLIST b/math/libmatheval/PLIST
new file mode 100644
index 00000000000..4c869cf3a97
--- /dev/null
+++ b/math/libmatheval/PLIST
@@ -0,0 +1,8 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/08/24 12:36:29 drochner Exp $
+include/matheval.h
+info/libmatheval.info
+lib/libmatheval.a
+lib/libmatheval.la
+lib/libmatheval.so
+lib/libmatheval.so.1
+lib/libmatheval.so.1.0
diff --git a/math/libmatheval/buildlink3.mk b/math/libmatheval/buildlink3.mk
new file mode 100644
index 00000000000..de1785e5394
--- /dev/null
+++ b/math/libmatheval/buildlink3.mk
@@ -0,0 +1,31 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2004/08/24 12:36:29 drochner Exp $
+# XXX
+# XXX This file was created automatically using createbuildlink-3.4.
+# XXX After this file as been verified as correct, the comment lines
+# XXX beginning with "XXX" should be removed. Please do not commit
+# XXX unverified buildlink[23].mk files.
+# XXX
+# XXX Packages that only install static libraries or headers should
+# XXX include the following line:
+# XXX
+# XXX BUILDLINK_DEPMETHOD.libmatheval?= build
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+LIBMATHEVAL_BUILDLINK3_MK:= ${LIBMATHEVAL_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= libmatheval
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nlibmatheval}
+BUILDLINK_PACKAGES+= libmatheval
+
+.if !empty(LIBMATHEVAL_BUILDLINK3_MK:M+)
+BUILDLINK_DEPENDS.libmatheval+= libmatheval>=1.1.0
+BUILDLINK_PKGSRCDIR.libmatheval?= ../../math/libmatheval
+.endif # LIBMATHEVAL_BUILDLINK3_MK
+
+.include "../../devel/flex/buildlink3.mk"
+.include "../../lang/guile/buildlink3.mk"
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff --git a/math/libmatheval/distinfo b/math/libmatheval/distinfo
new file mode 100644
index 00000000000..8411eaadbed
--- /dev/null
+++ b/math/libmatheval/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/08/24 12:36:29 drochner Exp $
+
+SHA1 (libmatheval-1.1.1.tar.gz) = 207b8623f16801129b063733abbd585dae78a1a1
+Size (libmatheval-1.1.1.tar.gz) = 480888 bytes
+SHA1 (patch-aa) = 6903e1e79b0ba6a3f7d193b625e6a214efc1d8f3
diff --git a/math/libmatheval/patches/patch-aa b/math/libmatheval/patches/patch-aa
new file mode 100644
index 00000000000..96276b23c97
--- /dev/null
+++ b/math/libmatheval/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/08/24 12:36:29 drochner Exp $
+
+--- lib/scanner.l.orig 2004-08-23 18:45:32.000000000 +0200
++++ lib/scanner.l
+@@ -151,3 +151,8 @@ void input_reset()
+ /* Forget contents of input buffer. */
+ YY_FLUSH_BUFFER;
+ }
++
++int yywrap()
++{
++ return (1);
++}