Files
haikuports/dev-python/pathspec/pathspec-0.11.1.recipe
Oscar Lesta 541a5e9c39 pathspec: drop Python 3.9 support.
Only user on-tree (hatchling) is 3.10 only already.
2025-09-19 22:53:14 -03:00

66 lines
1.5 KiB
Bash

SUMMARY="Utility library for gitignore style pattern matching of file paths"
DESCRIPTION="*pathspec* is a utility library for pattern matching of file paths. So far this only \
includes Git's wildmatch pattern matching which itself is derived from Rsync's wildmatch. Git \
uses wildmatch for its \`gitignore\` files."
HOMEPAGE="https://github.com/cpburnz/python-pathspec"
COPYRIGHT="2013-2023 Caleb P. Burns"
LICENSE="MPL v2.0"
REVISION="2"
SOURCE_URI="$HOMEPAGE/archive/refs/tags/v$portVersion.tar.gz"
CHECKSUM_SHA256="d1e055af653947e8c6637320d3d753df662685a79ffd5ef5c8628ae330bb18ee"
SOURCE_FILENAME="patspec-v$portVersion.tar.gz"
SOURCE_DIR="python-pathspec-$portVersion"
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
}