more_itertools: drop outdated and unused recipe. (#11938)

Not required on-tree since d9f746a859.

Users should try to `pip install` this, if they need it.
This commit is contained in:
OscarL
2025-03-13 02:25:55 -03:00
committed by GitHub
parent 9bbd29f0e4
commit 13d679cc19

View File

@@ -1,62 +0,0 @@
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
}