2019-10-17 15:13:34 -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
|
|
|
|
|
|
|
|
|
|
|
|
PortSystem 1.0
|
|
|
|
|
|
PortGroup python 1.0
|
|
|
|
|
|
|
|
|
|
|
|
name py-bigfloat
|
2020-01-02 05:22:51 -05:00
|
|
|
|
version 0.4.0
|
2019-10-17 15:13:34 -04:00
|
|
|
|
revision 0
|
|
|
|
|
|
|
|
|
|
|
|
categories-append math
|
|
|
|
|
|
license LGPL-3
|
|
|
|
|
|
maintainers {reneeotten @reneeotten} openmaintainer
|
|
|
|
|
|
|
|
|
|
|
|
description Arbitrary-precision correctly-rounded floating-point arithmetic, via MPFR.
|
2023-11-19 13:04:47 -05:00
|
|
|
|
long_description {*}${description}
|
2019-10-17 15:13:34 -04:00
|
|
|
|
|
|
|
|
|
|
homepage https://github.com/mdickinson/bigfloat
|
|
|
|
|
|
|
2020-01-02 05:22:51 -05:00
|
|
|
|
checksums rmd160 cf8fda5b51bea79861d4635b30f32080493c7b7c \
|
|
|
|
|
|
sha256 58b96bde872aca5989d13d82eba3acf2aa1b94e22117dd72a16ba5911b0c0cb8 \
|
|
|
|
|
|
size 258208
|
2019-10-17 15:13:34 -04:00
|
|
|
|
|
2025-10-14 11:19:57 -04:00
|
|
|
|
python.versions 310 311 312 313 314
|
2019-10-17 15:13:34 -04:00
|
|
|
|
|
|
|
|
|
|
if {${name} ne ${subport}} {
|
2021-10-21 09:44:32 -04:00
|
|
|
|
# make sure that the files are cythonized
|
|
|
|
|
|
post-extract {
|
|
|
|
|
|
file delete ${worksrcpath}/mpfr.c ${worksrcpath}/PKG-INFO
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2019-10-17 15:13:34 -04:00
|
|
|
|
depends_build-append \
|
2024-11-15 13:02:14 -05:00
|
|
|
|
port:py${python.version}-cython
|
2019-10-17 15:13:34 -04:00
|
|
|
|
|
|
|
|
|
|
depends_lib-append \
|
2020-12-13 22:18:35 -05:00
|
|
|
|
port:py${python.version}-six \
|
2019-10-17 15:13:34 -04:00
|
|
|
|
port:gmp \
|
|
|
|
|
|
port:mpfr
|
|
|
|
|
|
|
2024-11-26 21:18:32 +08:00
|
|
|
|
# pycore_frame.h: error: ‘for’ loop initial declaration used outside C99 mode
|
|
|
|
|
|
if {${python.version} == 312} {
|
|
|
|
|
|
build.cmd-prepend CFLAGS=-std=c99
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2019-10-17 15:13:34 -04:00
|
|
|
|
test.run yes
|
2022-06-10 10:27:07 -04:00
|
|
|
|
python.test_framework unittest
|
2019-10-17 15:13:34 -04:00
|
|
|
|
|
|
|
|
|
|
post-destroot {
|
|
|
|
|
|
set docdir ${prefix}/share/doc/${subport}
|
|
|
|
|
|
xinstall -d ${destroot}${docdir}
|
|
|
|
|
|
xinstall -m 0644 -W ${worksrcpath} COPYING.LESSER COPYING \
|
|
|
|
|
|
INSTALL.rst README.rst CHANGELOG.rst ${destroot}${docdir}
|
|
|
|
|
|
xinstall -m 0644 {*}[glob ${worksrcpath}/examples/*] \
|
|
|
|
|
|
${destroot}${prefix}/share/doc/${subport}/examples
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|