Files
haikuports/dev-python/alabaster/alabaster-0.7.13.recipe
OscarL fd55e514dd sphinx: clean up, drop _python39 package. (#11605)
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
2025-01-08 10:30:51 +01:00

71 lines
1.7 KiB
Bash

SUMMARY="A configurable sidebar-enabled Sphinx theme"
DESCRIPTION="Alabaster is a visually (c)lean, responsive, configurable theme for the Sphinx \
documentation system. It is Python 3.6+ compatible.
It began as a third-party theme, and is still maintained separately, but as of Sphinx 1.3, \
Alabaster is an install-time dependency of Sphinx and is selected as the default theme."
HOMEPAGE="https://github.com/sphinx-doc/alabaster"
COPYRIGHT="2020 Jeff Forcier
2011 Kenneth Reitz
2010 Armin Ronacher"
LICENSE="BSD (3-clause)"
REVISION="2"
SOURCE_URI="$HOMEPAGE/archive/refs/tags/$portVersion.tar.gz"
CHECKSUM_SHA256="c5efad86e1bb8215d037e2890e62aa2bb5e4f13f6fa455be100413835b5bfe43"
SOURCE_FILENAME="alabaster-$portVersion.tar.gz"
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
}