Files
haikuports/dev-python/bottle/bottle-0.12.25.recipe
Oscar Lesta 532affa684 bottle: drop Python 3.9 support.
The only on-tree user of bottle (youcompleteme), already is 3.10 only.
2025-09-19 22:53:14 -03:00

76 lines
1.9 KiB
Bash

SUMMARY="Fast, simple and lightweight WSGI micro web-framework for Python"
DESCRIPTION="Bottle is a fast, simple and lightweight WSGI micro \
web-framework for Python. It is distributed as a single file module and has \
no dependencies other than the Python Standard Library.
* Routing: Requests to function-call mapping with support for clean and \
dynamic URLs.
* Templates: Fast and pythonic built-in template engine and support for mako, \
jinja2 and cheetah templates.
* Utilities: Convenient access to form data, file uploads, cookies, headers \
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="2016 Marcel Hellkamp"
LICENSE="MIT"
REVISION="2"
SOURCE_URI="https://pypi.io/packages/source/b/bottle/bottle-$portVersion.tar.gz"
CHECKSUM_SHA256="e1a9c94970ae6d710b3fb4526294dfeb86f2cb4a81eff3a4b98dc40fb0e5e021"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_VERSIONS=(3.10)
for pythonVersion in ${PYTHON_VERSIONS[@]}; do
pythonPackage=python${pythonVersion//.}
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()
{
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
packageEntries $pythonPackage \
$prefix/lib/python* \
$prefix/bin
done
}