mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
sphinx_argparse, new python recipe, required for building orcus docs (#9493)
This commit is contained in:
54
dev-python/sphinx-argparse/sphinx_argparse-0.4.0.recipe
Normal file
54
dev-python/sphinx-argparse/sphinx_argparse-0.4.0.recipe
Normal file
@@ -0,0 +1,54 @@
|
||||
SUMMARY="Sphinx extension that automatically document argparse commands and options"
|
||||
DESCRIPTION="sphinx-argparse is a sphinx extension that automatically document argparse commands \
|
||||
and options"
|
||||
HOMEPAGE="https://pypi.org/project/sphinx-argparse/"
|
||||
COPYRIGHT="2013 Alex Rudakov"
|
||||
LICENSE="MIT"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/ashb/sphinx-argparse/releases/download/v0.4.0/sphinx_argparse-$portVersion-py3-none-any.whl#noarchive"
|
||||
CHECKSUM_SHA256="73bee01f7276fae2bf621ccfe4d167af7306e7288e3482005405d9f826f9b037"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
|
||||
PROVIDES="
|
||||
$portName = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
"
|
||||
|
||||
PYTHON_PACKAGES=(python39 python310)
|
||||
PYTHON_VERSIONS=(3.9 3.10)
|
||||
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_PREREQUIRES="$BUILD_PREREQUIRES
|
||||
installer_$pythonPackage
|
||||
cmd:python$pythonVersion
|
||||
"
|
||||
done
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
|
||||
python=python$pythonVersion
|
||||
$python -m installer -p $prefix $portName-$portVersion-py3-none-any.whl
|
||||
|
||||
packageEntries ${PYTHON_PACKAGES[i]} \
|
||||
$prefix/lib/python*
|
||||
done
|
||||
}
|
||||
Reference in New Issue
Block a user