blob: 16e0c030cca7135e48b7e32400e3c096b7c45b9c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack.package import *
class Libmatheval(AutotoolsPackage, GNUMirrorPackage):
"""GNU libmatheval is a library (callable from C and Fortran) to parse
and evaluate symbolic expressions input as text. It supports expressions
in any number of variables of arbitrary names, decimal and symbolic
constants, basic unary and binary operators, and elementary mathematical
functions. In addition to parsing and evaluation, libmatheval can also
compute symbolic derivatives and output expressions to strings."""
homepage = "https://www.gnu.org/software/libmatheval/"
gnu_mirror_path = "libmatheval/libmatheval-1.1.11.tar.gz"
license("GPL-3.0-or-later")
version("1.1.11", sha256="474852d6715ddc3b6969e28de5e1a5fbaff9e8ece6aebb9dc1cc63e9e88e89ab")
# Only needed for unit tests, but configure crashes without it
depends_on("guile", type="build")
depends_on("flex")
# guile 2.0 provides a deprecated interface for the unit test using guile
patch("guile-2.0.patch", when="^guile@2.0")
# guile 2.2 does not support deprecated functions any longer
# the patch skips the unit tests
patch("guile-2.2.patch", when="^guile@2.2:")
|