pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
libmatheval: add upgrade candidate
Module Name: pkgsrc-wip
Committed By: Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By: wiz
Date: Tue Nov 10 16:09:35 2026 +0100
Changeset: 1094b747f117943180e0e959df0bf69d18e7ba7f
Modified Files:
Makefile
Added Files:
libmatheval/DESCR
libmatheval/Makefile
libmatheval/PLIST
libmatheval/TODO
libmatheval/buildlink3.mk
libmatheval/distinfo
libmatheval/log
Log Message:
libmatheval: add upgrade candidate
one segfault during tests, reported upstream
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=1094b747f117943180e0e959df0bf69d18e7ba7f
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 2 ++
libmatheval/DESCR | 9 +++++++++
libmatheval/Makefile | 30 ++++++++++++++++++++++++++++++
libmatheval/PLIST | 5 +++++
libmatheval/TODO | 3 +++
libmatheval/buildlink3.mk | 14 ++++++++++++++
libmatheval/distinfo | 6 ++++++
libmatheval/log | 20 ++++++++++++++++++++
8 files changed, 89 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index 20591a1beb..120a3adebb 100644
--- a/Makefile
+++ b/Makefile
@@ -2131,6 +2131,7 @@ SUBDIR+= liblingoteach
SUBDIR+= libltc
SUBDIR+= libm4ri
SUBDIR+= libmapper
+SUBDIR+= libmatheval
SUBDIR+= libminizinc
SUBDIR+= libmirisdr-git
SUBDIR+= libmixed
@@ -2807,6 +2808,7 @@ SUBDIR+= openjfx21
SUBDIR+= openjfx23
SUBDIR+= openjkdf2
SUBDIR+= openlogos
+SUBDIR+= openmeters
SUBDIR+= openmohaa
SUBDIR+= openmp
SUBDIR+= opennurbs
diff --git a/libmatheval/DESCR b/libmatheval/DESCR
new file mode 100644
index 0000000000..0762ef2c3b
--- /dev/null
+++ b/libmatheval/DESCR
@@ -0,0 +1,9 @@
+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.
+
+This package is unmaintained upstream; the last release was in 2013.
diff --git a/libmatheval/Makefile b/libmatheval/Makefile
new file mode 100644
index 0000000000..a4215af886
--- /dev/null
+++ b/libmatheval/Makefile
@@ -0,0 +1,30 @@
+# $NetBSD: Makefile,v 1.27 2025/05/22 11:26:21 wiz Exp $
+
+DISTNAME= libmatheval-1.1.12
+CATEGORIES= math
+MASTER_SITES= ${MASTER_SITE_GNU:=libmatheval/}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://www.gnu.org/software/libmatheval/
+COMMENT= Library for evaluating mathematical expressions
+LICENSE= gnu-gpl-v3
+
+USE_PKGLOCALEDIR= yes
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+USE_TOOLS+= flex
+PTHREAD_OPTS+= require
+INFO_FILES= yes
+PKGCONFIG_OVERRIDE= libmatheval.pc.in
+TEST_TARGET= check
+
+CONFIGURE_ENV+= ac_cv_lib_lex="none needed"
+
+# guile 2.0 fails with "matheval.c:33:2: error: #error Neither scm_num2dbl() nor SCM_NUM2DBL available"
+# guile 2.2 fails
+# Upstream has no bugtracker; reported via bug mailinglist 20220305.
+# https://lists.gnu.org/archive/html/bug-libmatheval/2022-03/msg00000.html
+# Debian seems to have a version patch for guile 3.
+.include "../../lang/guile18/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/libmatheval/PLIST b/libmatheval/PLIST
new file mode 100644
index 0000000000..85f34386e5
--- /dev/null
+++ b/libmatheval/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.3 2007/03/13 10:51:42 drochner Exp $
+include/matheval.h
+info/libmatheval.info
+lib/libmatheval.la
+lib/pkgconfig/libmatheval.pc
diff --git a/libmatheval/TODO b/libmatheval/TODO
new file mode 100644
index 0000000000..b54284c701
--- /dev/null
+++ b/libmatheval/TODO
@@ -0,0 +1,3 @@
+One test failure, 'symbols' dumps core.
+
+Reported upstream on 2026-11-10, waiting for feedback.
diff --git a/libmatheval/buildlink3.mk b/libmatheval/buildlink3.mk
new file mode 100644
index 0000000000..ee4cd2608d
--- /dev/null
+++ b/libmatheval/buildlink3.mk
@@ -0,0 +1,14 @@
+# $NetBSD: buildlink3.mk,v 1.13 2016/03/09 08:25:13 tnn Exp $
+
+BUILDLINK_TREE+= libmatheval
+
+.if !defined(LIBMATHEVAL_BUILDLINK3_MK)
+LIBMATHEVAL_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libmatheval+= libmatheval>=1.1.0
+BUILDLINK_ABI_DEPENDS.libmatheval+= libmatheval>=1.1.4nb2
+BUILDLINK_PKGSRCDIR.libmatheval?= ../../math/libmatheval
+
+.endif # LIBMATHEVAL_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -libmatheval
diff --git a/libmatheval/distinfo b/libmatheval/distinfo
new file mode 100644
index 0000000000..c30b2ba617
--- /dev/null
+++ b/libmatheval/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.10 2021/10/26 10:55:47 nia Exp $
+
+BLAKE2s (libmatheval-1.1.12.tar.gz) = 6be73b2596525f90a449b426d6c5b008c3caf171084aa80974831a10a56cf97a
+SHA512 (libmatheval-1.1.12.tar.gz) = b3fd1fe30ba55d704da15bf95a642ec737f90445e6bcfab5580a5dbb17b76ea11ad0f654465c51e6c7b5fe54f4934a4d8631fa650c7250d3275ebea5aed7e40a
+Size (libmatheval-1.1.12.tar.gz) = 628415 bytes
+SHA1 (patch-aa) = f6e97ab357245e89e5f4173e5a08dc7716c32d35
diff --git a/libmatheval/log b/libmatheval/log
new file mode 100644
index 0000000000..c9d2178bdb
--- /dev/null
+++ b/libmatheval/log
@@ -0,0 +1,20 @@
+Version 1.1.12
+
+* Updated build system to work with current GNU autotools. Guile is
+ needed for test suite only, which now works with Guile 2.0 and later.
+* Fixed buffer overflows in the Fortran interface and in handling of
+ very long strings (reported by Hongduo Zhao).
+* Fixed memory leaks on parsing error, and in Flex generated scanner.
+* Characters not part of the notation are now reported as error,
+ instead of being echoed to standard output.
+* Fixed wrong simplification of 0^x.
+* Fixed wrong derivatives of asinh() and acoth() functions.
+* Inverse hyperbolic functions are calculated by C library, fixing
+ inaccurate results for very small or very large arguments.
+* Added min(), max() and select() functions. Note that min, max and
+ select therefore can not be used as variable names any more.
+* Library exports its interface only, so that its internal symbols
+ (including these of Lex and Yacc generated code) do not clash with
+ symbols of program any more.
+* Fixed compiler warnings and undefined behavior.
+* Fixed errors in the manual, and added short example at its beginning.
Home |
Main Index |
Thread Index |
Old Index