2018-04-23 09:55:55 -04:00
|
|
|
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
|
|
|
|
|
|
2018-09-29 09:58:30 -04:00
|
|
|
PortSystem 1.0
|
|
|
|
|
PortGroup python 1.0
|
2018-04-23 09:55:55 -04:00
|
|
|
|
2018-09-29 09:58:30 -04:00
|
|
|
name py-asteval
|
2026-06-18 21:21:19 -04:00
|
|
|
version 1.0.9
|
2019-08-24 10:47:46 -04:00
|
|
|
revision 0
|
2019-08-24 10:43:15 -04:00
|
|
|
|
2018-09-29 09:58:30 -04:00
|
|
|
categories-append math
|
2022-11-10 23:19:58 -05:00
|
|
|
platforms {darwin any}
|
2019-08-24 10:43:15 -04:00
|
|
|
supported_archs noarch
|
2019-08-24 10:47:46 -04:00
|
|
|
license MIT
|
2019-03-29 17:26:25 -04:00
|
|
|
maintainers {reneeotten @reneeotten} openmaintainer
|
2019-08-24 10:43:15 -04:00
|
|
|
|
2019-08-24 10:47:46 -04:00
|
|
|
description Safe, minimalistic evaluator of python expression using ast module
|
2018-09-29 09:58:30 -04:00
|
|
|
long_description ASTEVAL is a safe(ish) evaluator of Python expressions and \
|
|
|
|
|
statements, using Python's ast module. The idea is to provide \
|
|
|
|
|
a simple, safe, and robust miniature mathematical language that \
|
|
|
|
|
can handle user-input. The emphasis here is on mathematical \
|
|
|
|
|
expressions, and so many functions from numpy are imported and \
|
|
|
|
|
used if available.
|
2019-08-24 10:43:15 -04:00
|
|
|
|
2024-03-07 23:03:01 -05:00
|
|
|
homepage https://github.com/lmfit/asteval
|
2018-04-23 09:55:55 -04:00
|
|
|
|
2026-06-18 21:21:19 -04:00
|
|
|
checksums rmd160 c86af27acfb2e8d2843342d0bfeb5e495aedbdec \
|
|
|
|
|
sha256 4f7323d63d9fbf89d7e1d5f8bb59b6c093970c15bb5926e6e67d0195858aa230 \
|
|
|
|
|
size 55237
|
2024-07-03 21:14:43 -04:00
|
|
|
|
2025-10-15 14:12:20 -04:00
|
|
|
python.versions 310 311 312 313 314
|
2018-04-23 09:55:55 -04:00
|
|
|
|
2018-09-29 10:01:54 -04:00
|
|
|
if {${subport} ne ${name}} {
|
2019-08-24 10:43:15 -04:00
|
|
|
depends_build-append \
|
2021-06-23 10:59:22 -04:00
|
|
|
port:py${python.version}-setuptools_scm
|
2018-04-23 09:55:55 -04:00
|
|
|
|
2019-08-24 10:43:15 -04:00
|
|
|
test.run yes
|
2018-07-16 21:17:37 -04:00
|
|
|
|
2019-05-24 13:54:24 -04:00
|
|
|
post-destroot {
|
|
|
|
|
set docdir ${prefix}/share/doc/${subport}
|
|
|
|
|
xinstall -d ${destroot}${docdir}
|
2024-07-03 21:14:43 -04:00
|
|
|
xinstall -m 0644 -W ${worksrcpath} README.rst \
|
2019-05-24 13:54:24 -04:00
|
|
|
LICENSE ${destroot}${docdir}
|
|
|
|
|
}
|
2018-04-23 09:55:55 -04:00
|
|
|
}
|