From 621d53696b23a9eb66d92697db9d8355835908c8 Mon Sep 17 00:00:00 2001 From: OscarL Date: Sat, 28 Oct 2023 06:50:40 -0300 Subject: [PATCH] slixmpp: update to version 1.8.4, drop Python 3.9. (#9697) "poezio" (only user of slixmpp in-tree) already switched to 3.10. --- dev-python/slixmpp/slixmpp-1.8.2.recipe | 67 ----------------------- dev-python/slixmpp/slixmpp-1.8.4.recipe | 71 +++++++++++++++++++++++++ 2 files changed, 71 insertions(+), 67 deletions(-) delete mode 100644 dev-python/slixmpp/slixmpp-1.8.2.recipe create mode 100644 dev-python/slixmpp/slixmpp-1.8.4.recipe diff --git a/dev-python/slixmpp/slixmpp-1.8.2.recipe b/dev-python/slixmpp/slixmpp-1.8.2.recipe deleted file mode 100644 index 4e27c7cce..000000000 --- a/dev-python/slixmpp/slixmpp-1.8.2.recipe +++ /dev/null @@ -1,67 +0,0 @@ -SUMMARY="XMPP library for Python 3.7+" -DESCRIPTION="Slixmpp is an MIT licensed XMPP library for Python 3.7+. It is a \ -fork of SleekXMPP. - -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://github.com/poezio/slixmpp" -COPYRIGHT="2010-2020 Nathanael C. Fritz" -LICENSE="MIT" -REVISION="1" -SOURCE_URI="https://github.com/poezio/slixmpp/archive/slix-$portVersion.tar.gz" -SOURCE_DIR="slixmpp-slix-$portVersion" -CHECKSUM_SHA256="122d7192cdc5ead5a0a65805f49f614df15a5dd16abef5c8ac440ef356d59ed1" - -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\ - aiohttp_$pythonPackage\n\ - pyasn1_$pythonPackage\n\ - pyasn1_modules_$pythonPackage\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 -} diff --git a/dev-python/slixmpp/slixmpp-1.8.4.recipe b/dev-python/slixmpp/slixmpp-1.8.4.recipe new file mode 100644 index 000000000..b735671f7 --- /dev/null +++ b/dev-python/slixmpp/slixmpp-1.8.4.recipe @@ -0,0 +1,71 @@ +SUMMARY="XMPP library for Python 3.7+" +DESCRIPTION="Slixmpp is an MIT licensed XMPP library for Python 3.7+. It is a \ +fork of SleekXMPP. + +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" +LICENSE="MIT" +REVISION="1" +SOURCE_URI="https://files.pythonhosted.org/packages/source/${portName:0:1}/$portName/$portName-$portVersion.tar.gz" +CHECKSUM_SHA256="406f1f4bab7e7573dd559a441027d3de33d17bba354bcf20ddc6aafba272286b" + +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 + aiohttp_$pythonPackage + pyasn1_$pythonPackage + pyasn1_modules_$pythonPackage + 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 +}