slixmpp: update to version 1.8.6.

This is the last version that doesn't requires rust, and the last
version that should be compatible with Poezio 0.14.

Updating the latter to >= 0.15 will require adding new recipes for
the "maturin" python build system, as that's a build dependency for
newer slixmpp ("rustified") versions.
This commit is contained in:
Oscar Lesta
2025-08-27 04:51:57 -03:00
committed by OscarL
parent 8ad1e6bd2b
commit 18a52f5941

View File

@@ -6,11 +6,11 @@ Slixmpp's goals is to only rewrite the core of the library (the low level \
socket handling, the timers, the events dispatching) in order to remove all \
threads."
HOMEPAGE="https://codeberg.org/poezio/slixmpp"
COPYRIGHT="2010-2020 Nathanael C. Fritz"
COPYRIGHT="2010 Nathanael C. Fritz"
LICENSE="MIT"
REVISION="1"
SOURCE_URI="https://files.pythonhosted.org/packages/source/${portName:0:1}/$portName/$portName-$portVersion.tar.gz"
CHECKSUM_SHA256="406f1f4bab7e7573dd559a441027d3de33d17bba354bcf20ddc6aafba272286b"
CHECKSUM_SHA256="60afcaa7c95a0fb9e7f1159cb70464a5558806d7abae29cd31e3fc883f9b8b0b"
ARCHITECTURES="any"
@@ -27,8 +27,7 @@ BUILD_REQUIRES="
PYTHON_VERSIONS=(3.10)
for i in "${!PYTHON_VERSIONS[@]}"; do
pythonVersion=${PYTHON_VERSIONS[$i]}
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
pythonPackage=python${pythonVersion//.}
eval "PROVIDES_${pythonPackage}=\"
@@ -42,28 +41,36 @@ for i in "${!PYTHON_VERSIONS[@]}"; do
cmd:python$pythonVersion
\""
BUILD_REQUIRES+="
build_$pythonPackage
installer_$pythonPackage
setuptools_$pythonPackage
wheel_$pythonPackage
"
BUILD_PREREQUIRES+="
cmd:python$pythonVersion
"
done
BUILD()
{
# This is an "any" package, "building" it will create a
# "$portBaseName-$portVersion-py3-none-any.whl" file that can be installed
# on multiple Python versions, so we only need to build once.
python=python${PYTHON_VERSIONS[0]}
$python -m build --wheel --skip-dependency-check --no-isolation
}
INSTALL()
{
for i in "${!PYTHON_VERSIONS[@]}"; do
pythonVersion=${PYTHON_VERSIONS[$i]}
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
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
# wheel filename has the pattern: $portBaseName-$portVersion-*-none-any.whl
# with the asterisk being: "py2-py3" or "py3".
$python -m installer --p $prefix dist/$portName-$portVersion-*-none-any.whl
packageEntries $pythonPackage \
$prefix/lib/python*