Files
haikuports/dev-python/bottle/bottle-0.12.23.recipe
OscarL 70ac5cadda python3.8: bulk removal of now obsolete "_python38" packages. (#9328)
* 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.
2023-09-01 18:19:50 +00:00

72 lines
2.0 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="2012 Marcel Hellkamp"
LICENSE="MIT"
REVISION="3"
SOURCE_URI="https://pypi.io/packages/source/b/bottle/bottle-$portVersion.tar.gz"
CHECKSUM_SHA256="683de3aa399fb26e87b274dbcf70b1a651385d459131716387abdc3792e04167"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python39)
PYTHON_VERSIONS=(3.9)
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"
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* \
$prefix/bin
done
}