Files
haikuports/dev-python/soupsieve/soupsieve-1.9.5.recipe
Oscar Lesta 38c7081a15 soupsieve: drop Python 3.9 support.
Only on-tree user (beautifulsoup4) already targets 3.10 only.
2025-09-19 22:53:14 -03:00

67 lines
1.6 KiB
Bash

SUMMARY="A modern CSS selector implementation for BeautifulSoup"
DESCRIPTION="Soup Sieve is a CSS selector library designed to be used with \
Beautiful Soup 4. It aims to provide selecting, matching, and filtering \
using modern CSS selectors. Soup Sieve currently provides selectors from \
the CSS level 1 specifications up through the latest CSS level 4 drafts \
and beyond (though some are not yet implemented)."
HOMEPAGE="https://github.com/facelessuser/soupsieve"
COPYRIGHT="2018 Isaac Muse"
LICENSE="MIT"
REVISION="7"
SOURCE_URI="https://github.com/facelessuser/soupsieve/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="ba6a129e3e0e8ea5928684fd720f548eec65bc53947d9ac2b264dd2412d5cf55"
SOURCE_FILENAME="$portName-v$portVersion.tar.gz"
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
\""
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*
done
}