Files
haikuports/dev-python/more-itertools/more_itertools-8.14.0.recipe
OscarL 70ac5cadda python3.8: bulk removal of now obsolete "_python38" packages. (#9328)
* python3.8: bulk removal of now obsolete "_python38" packages.

Done via scripting. No functional change intended or expected.

Some manual tweaks will follow.

* python3.8: further manual tweaks after bulk-3.8-removal.

Unlike the previous commit with automated changes,
I've tested builds for *these* recipes in beta4 64 bits.
2023-09-01 18:19:50 +00:00

63 lines
1.7 KiB
Bash

SUMMARY="More routines to operate on iteratables"
DESCRIPTION="Python's 'itertools' library is a gem - you can compose elegant \
solutions for a variety of problems with the functions it provides. In \
'more-itertools' we collect additional building blocks, recipes, and routines \
for working with Python iterables."
HOMEPAGE="https://pypi.python.org/pypi/more-itertools"
COPYRIGHT="2012 Erik Rose"
LICENSE="MIT"
REVISION="5"
pypiVersion="0b/ff/1ad78678bee731ae5414ea5e97396b3f91de32186028daa614d322ac5a8b"
SOURCE_URI="https://files.pythonhosted.org/packages/$pypiVersion/more_itertools-$portVersion-py3-none-any.whl#noarchive"
CHECKSUM_SHA256="1bc4f91ee5b1b31ac7ceacc17c09befe6a40a503907baf9c839c229b5095cfd2"
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\
\"; \
REQUIRES_$pythonPackage=\"\
haiku\n\
cmd:python$pythonVersion\
\""
BUILD_REQUIRES="$BUILD_REQUIRES
installer_$pythonPackage
"
BUILD_PREREQUIRES="$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
$python -m installer -p $prefix more_itertools-$portVersion-py3-none-any.whl
packageEntries $pythonPackage \
$prefix/lib/python*
done
}