11# Template file for 'sagemath'
22pkgname=sagemath
3- version=10.7
4- revision=4
3+ version=10.8
4+ revision=1
55_pypi_version=${version/.beta/b}
66_pypi_version=${_pypi_version/.rc/rc}
77build_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 "
1212makedepends="boost-headers brial-devel cliquer-devel ecl eclib-devel
1313 ecm-devel fflas-ffpack flintlib-devel gap-devel gd-devel glpk-devel
1414 gsl-devel iml-devel lcalc-devel libbraiding-devel libhomfly-devel libmpc-devel
1515 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
2430 python3-ipython_ipykernel python3-jupyter_ipywidgets python3-matplotlib
25- python3-memory_allocator python3- networkx python3-pip python3-pkgconfig
31+ python3-networkx python3-pip
2632 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"
3348short_desc="Open source mathematics software"
3449maintainer="Gonzalo Tornaría <
[email protected] >"
3550license="GPL-2.0-or-later"
3651homepage="https://www.sagemath.org/"
3752changelog="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
4055nocross="due to ntl (eclib, singular), fflas-ffpack, givaro, linbox, sympow, maxima"
4156
4257# main repo `.../src/sage/` is `.../sage/` here
4358patch_args=-Np2
4459
4560# parallel build
46- export SAGE_NUM_THREADS="$XBPS_MAKEJOBS"
61+ export SAGE_NUM_THREADS="${ XBPS_MAKEJOBS} "
4762
4863post_install() {
4964 # move scripts to /usr/libexec
@@ -57,33 +72,3 @@ post_install() {
5772 vmkdir usr/bin
5873 ln -s /usr/libexec/sagemath/sage ${DESTDIR}/usr/bin
5974}
60-
61- do_check() {
62- local testdir="${wrksrc}/.xbps-testdir/$(date +%s)"
63- python3 -m installer -d "${testdir}" dist/*.whl
64-
65- # this makes for nicer (shorter) relative paths in output
66- cd ${testdir}/${py3_sitelib}
67-
68- if [ -f ${XBPS_DISTDIR}/sagemath-check ] ; then
69- _sed='s|#.*||;/^\s*$/d;s|^\s*\([^ ]*/\)\?sage/|sage/|g' \
70- _test_files=$(sed -e "$_sed" ${XBPS_DISTDIR}/sagemath-check)
71- fi
72- if [ -z "$_test_files" ]; then
73- _test_files=--all
74- fi
75- cp ${FILESDIR}/timings2.json .
76- _test_args="--stats_path=timings2.json"
77- if [ "$XBPS_CHECK_PKGS" = full ]; then
78- _test_args+=" --long --warn-long 30.0"
79- else
80- _test_args+=" --warn-long 10.0"
81- fi
82- if [ "$XBPS_BUILD_ENVIRONMENT" = "void-packages-ci" ]; then
83- # for CI use a predictable random seed
84- _test_args+=" --random-seed=0"
85- fi
86-
87- PATH="${testdir}/usr/bin:${PATH}" PYTHONPATH="${testdir}/${py3_sitelib}" \
88- sage -tp ${XBPS_MAKEJOBS} ${_test_args} ${_test_files}
89- }
0 commit comments