mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-12 06:40:08 +02:00
* 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>
71 lines
1.7 KiB
Bash
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="1"
|
|
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_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
|
|
}
|