Skip to content

Commit 1c06d16

Browse files
committed
Merge branch 'vbraun' for 10.6
2 parents b65fd80 + 68d304e commit 1c06d16

File tree

22 files changed

+944
-1
lines changed

22 files changed

+944
-1
lines changed

sci-mathematics/sage-conf/Manifest

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
DIST sage_conf-10.5.tar.gz 2914331 BLAKE2B 9a432da28007420538d60621a179699847859f166fdba7015fcf82aad9b7beb17ddf50128a91df049ed7d632cf66cbc2ccf59dc41c28e1e4ef62ccb535301813 SHA512 0788f13b6200bff6f6c0458a2e7221b83182edb96e81552e510b7088d50f472f1a843951b2f86b3436166eb587f7fd853f90f3493c822d6fa427b9b5de1615c1
2+
DIST sage_conf-10.6.tar.gz 2596009 BLAKE2B 08ba075445595a7bb04aeda1c7757273145001e276df24b99166b77128a3cbc1c384027ff5a48f6f69f7f5928435a1c34400573b99fd1358cfcd0577f92c37fd SHA512 409e21a3b732fafc6968b62cf318c970a9c347570514adf92c2ba4a8171bcb5c8c62ba386a08389b72356057d881f525d5110605da32336044a2d0cbb6f81332
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Copyright 1999-2023 Gentoo Authors
2+
# Distributed under the terms of the GNU General Public License v2
3+
4+
EAPI=8
5+
6+
PYTHON_COMPAT=( python3_{10..13} )
7+
PYTHON_REQ_USE="readline,sqlite"
8+
DISTUTILS_USE_PEP517=setuptools
9+
10+
inherit distutils-r1 prefix
11+
12+
if [[ ${PV} == 9999 ]]; then
13+
inherit git-r3 sage-git
14+
SAGE_PKG="${PN}_pypi"
15+
else
16+
inherit pypi
17+
KEYWORDS="~amd64 ~amd64-linux ~ppc-macos ~x64-macos"
18+
fi
19+
20+
DESCRIPTION="Math software for abstract and numerical computations"
21+
HOMEPAGE="https://www.sagemath.org"
22+
23+
LICENSE="GPL-2"
24+
SLOT="0"
25+
26+
# No real tests here in spite of QA warnings.
27+
RESTRICT="test mirror"
28+
29+
# pplpy needs to be installed to get documentation folder right :(
30+
BDEPEND="dev-python/pplpy[doc,${PYTHON_USEDEP}]"
31+
32+
PATCHES=(
33+
"${FILESDIR}/${PN}-10.2.patch"
34+
)
35+
36+
python_prepare_all() {
37+
distutils-r1_python_prepare_all
38+
39+
# sage on gentoo environment variables
40+
cp -f "${FILESDIR}"/${PN}.py-10.3 _sage_conf/_conf.py
41+
eprefixify _sage_conf/_conf.py
42+
# set the documentation location to the externally provided sage-doc package
43+
sed -i "s:@GENTOO_PORTAGE_PF@:sage-doc-${PV}:" _sage_conf/_conf.py
44+
# set lib/lib64 - only useful for GAP_LIB_DIR for now
45+
sed -i "s:@libdir@:$(get_libdir):g" _sage_conf/_conf.py
46+
# Fix finding pplpy documentation with intersphinx
47+
local pplpyver=$(best_version dev-python/pplpy)
48+
# using pplpyver from character 11 to remove "dev-python/"
49+
sed -i "s:@PPLY_DOC_VERS@:${pplpyver:11}:" _sage_conf/_conf.py
50+
# Set sage version as stated in VERSION.txt
51+
local sage_version=$(cat VERSION.txt)
52+
sed -i "s:@SAGE_VERSION@:${sage_version}:" _sage_conf/_conf.py
53+
}

