mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
Also cleanup and drop _python39 from related recipes: - alabaster - sphinx_rtd_theme - sphinx_argparse - sphinxcontrib_applehelp - sphinxcontrib_devhelp - sphinxcontrib_htmlhelp - sphinxcontrib_jquery - sphinxcontrib_jsmath - sphinxcontrib_qthelp - sphinxcontrib_serializinghtml
74 lines
1.9 KiB
Bash
74 lines
1.9 KiB
Bash
SUMMARY="Read the Docs theme for Sphinx"
|
|
DESCRIPTION="This Sphinx theme was designed to provide a great reader experience for \
|
|
documentation users on both desktop and mobile devices. This theme is used primarily on \
|
|
*Read the Docs* but can work with any Sphinx project. You can find a working demo of the theme \
|
|
in the *theme documentation*
|
|
|
|
- Sphinx: http://www.sphinx-doc.org
|
|
- Read the Docs: http://www.readthedocs.org
|
|
- theme documentation: https://sphinx-rtd-theme.readthedocs.io/en/stable/."
|
|
HOMEPAGE="ttps://sphinx-rtd-theme.readthedocs.io/
|
|
https://github.com/readthedocs/sphinx_rtd_theme"
|
|
COPYRIGHT="2013-2018 Dave Snider, Read the Docs, Inc. & contributors
|
|
2010-2015, Łukasz Dziedzic"
|
|
LICENSE="MIT
|
|
OFL"
|
|
REVISION="2"
|
|
SOURCE_URI="https://files.pythonhosted.org/packages/source/s/sphinx_rtd_theme/sphinx_rtd_theme-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="cf9a7dc0352cf179c538891cb28d6fad6391117d4e21c891776ab41dd6c8ff70"
|
|
|
|
ARCHITECTURES="any"
|
|
|
|
PROVIDES="
|
|
$portName = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku_devel
|
|
"
|
|
|
|
PYTHON_VERSIONS=(3.10)
|
|
|
|
for i in "${!PYTHON_VERSIONS[@]}"; do
|
|
pythonVersion=${PYTHON_VERSIONS[$i]}
|
|
pythonPackage=python${pythonVersion//.}
|
|
|
|
eval "PROVIDES_$pythonPackage=\"
|
|
${portName}_$pythonPackage = $portVersion
|
|
\""
|
|
eval "REQUIRES_$pythonPackage=\"
|
|
haiku
|
|
cmd:python$pythonVersion
|
|
\""
|
|
BUILD_REQUIRES+="
|
|
setuptools_$pythonPackage
|
|
"
|
|
BUILD_PREREQUIRES+="
|
|
cmd:python$pythonVersion
|
|
"
|
|
done
|
|
|
|
INSTALL()
|
|
{
|
|
for i in "${!PYTHON_VERSIONS[@]}"; do
|
|
pythonVersion=${PYTHON_VERSIONS[$i]}
|
|
pythonPackage=python${pythonVersion//.}
|
|
|
|
python=python$pythonVersion
|
|
installLocation=$prefix/lib/$python/vendor-packages/
|
|
export PYTHONPATH=$installLocation:$PYTHONPATH
|
|
|
|
mkdir -p $installLocation
|
|
rm -rf build
|
|
|
|
$python setup.py build install \
|
|
--root=/ --prefix=$prefix
|
|
|
|
packageEntries $pythonPackage \
|
|
$prefix/lib/python*
|
|
done
|
|
}
|