From da5578aca5d36c00c4421bea6e70d1d2072c7c25 Mon Sep 17 00:00:00 2001 From: drochner Date: Tue, 24 Aug 2004 12:36:29 +0000 Subject: import libmatheval-1.1.1, a Library for evaluating mathematical expressions --- math/libmatheval/DESCR | 7 +++++++ math/libmatheval/Makefile | 19 +++++++++++++++++++ math/libmatheval/PLIST | 8 ++++++++ math/libmatheval/buildlink3.mk | 31 +++++++++++++++++++++++++++++++ math/libmatheval/distinfo | 5 +++++ math/libmatheval/patches/patch-aa | 13 +++++++++++++ 6 files changed, 83 insertions(+) create mode 100644 math/libmatheval/DESCR create mode 100644 math/libmatheval/Makefile create mode 100644 math/libmatheval/PLIST create mode 100644 math/libmatheval/buildlink3.mk create mode 100644 math/libmatheval/distinfo create mode 100644 math/libmatheval/patches/patch-aa 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); ++} -- cgit v1.2.3