sci-mathematics/sage-doc/Manifest

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
DIST sage-doc-10.5.tar.gz 30803195 BLAKE2B 630e774104a87423896f130e42c53a8ed764e01c327a3af91b3603c01d3299e6249a86bccce7b95abd00eeffc89e05dd3c61faa3eb4367db94406b518f68a58f SHA512 18959835f001a4c7f201bf544204583459ab26d95b0ef49675c8a91a19b86edf5ffd3df6a2aa244c04a33fdbd36a58726550aceccc8b50e21fbaeabdc7ced655
2+
DIST sage-doc-10.6.tar.gz 30856710 BLAKE2B a455cb33e61b9e8e96a0ca206990f9c3df6084e7c999c5af9a6c94456eaf784f293e1cb59eed33085d5a22e038b24ed680217ef700b6e152acb7f10fe7aae0a2 SHA512 ea2b407174df765fe48d8ae918db73bba556aa63da867dec7ce0ff68b64bcfe4a9e9b0767c7bd71987f7e42a6db1407bc209e699674e8bbd9add932fa3ad0074
Lines changed: 173 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,173 @@
1+
# Copyright 1999-2023 Gentoo Authors
2+
# Distributed under the terms of the GNU General Public License v2
3+
4+
EAPI=8
5+
6+
PYTHON_COMPAT=( python3_{10..13} )
7+
PYTHON_REQ_USE="readline,sqlite"
8+
9+
inherit multiprocessing python-any-r1
10+
11+
if [[ ${PV} == 9999 ]]; then
12+
inherit git-r3
13+
EGIT_REPO_URI="https://github.com/sagemath/sage.git"
14+
EGIT_BRANCH=develop
15+
EGIT_CHECKOUT_DIR="${WORKDIR}/${P}"
16+
else
17+
SRC_URI="https://github.com/sagemath/sage/archive/${PV}.tar.gz -> ${P}.tar.gz"
18+
KEYWORDS="~amd64 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
19+
S="${WORKDIR}/sage-${PV}"
20+
fi
21+
22+
DESCRIPTION="Build the sage documentation"
23+
HOMEPAGE="https://www.sagemath.org"
24+
25+
LICENSE="GPL-2"
26+
SLOT="0"
27+
IUSE="doc-pdf"
28+
L10N_USEDEP="l10n_en,"
29+
LANGS="ca de es fr hu it ja pt ru tr"
30+
for X in ${LANGS} ; do
31+
IUSE="${IUSE} l10n_${X}"
32+
L10N_USEDEP="${L10N_USEDEP}l10n_${X}?,"
33+
done
34+
L10N_USEDEP="${L10N_USEDEP%?}"
35+
36+
RESTRICT="mirror test"
37+
38+
# There is a trick to use $PV in python_gen_any_deps
39+
# But it breaks checking with pkgcheck, reports of "missing check for ... "
40+
# may be safely ignored most of the time.
41+
BDEPEND="$(python_gen_any_dep "
42+
dev-python/sphinx[\${PYTHON_USEDEP}]
43+
dev-python/furo[\${PYTHON_USEDEP}]
44+
dev-python/jupyter-sphinx[\${PYTHON_USEDEP}]
45+
dev-python/sphinx-copybutton[\${PYTHON_USEDEP}]
46+
dev-python/sphinx-inline-tabs[\${PYTHON_USEDEP}]
47+
~sci-mathematics/sagemath-standard-${PV}[\${PYTHON_USEDEP},jmol]
48+
~sci-mathematics/sage_docbuild-${PV}[\${PYTHON_USEDEP}]
49+
")
50+
doc-pdf? (
51+
>=app-text/texlive-2023[extra,luatex,${L10N_USEDEP}]
52+
>=app-text/texlive-core-2023[xindy]
53+
media-fonts/freefont
54+
)
55+
"
56+
RDEPEND="dev-libs/mathjax"
57+
DEPEND="dev-libs/mathjax"
58+
59+
PATCHES=(
60+
"${FILESDIR}"/${PN}-10.4-makefile.patch
61+
)
62+
63+
HTML_DOCS="${WORKDIR}/build_doc/html/*"
64+
DOCS=(
65+
"${WORKDIR}/build_doc/index.html"
66+
"${S}/src/doc/common"
67+
)
68+
69+
# python_check_deps happilly processes $PV.
70+
python_check_deps() {
71+
python_has_version -b "dev-python/sphinx[${PYTHON_USEDEP}]" &&
72+
python_has_version -b "~sci-mathematics/sagemath-standard-${PV}[${PYTHON_USEDEP},jmol]" &&
73+
python_has_version -b "~sci-mathematics/sage_docbuild-${PV}[${PYTHON_USEDEP}]" &&
74+
python_has_version -b "dev-python/furo[${PYTHON_USEDEP}]" &&
75+
python_has_version -b "dev-python/jupyter-sphinx[${PYTHON_USEDEP}]" &&
76+
python_has_version -b "dev-python/sphinx-copybutton[${PYTHON_USEDEP}]" &&
77+
python_has_version -b "dev-python/sphinx-inline-tabs[${PYTHON_USEDEP}]"
78+
}
79+
80+
src_unpack(){
81+
if [[ ${PV} == 9999 ]]; then
82+
git-r3_src_unpack
83+
fi
84+
85+
default
86+
}
87+
88+
src_prepare(){
89+
default
90+
91+
einfo "bootstrapping the documentation - be patient"
92+
SAGE_ROOT="${S}" PATH="${S}/build/bin:${PATH}" src/doc/bootstrap || die "cannot bootstrap the documentation"
93+
94+
# remove all the sources outside of src/doc to avoid interferences
95+
for object in src/* ; do
96+
if [ $object != "src/doc" ] ; then
97+
rm -rf $object || die "failed to remove $object"
98+
fi
99+
done
100+
}
101+
102+
src_configure(){
103+
export SAGE_DOC="${WORKDIR}"/build_doc
104+
export SAGE_DOC_SRC="${S}"/src/doc
105+
export SAGE_DOC_MATHJAX=yes
106+
export VARTEXFONTS="${T}"/fonts
107+
export SAGE_NUM_THREADS=$(makeopts_jobs)
108+
export SAGE_NUM_THREADS_PARALLEL=$(makeopts_jobs)
109+
# try to fix random sphinx crash during the building of the documentation
110+
export MPLCONFIGDIR="${T}"/matplotlib
111+
# Avoid spurious message from the gtk backend by making sure it is never tried
112+
export MPLBACKEND=Agg
113+
local mylang="en "
114+
for lang in ${LANGS} ; do
115+
use l10n_$lang && mylang+="$lang "
116+
done
117+
export LANGUAGES="${mylang}"
118+
}
119+
120+
src_compile(){
121+
cd src/doc
122+
123+
# Needs to be created beforehand or it gets created as a file with the content of _static/plot_directive.css
124+
mkdir -p "${SAGE_DOC}"/html/en/reference/_static
125+
126+
# for some reason luatex check whether it can write there.
127+
# Of course it should fail, but it triggers the sandbox.
128+
addpredict /var/lib/texmf/m_t_x_t_e_s_t.tmp
129+
# for some reason opened for write during inventory of reference/plotting(?) - no write happens.
130+
# This manifest as root
131+
addpredict "${ESYSROOT}/usr/share/sage/cremona/cremona_mini.db"
132+
# For some reason java/jmol ignores HOME and uses portage's home as home directory
133+
# Nothing seem to happen though
134+
addpredict "${ESYSROOT}/var/lib/portage/home/.java"
135+
136+
emake doc-html
137+
if use doc-pdf ; then
138+
DOCS+=( "${SAGE_DOC}/pdf" )
139+
emake doc-pdf
140+
fi
141+
}
142+
143+
src_install(){
144+
####################################
145+
# Prepare the documentation for installation
146+
####################################
147+
148+
pushd "${WORKDIR}"
149+
# Prune _static folders
150+
cp -r build_doc/html/en/_static build_doc/html/ || die "failed to copy _static folder"
151+
for sdir in `find build_doc -name _static` ; do
152+
if [ $sdir != "build_doc/html/_static" ] ; then
153+
rm -rf $sdir || die "failed to remove $sdir"
154+
ln -rst ${sdir%_static} build_doc/html/_static
155+
fi
156+
done
157+
# Linking to local copy of mathjax folders rather than copying them
158+
for sobject in $(ls "${ESYSROOT}"/usr/share/mathjax/) ; do
159+
rm -rf build_doc/html/_static/${sobject} \
160+
|| die "failed to remove mathjax object $sobject"
161+
ln -st build_doc/html/_static/ ../../../../mathjax/$sobject
162+
done
163+
# prune .buildinfo files, those are internal to sphinx and are not used after building.
164+
find build_doc -name .buildinfo -delete || die "failed to prune buildinfo files"
165+
# prune the jupyter_execute folder created by jupyter-sphinx
166+
rm -rf build_doc/html/en/reference/jupyter_execute
167+
popd
168+
169+
docompress -x /usr/share/doc/"${PF}"/common
170+
einstalldocs
171+
172+
dosym -r /usr/share/doc/"${PF}" /usr/share/jupyter/kernels/sagemath/doc
173+
}

sci-mathematics/sage-sws2rst/Manifest

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
DIST sage_sws2rst-10.5.tar.gz 327246 BLAKE2B 4198b764030b2722c6ee8d3dd96ece3c09a50ac74a3a61ae920df77919d2c4e05f35477af30a66b0b0fd41dcfafb0595ffb54cd646568b229b0da7b8707c0856 SHA512 8816a771e6a74f9667b055e16bbdceb695de91beb93101b0a941e005993f57c3de7f3fd10b810049e4f33302ace38da5e154fb55f7e4acc43ea304825c080e66
2+
DIST sage_sws2rst-10.6.tar.gz 327257 BLAKE2B a53edf7638122ae0fa7827af56e79459bb09aae22c2d9884d4a542647b38e714cf532068e4fb3788e2e6b0d291844af1dd2696a7abdb893d96fff1d6fedd5533 SHA512 704a59a6e008b96f44bd661f8b663ffd169b76fa33adcf6559099f50b16985f5c5a552f57847fcbeee0d686a84057d6da9087e7f59b16a18ff4396623d128b50
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Copyright 1999-2023 Gentoo Authors
2+
# Distributed under the terms of the GNU General Public License v2
3+
4+
EAPI=8
5+
6+
PYTHON_COMPAT=( python3_{10..13} )
7+
PYTHON_REQ_USE="readline,sqlite"
8+
DISTUTILS_USE_PEP517=setuptools
9+
10+
inherit distutils-r1
11+
12+
if [[ ${PV} == 9999 ]]; then
13+
inherit git-r3 sage-git
14+
else
15+
inherit pypi
16+
KEYWORDS="~amd64 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
17+
fi
18+
19+
DESCRIPTION="SageNB worksheet converter"
20+
HOMEPAGE="https://www.sagemath.org"
21+
22+
LICENSE="GPL-2"
23+
SLOT="0"
24+
25+
RESTRICT="mirror test"
26+
27+
DEPEND="dev-python/beautifulsoup4[${PYTHON_USEDEP}]"
28+
RDEPEND="${DEPEND}"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
DIST sage_docbuild-10.5.tar.gz 73781 BLAKE2B ecc071e9186f69c9a347b3e26ac3d372d1aaccdd9945c22189e63c12188ec4f9252ecb15f72b3626bf906f229860a991c4ceda1e886d49bbdad78ce794a9d891 SHA512 683c4f74bc02e51c55d576b890c5ad86d977fc6794e0f7680f7cdcdd8025887e5f0a4fd4e47319914724a903885ff444717b32a76267230c987ce4c7b2edfb96
2+
DIST sage_docbuild-10.6.tar.gz 73400 BLAKE2B 203c12fb4e798d39083568cfa9f6b95861d3bce5b73417f53d5ec95fdb6a6995dc40a2adbe839e00034f1982b0a4308d03754bb5101a3b42a78e003bf575d42a SHA512 111b2bd5cfa4390c541d542c308bd5f8f8f0503d7d9f709bdebd1fb822cde81c7b66f839c637b2b00aa33d30c369abb78b6bfcf7ddcc52d013cc71049ce8cbdc
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Copyright 1999-2023 Gentoo Authors
2+
# Distributed under the terms of the GNU General Public License v2
3+
4+
EAPI=8
5+
6+
PYTHON_COMPAT=( python3_{10..13} )
7+
DISTUTILS_USE_PEP517=setuptools
8+
9+
inherit distutils-r1
10+
11+
if [[ ${PV} == 9999 ]]; then
12+
inherit git-r3 sage-git
13+
SAGE_PKG="sage-docbuild"
14+
else
15+
inherit pypi
16+
KEYWORDS="~amd64 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
17+
fi
18+
19+
DESCRIPTION="Tool to build doc for sage and sage related packages"
20+
HOMEPAGE="https://www.sagemath.org"
21+
22+
LICENSE="GPL-2"
23+
SLOT="0"
24+
25+
RESTRICT="mirror test"
26+
27+
RDEPEND="
28+
>=dev-python/sphinx-8.1.0[${PYTHON_USEDEP}]
29+
<dev-python/sphinx-8.2.0[${PYTHON_USEDEP}]
30+
dev-python/jupyter-sphinx[${PYTHON_USEDEP}]
31+
"
32+
PDEPEND="~sci-mathematics/sagemath-standard-${PV}[${PYTHON_USEDEP}]"
33+
34+
PATCHES=(
35+
"${FILESDIR}"/sage-9.3-linguas.patch
36+
)

sci-mathematics/sage_setup/Manifest

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
DIST sage_setup-10.5.tar.gz 81500 BLAKE2B dc57c75906f8b174a40129a0981d12c819d5844425548e326dd59ea4fd572da1c984d0dafb2cd41beab185bec53e36990f995540ac834630dd49fc0961bdaae1 SHA512 8597e641777a2ea0ba7ec64087ba2ad00bd650a317619baf28e737d77de6bbc0fd4151cf7d713c1ce2f6f7cca4751727dc87bbd39bfd8a37604e2ee32309c16c
2+
DIST sage_setup-10.6.tar.gz 71377 BLAKE2B 6a29f39d3c5228401c894cdb229c4647d9797add08fdc575a80eadc96929a79293ab6cc5a12c82b80782ba4df9c0c5f9f00d7573e5c9c12bfec4429b93606136 SHA512 fd1eb66c460d72401da77cf24b5d547589da625212b51c7c7b800cd9d2c70ca2bc19cc6e4e508a06b44fe40f3dc4587cf4ee685c1035074433ee60d94fdd8278
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Copyright 1999-2023 Gentoo Authors
2+
# Distributed under the terms of the GNU General Public License v2
3+
4+
EAPI=8
5+
6+
PYTHON_COMPAT=( python3_{10..13} )
7+
PYTHON_REQ_USE="readline,sqlite"
8+
DISTUTILS_USE_PEP517=setuptools
9+
10+
inherit distutils-r1
11+
12+
if [[ ${PV} == 9999 ]]; then
13+
inherit git-r3 sage-git
14+
SAGE_PKG="sage-setup"
15+
else
16+
inherit pypi
17+
KEYWORDS="~amd64 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
18+
fi
19+
20+
DESCRIPTION="Tool to help install sage and sage related packages"
21+
HOMEPAGE="https://www.sagemath.org"
22+
23+
LICENSE="GPL-2"
24+
SLOT="0"
25+
26+
RESTRICT="mirror test"
27+
28+
DEPEND="
29+
>=dev-python/pkgconfig-1.2.2[${PYTHON_USEDEP}]
30+
"
31+
RDEPEND="
32+
${DEPEND}
33+
>=dev-python/cython-3.0.0[${PYTHON_USEDEP}]
34+
dev-python/jinja2[${PYTHON_USEDEP}]
35+
"
36+
37+
PATCHES=(
38+
"${FILESDIR}"/${PN}-9.6-verbosity.patch
39+
)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
DIST sagemath_bliss-10.5.tar.gz 11890 BLAKE2B 7ac4a6ceaa25cb6ffdec7c2b83f3742e7f55d9449d48e562efe4e302973813f8af41a30358cd58919889f16e20cd19d6e16fbabf392e28ef3fbac945950b5c13 SHA512 2e9d499ba1f3b5ff0167a157e77117075a12e2ddb83d49b29dad9ccce6e987c35113bf9c9610beb5a6ebeb867ae75f487b17755cdb0ca6f07632373f627c9647
2+
DIST sagemath_bliss-10.6.tar.gz 12130 BLAKE2B 5756dae38ff85728768c9a645460548e1f0a528bd61b192a1de98b01a11f99ae50d12eb18d4f2e6c837b58b3483d01430951e01f4c1671a211872372993f017b SHA512 08c104314010daefaea7877774c20311e7f2f7d1ce1cda67538166ae8cdb1c78538b2d7e955ddb595b62cedeefde367d9c8071b55bee30e718642f8a2eb1cdba
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Copyright 1999-2023 Gentoo Authors
2+
# Distributed under the terms of the GNU General Public License v2
3+
4+
EAPI=8
5+
6+
PYTHON_COMPAT=( python3_{10..13} )
7+
PYTHON_REQ_USE="readline,sqlite"
8+
DISTUTILS_EXT=1
9+
DISTUTILS_USE_PEP517=setuptools
10+
11+
inherit distutils-r1
12+
13+
if [[ ${PV} == 9999 ]]; then
14+
inherit git-r3 sage-git
15+
else
16+
inherit pypi
17+
KEYWORDS="~amd64 ~amd64-linux ~ppc-macos ~x64-macos"
18+
fi
19+
20+
DESCRIPTION="Graph (iso/auto)morphisms with bliss in sage"
21+
HOMEPAGE="https://www.sagemath.org"
22+
23+
LICENSE="GPL-2+"
24+
SLOT="0"
25+
26+
RESTRICT="test"
27+
28+
DEPEND="~sci-mathematics/sagemath-standard-${PV}[${PYTHON_USEDEP}]
29+
~sci-libs/bliss-0.77"
30+
RDEPEND="${DEPEND}"
31+
BDEPEND="dev-python/cython[${PYTHON_USEDEP}]"
32+
33+
python_install() {
34+
distutils-r1_python_install
35+
36+
find "${D}$(python_get_sitedir)/sage" -name interpreter -delete
37+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
DIST sagemath_meataxe-10.5.tar.gz 22658 BLAKE2B 2cc53f49a88dd29335129174940a4cebae892201eadc642bcd4de49a2adb24e66cc81424ad876f9360f183542d46c746ccfc3a09d43289352bdc9552253d4c4b SHA512 e5dcc17ebc78cfef3b296e1955be21b663ebe4a04d4a02a2fb48827619fef0fac3d2b741d3bae43710ac7e2d4b24141f63f4d01deeaaa734d43e2340eb97eac3
2+
DIST sagemath_meataxe-10.6.tar.gz 22673 BLAKE2B 9eed359b22dbd77827a951328b1ddd67993528a2d80bfaecaa705487ed40bc4c22c1dd359f5f4ec96287c08e0208653897b2e5324306760ccc3b18f9c29a6d35 SHA512 0c3a60851fc8e11ced2a605131f8d9e3ebfaa70ac99ab611a1f99cc1a58c1b4f41c740f265ed9efe2e4cf6854f8617dc3ca1ade705842895bde85fa20d85c0c9

0 commit comments

Comments
 (0)