|
1 | 1 | # Template file for 'sagemath' |
2 | 2 | pkgname=sagemath |
3 | | -version=10.7 |
4 | | -revision=4 |
| 3 | +version=10.8 |
| 4 | +revision=1 |
5 | 5 | _pypi_version=${version/.beta/b} |
6 | 6 | _pypi_version=${_pypi_version/.rc/rc} |
7 | 7 | build_style=python3-pep517 |
8 | | -hostmakedepends="pkg-config python3-Cython python3-Jinja2 |
9 | | - python3-pkgconfig python3-setuptools python3-wheel |
10 | | - python3-gmpy2 python3-memory_allocator python3-numpy ecl |
11 | | - python3-cypari2 python3-cysignals python3-devel" |
| 8 | +make_build_args="-C setup-args=-Dbuild-docs=false" |
| 9 | +hostmakedepends="pkg-config |
| 10 | + python3-Jinja2 python3-pkgconfig python3-setuptools |
| 11 | + python3-wheel python3-meson-python" |
12 | 12 | makedepends="boost-headers brial-devel cliquer-devel ecl eclib-devel |
13 | 13 | ecm-devel fflas-ffpack flintlib-devel gap-devel gd-devel glpk-devel |
14 | 14 | gsl-devel iml-devel lcalc-devel libbraiding-devel libhomfly-devel libmpc-devel |
15 | 15 | libpng-devel linbox-devel m4ri-devel m4rie-devel mpfi-devel |
16 | | - mpfr-devel ntl-devel openblas-devel pari-devel planarity-devel python3-cypari2 |
17 | | - python3-cysignals python3-devel python3-gmpy2 python3-memory_allocator |
18 | | - python3-numpy rankwidth-devel singular symmetrica-devel" |
19 | | -depends="eclib-devel fflas-ffpack flintlib-devel gcc-fortran meson gd-devel |
20 | | - gfan gsl-devel gzip libpng-devel linbox-devel m4ri-devel maxima-ecl |
21 | | - mpfr-devel nauty ntl-devel palp pari-devel pari-elldata-small pari-galdata |
22 | | - pari-galpol-small pari-seadata-small pkg-config python3-Cython python3-cypari2 |
23 | | - python3-cysignals python3-devel python3-fpylll python3-ipython python3-lrcalc |
| 16 | + mpfr-devel ntl-devel openblas-devel pari-devel planarity-devel |
| 17 | + singular symmetrica-devel rankwidth-devel |
| 18 | + maxima-ecl nauty gfan |
| 19 | + gcc-fortran palp pari-elldata-small pari-galdata |
| 20 | + pari-galpol-small pari-seadata-small |
| 21 | + sage-data-combinatorial_designs |
| 22 | + sage-data-combinatorial_designs |
| 23 | + sage-data-elliptic_curves |
| 24 | + sage-data-graphs |
| 25 | + sage-data-polytopes_db |
| 26 | + sympow tachyon threejs-sage |
| 27 | + python3-cypari2 python3-cysignals python3-devel python3-gmpy2 |
| 28 | + python3-memory_allocator python3-numpy python3-Cython |
| 29 | + python3-fpylll python3-ipython python3-lrcalc |
24 | 30 | python3-ipython_ipykernel python3-jupyter_ipywidgets python3-matplotlib |
25 | | - python3-memory_allocator python3-networkx python3-pip python3-pkgconfig |
| 31 | + python3-networkx python3-pip |
26 | 32 | python3-pplpy python3-primecountpy python3-requests python3-scipy |
27 | | - python3-sympy python3-traitlets sage-data-combinatorial_designs |
28 | | - python3-conway-polynomials sage-data-elliptic_curves sage-data-graphs |
29 | | - sage-data-polytopes_db sympow tachyon threejs-sage |
30 | | - python3-six python3-gmpy2 python3-numpy python3-pexpect python3-Sphinx |
31 | | - python3-Pillow python3-mpmath python3-jupyter_client python3-ptyprocess" |
32 | | -checkdepends="$depends python3-pytest pythran python3-Sphinx gdb" |
| 33 | + python3-sympy python3-traitlets |
| 34 | + python3-conway-polynomials |
| 35 | + python3-six python3-pexpect python3-Sphinx |
| 36 | + python3-Pillow python3-mpmath python3-jupyter_client python3-ptyprocess |
| 37 | + python3-platformdirs python3-pytest" |
| 38 | +depends="gzip |
| 39 | + python3-Cython python3-Pillow python3-Sphinx python3-conway-polynomials |
| 40 | + python3-cypari2 python3-cysignals python3-fpylll python3-gmpy2 |
| 41 | + python3-ipython python3-ipython_ipykernel python3-jupyter_client |
| 42 | + python3-jupyter_ipywidgets python3-matplotlib python3-memory_allocator |
| 43 | + python3-mpmath python3-networkx python3-numpy python3-pexpect |
| 44 | + python3-pkgconfig python3-platformdirs python3-pplpy python3-primecountpy |
| 45 | + python3-ptyprocess python3-requests python3-scipy python3-six |
| 46 | + python3-sympy python3-traitlets" |
| 47 | +checkdepends="${depends} python3-pytest pythran python3-Sphinx gdb" |
33 | 48 | short_desc="Open source mathematics software" |
34 | 49 | maintainer="Gonzalo Tornaría < [email protected]>" |
35 | 50 | license="GPL-2.0-or-later" |
36 | 51 | homepage="https://www.sagemath.org/" |
37 | 52 | changelog="https://github.com/sagemath/sage/releases" |
38 | | -distfiles="${PYPI_SITE}/s/sagemath-standard/sagemath_standard-${_pypi_version}.tar.gz" |
39 | | -checksum=f6ec41913a745b94e20ceae69c2c54a7c8e549b3dc8b4a01dbd874c772924149 |
| 53 | +distfiles="${PYPI_SITE}/s/sagemath/sagemath-${_pypi_version}.tar.gz" |
| 54 | +checksum=864c21a84bfad05f586ccdc45bf685552cd87a236bf56bc30163de474569f82c |
40 | 55 | nocross="due to ntl (eclib, singular), fflas-ffpack, givaro, linbox, sympow, maxima" |
41 | 56 |
|
42 | 57 | # main repo `.../src/sage/` is `.../sage/` here |
43 | 58 | patch_args=-Np2 |
44 | 59 |
|
45 | 60 | # parallel build |
46 | | -export SAGE_NUM_THREADS="$XBPS_MAKEJOBS" |
| 61 | +export SAGE_NUM_THREADS="${XBPS_MAKEJOBS}" |
47 | 62 |
|
48 | 63 | post_install() { |
49 | 64 | # move scripts to /usr/libexec |
@@ -74,16 +89,16 @@ do_check() { |
74 | 89 | fi |
75 | 90 | cp ${FILESDIR}/timings2.json . |
76 | 91 | _test_args="--stats_path=timings2.json" |
77 | | - if [ "$XBPS_CHECK_PKGS" = full ]; then |
| 92 | + if [ "${XBPS_CHECK_PKGS}" = full ]; then |
78 | 93 | _test_args+=" --long --warn-long 30.0" |
79 | 94 | else |
80 | 95 | _test_args+=" --warn-long 10.0" |
81 | 96 | fi |
82 | | - if [ "$XBPS_BUILD_ENVIRONMENT" = "void-packages-ci" ]; then |
| 97 | + if [ "${XBPS_BUILD_ENVIRONMENT}" = "void-packages-ci" ]; then |
83 | 98 | # for CI use a predictable random seed |
84 | 99 | _test_args+=" --random-seed=0" |
85 | 100 | fi |
86 | 101 |
|
87 | 102 | PATH="${testdir}/usr/bin:${PATH}" PYTHONPATH="${testdir}/${py3_sitelib}" \ |
88 | | - sage -tp ${XBPS_MAKEJOBS} ${_test_args} ${_test_files} |
| 103 | + python3 -m sage.doctest -p ${XBPS_MAKEJOBS} ${_test_args} ${_test_files} |
89 | 104 | } |
0 commit comments