mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10: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:
@@ -0,0 +1,73 @@
|
||||
SUMMARY="A Sphinx extension which outputs Apple help books"
|
||||
DESCRIPTION="sphinxcontrib-applehelp is a sphinx extension which outputs Apple help books."
|
||||
HOMEPAGE="https://www.sphinx-doc.org/
|
||||
https://github.com/sphinx-doc/sphinxcontrib-applehelp"
|
||||
COPYRIGHT="2007-2019 by the Sphinx team"
|
||||
LICENSE="BSD (2-clause)"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://pypi.python.org/packages/source/s/sphinxcontrib-applehelp/sphinxcontrib-applehelp-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="828f867945bbe39817c210a1abfd1bc4895c8b73fcaade56d45357a348a07d7e"
|
||||
SOURCE_DIR="sphinxcontrib-applehelp-$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
|
||||
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