/
Portfile
42 lines (36 loc) · 1.58 KB
/
Portfile
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
35
36
37
38
39
40
41
42
PortSystem 1.0
name libmatheval
version 1.1.11
revision 2
categories math devel
platforms darwin
license GPL-3
maintainers nomaintainer
description in-memory tree representations of mathematical functions
long_description GNU libmatheval is comprised of several procedures \
that make it possible to create in-memory tree \
representations of mathematical functions over single \
or multiple variables and later use them to evaluate \
function for specified variable values, to create a \
corresponding tree for function derivatives over a \
specified variable, or to print a textual \
representation of the in-memory tree to a specified \
string. The library supports arbitrary variable names \
in expressions, decimal constants, basic unary and \
binary operators, and elementary mathematical functions.
homepage https://www.gnu.org/software/libmatheval/
master_sites gnu
checksums md5 595420ea60f6ddd75623847f46ca45c4 \
rmd160 e48bbe2fdae4237e4e455ea84b10a53874124312 \
sha256 474852d6715ddc3b6969e28de5e1a5fbaff9e8ece6aebb9dc1cc63e9e88e89ab
#patchfiles patch-config.h.in.diff
post-patch {
reinplace "s/-lguile/-lguile18/" ${worksrcpath}/configure
reinplace "s/libguile.h/libguile18.h/g" ${worksrcpath}/configure ${worksrcpath}/tests/matheval.c
}
depends_build port:guile18
depends_lib port:flex
configure.args --infodir=${prefix}/share/info
configure.env-append GUILE=${prefix}/bin/guile18 GUILE_CONFIG=${prefix}/bin/guile18-config GUILE_TOOLS=${prefix}/bin/guile18-tools
test.run yes
test.target check