Files
haikuports/dev-python/frozenlist/frozenlist-1.3.1.recipe
OscarL d8bf95ed80 aiohttp (and dependencies): recipes cleanup. (#10248)
* aiohttp: recipe cleanup.

* aiosignal: recipe cleanup.

* frozenlist: recipe cleanup.

* multidict: recipe cleanup.
2024-03-24 09:28:05 +01:00

77 lines
1.9 KiB
Bash

SUMMARY="List-like structure which implements collections.abc.MutableSequence"
DESCRIPTION="frozenlist.FrozenList is a list-like structure which implements \
collections.abc.MutableSequence. The list is mutable until FrozenList.freeze is called, after \
which list modifications raise RuntimeError.
FrozenList is also hashable, but only when frozen."
HOMEPAGE="https://pypi.org/project/frozenlist/"
COPYRIGHT="2019-2022 aiohttp team"
LICENSE="Apache v2"
REVISION="4"
SOURCE_URI="https://files.pythonhosted.org/packages/source/f/frozenlist/frozenlist-$portVersion.tar.gz"
CHECKSUM_SHA256="3a735e4211a04ccfa3f4833547acdf5d2f863bfeb01cfd3edaffbc251f15cec8"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
PYTHON_VERSIONS=(3.10)
for i in "${!PYTHON_VERSIONS[@]}"; do
pythonVersion=${PYTHON_VERSIONS[$i]}
pythonPackage=python${pythonVersion//.}
eval "PROVIDES_$pythonPackage=\"
${portName}_$pythonPackage = $portVersion
\""
if [ "$targetArchitecture" = x86_gcc2 ]; then
eval "PROVIDES_$pythonPackage+=\"
frozenlist_$pythonPackage = $portVersion
\""
fi
eval "REQUIRES_$pythonPackage=\"
haiku$secondaryArchSuffix
cmd:python$pythonVersion
\""
BUILD_REQUIRES+="
setuptools_$pythonPackage
"
BUILD_PREREQUIRES+="
cmd:gcc$secondaryArchSuffix
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
}