mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-12 23:00:10 +02:00
* 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.
75 lines
2.1 KiB
Bash
75 lines
2.1 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="3"
|
||
SOURCE_URI="https://files.pythonhosted.org/packages/27/6b/a89fbcfae70cf53f066ec22591938296889d3cc58fec1e1c393b10e8d71d/aiosignal-$portVersion.tar.gz"
|
||
CHECKSUM_SHA256="78ed67db6c7b7ced4f98e495e572106d5c432a93e1ddd1bf475e1dc05f5b7df2"
|
||
|
||
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
|
||
setuptools_$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
|
||
rm -rf build
|
||
$python setup.py build install \
|
||
--root=/ --prefix=$prefix
|
||
|
||
packageEntries $pythonPackage \
|
||
$prefix/lib/python*
|
||
done
|
||
}
|