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