mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
sphinx(python), add new/updated dependency python recipes (#8775)
* sphinx(python), add new/updated dependency python recipes * Update dev-python/babel/babel-2.12.1.recipe Co-authored-by: OscarL <oscar.lesta@gmail.com> * Update dev-python/babel/babel-2.12.1.recipe Co-authored-by: OscarL <oscar.lesta@gmail.com> * Update dev-python/babel/babel-2.12.1.recipe Co-authored-by: OscarL <oscar.lesta@gmail.com> * Update dev-python/pytest_mock/pytest_mock-3.10.0.recipe Co-authored-by: OscarL <oscar.lesta@gmail.com> * Update dev-python/pytest_mock/pytest_mock-3.10.0.recipe Co-authored-by: OscarL <oscar.lesta@gmail.com> * Update dev-python/sphinxcontrib-jquery/sphinxcontrib_jquery-4.1.recipe Co-authored-by: OscarL <oscar.lesta@gmail.com> * Update dev-python/sphinx/sphinx-7.0.1.recipe Co-authored-by: OscarL <oscar.lesta@gmail.com> * Update dev-python/sphinx/sphinx-7.0.1.recipe Co-authored-by: OscarL <oscar.lesta@gmail.com> * Update dev-python/sphinx/sphinx-7.0.1.recipe Co-authored-by: OscarL <oscar.lesta@gmail.com> --------- Co-authored-by: OscarL <oscar.lesta@gmail.com>
This commit is contained in:
39
dev-python/sphinxcontrib-jsmath/patches/10.patch
Normal file
39
dev-python/sphinxcontrib-jsmath/patches/10.patch
Normal file
@@ -0,0 +1,39 @@
|
||||
From 3297b27177ab4862d1b2408a2db66235397fe212 Mon Sep 17 00:00:00 2001
|
||||
From: Takeshi KOMIYA <i.tkomiya@gmail.com>
|
||||
Date: Sat, 17 Jul 2021 19:25:37 +0900
|
||||
Subject: [PATCH 1/2] Fix #9361: RemovedInSphinx50Warning on testing
|
||||
|
||||
---
|
||||
tests/test_jsmath.py | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/tests/test_jsmath.py b/tests/test_jsmath.py
|
||||
index 573d262..eea8a95 100644
|
||||
--- a/tests/test_jsmath.py
|
||||
+++ b/tests/test_jsmath.py
|
||||
@@ -14,7 +14,7 @@
|
||||
@pytest.mark.sphinx('html', testroot='basic')
|
||||
def test_basic(app, status, warning):
|
||||
app.builder.build_all()
|
||||
- content = (app.outdir / 'math.html').text()
|
||||
+ content = (app.outdir / 'math.html').read_text()
|
||||
print(content)
|
||||
assert '<div class="math notranslate nohighlight">\nE = mc^2</div>' in content
|
||||
assert ('<span class="eqno">(1)<a class="headerlink" href="#equation-pythagorean" '
|
||||
@@ -34,7 +34,7 @@ def test_basic(app, status, warning):
|
||||
def test_numfig_enabled(app, status, warning):
|
||||
app.builder.build_all()
|
||||
|
||||
- content = (app.outdir / 'math.html').text()
|
||||
+ content = (app.outdir / 'math.html').read_text()
|
||||
assert '<div class="math notranslate nohighlight">\nE = mc^2</div>' in content
|
||||
assert ('<span class="eqno">(1.1)<a class="headerlink" href="#equation-pythagorean" '
|
||||
'title="Permalink to this equation">¶</a></span>'
|
||||
@@ -52,5 +52,5 @@ def test_numfig_enabled(app, status, warning):
|
||||
def test_disabled_when_equations_not_found(app, status, warning):
|
||||
app.builder.build_all()
|
||||
|
||||
- content = (app.outdir / 'index.html').text()
|
||||
+ content = (app.outdir / 'index.html').read_text()
|
||||
assert 'jsmath.js' not in content
|
||||
|
||||
@@ -0,0 +1,75 @@
|
||||
SUMMARY="A sphinx extension which renders display math in HTML via JavaScript"
|
||||
DESCRIPTION="sphinxcontrib-jsmath is a sphinx extension which renders display math in HTML via \
|
||||
JavaScript."
|
||||
HOMEPAGE="http://sphinx-doc.org/
|
||||
https://pypi.org/project/sphinxcontrib-jsmath/"
|
||||
COPYRIGHT="2007-2019 by the Sphinx team"
|
||||
LICENSE="BSD (2-clause)"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://pypi.python.org/packages/source/s/sphinxcontrib-jsmath/sphinxcontrib-jsmath-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="a9925e4a4587247ed2191a22df5f6970656cb8ca2bd6284309578f2153e0c4b8"
|
||||
SOURCE_DIR="sphinxcontrib-jsmath-$portVersion"
|
||||
PATCHES="10.patch" # fetched from upstream
|
||||
|
||||
ARCHITECTURES="any"
|
||||
|
||||
PROVIDES="
|
||||
$portName = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
"
|
||||
|
||||
PYTHON_PACKAGES=(python39 python310)
|
||||
PYTHON_VERSIONS=(3.9 3.10)
|
||||
defaultTestVersion="python39"
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
|
||||
eval "PROVIDES_$pythonPackage=\"
|
||||
${portName}_$pythonPackage = $portVersion
|
||||
\""
|
||||
eval "REQUIRES_$pythonPackage=\"
|
||||
haiku
|
||||
cmd:python$pythonVersion
|
||||
\""
|
||||
BUILD_REQUIRES+="
|
||||
build_$pythonPackage
|
||||
installer_$pythonPackage
|
||||
setuptools_$pythonPackage
|
||||
wheel_$pythonPackage
|
||||
"
|
||||
BUILD_PREREQUIRES+="
|
||||
cmd:python$pythonVersion
|
||||
"
|
||||
done
|
||||
|
||||
TEST_REQUIRES="
|
||||
sphinx_$defaultTestVersion
|
||||
cmd:pytest
|
||||
"
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
|
||||
python=python$pythonVersion
|
||||
|
||||
$python -m build --wheel --skip-dependency-check --no-isolation
|
||||
$python -m installer -p $prefix dist/*.whl
|
||||
|
||||
packageEntries ${PYTHON_PACKAGES[i]} \
|
||||
$prefix/lib/python*
|
||||
done
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
pytest -v
|
||||
}
|
||||
Reference in New Issue
Block a user