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:
Schrijvers Luc
2023-06-03 21:48:24 +02:00
committed by GitHub
parent cd26ef5c58
commit 480e45cd2f
20 changed files with 1250 additions and 83 deletions

View File

@@ -0,0 +1,14 @@
BSD Zero Clause Licence
Copyright 2022, Adam Turner
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.

View File

@@ -0,0 +1,76 @@
SUMMARY="Extension to include jQuery on newer Sphinx releases"
DESCRIPTION="sphinxcontrib-jquery ensures that jQuery is always installed for use in Sphinx \
themes or extensions."
HOMEPAGE="https://github.com/sphinx-contrib/jquery/
https://pypi.org/project/sphinxcontrib-jquery/"
COPYRIGHT="2022 Adam Turner"
LICENSE="MIT
0BSD"
REVISION="1"
SOURCE_URI="https://pypi.python.org/packages/source/s/sphinxcontrib-jquery/sphinxcontrib-jquery-$portVersion.tar.gz"
CHECKSUM_SHA256="1620739f04e36a2c779f1a131a2dfd49b2fd07351bf1968ced074365933abc7a"
SOURCE_DIR="sphinxcontrib-jquery-$portVersion"
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
sphinx$pythonPackage
cmd:python$pythonVersion
\""
BUILD_REQUIRES+="
build_$pythonPackage
flit_core_$pythonPackage
installer_$pythonPackage
"
BUILD_PREREQUIRES+="
cmd:python$pythonVersion
"
done
TEST_REQUIRES="
sphinx_$defaultTestVersion
sphinxcontrib_jquery_$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
}