mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-10 05:40:07 +02:00
pathspec, new python recipe (#8673)
This commit is contained in:
65
dev-python/pathspec/pathspec-0.11.1.recipe
Normal file
65
dev-python/pathspec/pathspec-0.11.1.recipe
Normal file
@@ -0,0 +1,65 @@
|
||||
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="1"
|
||||
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_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
|
||||
\""
|
||||
eval "REQUIRES_$pythonPackage=\"
|
||||
haiku
|
||||
cmd:python$pythonVersion
|
||||
\""
|
||||
BUILD_REQUIRES+="
|
||||
setuptools_$pythonPackage
|
||||
"
|
||||
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*
|
||||
done
|
||||
}
|
||||
Reference in New Issue
Block a user