mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
* aiohttp: recipe cleanup. * aiosignal: recipe cleanup. * frozenlist: recipe cleanup. * multidict: recipe cleanup.
82 lines
2.0 KiB
Bash
82 lines
2.0 KiB
Bash
SUMMARY="List of registered asynchronous callbacks"
|
||
DESCRIPTION="manage callbacks in asyncio projects.
|
||
|
||
Signal is a list of registered asynchronous callbacks.
|
||
|
||
The signal’s life-cycle has two stages: after creation its content could be filled by using \
|
||
standard list operations: sig.append() etc.
|
||
|
||
After you call sig.freeze() the signal is frozen: adding, removing and dropping callbacks is \
|
||
forbidden.
|
||
|
||
The only available operation is calling the previously registered callbacks by using \
|
||
await sig.send(data).
|
||
|
||
For concrete usage examples see the Signals \
|
||
<https://docs.aiohttp.org/en/stable/web_advanced.html#aiohttp-web-signals> section of the \
|
||
Web Server Advanced <https://docs.aiohttp.org/en/stable/web_advanced.html> chapter of the \
|
||
aiohttp documentation."
|
||
HOMEPAGE="https://pypi.org/project/aiosignal/"
|
||
COPYRIGHT="2019-2021 Nikolay Kim and Martijn Pieters"
|
||
LICENSE="Apache v2"
|
||
REVISION="4"
|
||
SOURCE_URI="https://files.pythonhosted.org/packages/source/${portName:0:1}/$portName/$portName-$portVersion.tar.gz"
|
||
CHECKSUM_SHA256="78ed67db6c7b7ced4f98e495e572106d5c432a93e1ddd1bf475e1dc05f5b7df2"
|
||
|
||
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
|
||
}
|