mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
markupsafe: update to version 2.1.3, recipe fixups. (#9507)
This commit is contained in:
77
dev-python/markupsafe/markupsafe-2.1.3.recipe
Normal file
77
dev-python/markupsafe/markupsafe-2.1.3.recipe
Normal file
@@ -0,0 +1,77 @@
|
||||
SUMMARY="Safely add untrusted strings to HTML/XML markup"
|
||||
DESCRIPTION="MarkupSafe implements a text object that escapes characters so it is safe to use in \
|
||||
HTML and XML. Characters that have special meanings are replaced so that they display as the \
|
||||
actual characters. This mitigates injection attacks, meaning untrusted user input can safely be \
|
||||
displayed on a page. Escaping is implemented in C so it is as efficient as possible."
|
||||
HOMEPAGE="https://palletsprojects.com/p/markupsafe/"
|
||||
COPYRIGHT="2019 Armin Ronacher and contributors"
|
||||
LICENSE="BSD (3-clause)"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://pypi.python.org/packages/source/m/markupsafe/MarkupSafe-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="af598ed32d6ae86f1b747b82783958b1a4ab8f617b06fe68795c7f026abbdcad"
|
||||
SOURCE_DIR="MarkupSafe-$portVersion"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
$portName = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
"
|
||||
|
||||
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
|
||||
\""
|
||||
|
||||
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
||||
eval "PROVIDES_$pythonPackage+=\"
|
||||
markupsafe_$pythonPackage = $portVersion
|
||||
\""
|
||||
fi
|
||||
|
||||
eval "REQUIRES_$pythonPackage=\"
|
||||
$REQUIRES
|
||||
cmd:python$pythonVersion
|
||||
\""
|
||||
BUILD_REQUIRES+="
|
||||
build_$pythonPackage
|
||||
installer_$pythonPackage
|
||||
setuptools_$pythonPackage
|
||||
wheel_$pythonPackage
|
||||
"
|
||||
BUILD_PREREQUIRES+="
|
||||
cmd:python$pythonVersion
|
||||
"
|
||||
done
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
|
||||
python=python$pythonVersion
|
||||
|
||||
rm -rf dist
|
||||
|
||||
$python -m build --wheel --skip-dependency-check --no-isolation
|
||||
$python -m installer --p $prefix dist/*.whl
|
||||
|
||||
packageEntries ${PYTHON_PACKAGES[i]} \
|
||||
"$prefix"/lib/python*
|
||||
done
|
||||
}
|
||||
Reference in New Issue
Block a user