mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
sphinx_rtd_theme, new python recipe (#8797)
This commit is contained in:
73
dev-python/sphinx_rtd_theme/sphinx_rtd_theme-1.2.1.recipe
Normal file
73
dev-python/sphinx_rtd_theme/sphinx_rtd_theme-1.2.1.recipe
Normal file
@@ -0,0 +1,73 @@
|
||||
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="1"
|
||||
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_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_REQUIRES+="
|
||||
setuptools_$pythonPackage
|
||||
"
|
||||
BUILD_PREREQUIRES+="
|
||||
cmd:python$pythonVersion
|
||||
"
|
||||
done
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user