From c80cb8f0a5eda104878f796d7c7ae99c057b78d2 Mon Sep 17 00:00:00 2001 From: OscarL Date: Sat, 16 Sep 2023 02:33:52 -0300 Subject: [PATCH] bottle: update to version 0.12.25, support Python 3.10. (#9427) Also, made the usual recipe cleanups. --- ...e-0.12.23.recipe => bottle-0.12.25.recipe} | 48 +++++++++++-------- 1 file changed, 27 insertions(+), 21 deletions(-) rename dev-python/bottle/{bottle-0.12.23.recipe => bottle-0.12.25.recipe} (70%) diff --git a/dev-python/bottle/bottle-0.12.23.recipe b/dev-python/bottle/bottle-0.12.25.recipe similarity index 70% rename from dev-python/bottle/bottle-0.12.23.recipe rename to dev-python/bottle/bottle-0.12.25.recipe index 814f48a9a..739e85820 100644 --- a/dev-python/bottle/bottle-0.12.23.recipe +++ b/dev-python/bottle/bottle-0.12.25.recipe @@ -12,11 +12,11 @@ and other HTTP-related metadata. * Server: Built-in HTTP development server and support for paste, fapws3, \ bjoern, gae, cherrypy or any other WSGI capable HTTP server." HOMEPAGE="https://bottlepy.org" -COPYRIGHT="2012 Marcel Hellkamp" +COPYRIGHT="2016 Marcel Hellkamp" LICENSE="MIT" -REVISION="3" +REVISION="1" SOURCE_URI="https://pypi.io/packages/source/b/bottle/bottle-$portVersion.tar.gz" -CHECKSUM_SHA256="683de3aa399fb26e87b274dbcf70b1a651385d459131716387abdc3792e04167" +CHECKSUM_SHA256="e1a9c94970ae6d710b3fb4526294dfeb86f2cb4a81eff3a4b98dc40fb0e5e021" ARCHITECTURES="any" PROVIDES=" @@ -30,23 +30,28 @@ BUILD_REQUIRES=" haiku_devel " -PYTHON_PACKAGES=(python39) -PYTHON_VERSIONS=(3.9) +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\n\ - cmd:bottle.py\n\ - \"; \ -REQUIRES_$pythonPackage=\"\ - haiku\n\ - cmd:python$pythonVersion\ - \"" -BUILD_REQUIRES="$BUILD_REQUIRES - setuptools_$pythonPackage" -BUILD_PREREQUIRES="$BUILD_PREREQUIRES - cmd:python$pythonVersion" + pythonPackage=${PYTHON_PACKAGES[i]} + pythonVersion=${PYTHON_VERSIONS[$i]} + + eval "PROVIDES_${pythonPackage}=\" + ${portName}_$pythonPackage = $portVersion + cmd:bottle.py + \"" + + eval "REQUIRES_$pythonPackage=\" + haiku + cmd:python$pythonVersion + \"" + + BUILD_REQUIRES+=" + setuptools_$pythonPackage + " + BUILD_PREREQUIRES+=" + cmd:python$pythonVersion + " done INSTALL() @@ -58,14 +63,15 @@ INSTALL() 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 \ + packageEntries $pythonPackage \ $prefix/lib/python* \ $prefix/bin done } -