mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
click, bump version, drop python2.7, add python3.10 (#7200)
This commit is contained in:
66
dev-python/click/click-8.1.3.recipe
Normal file
66
dev-python/click/click-8.1.3.recipe
Normal file
@@ -0,0 +1,66 @@
|
||||
SUMMARY="A Python package for creating beautiful command line interfaces"
|
||||
DESCRIPTION="The \“Command Line Interface Creation Kit\”, or \"click\", aims \
|
||||
to make the process of writing command line tools quick and fun."
|
||||
HOMEPAGE="https://click.palletsprojects.com/
|
||||
https://pypi.org/project/click/
|
||||
https://github.com/pallets/click"
|
||||
COPYRIGHT="2014-2018 Pallets Team
|
||||
2001-2006 Gregory P. Ward
|
||||
2002-2006 Python Software Foundation"
|
||||
LICENSE="BSD (3-clause)"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/pallets/click/archive/refs/tags/$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="abb9959ec2d6cf198f70ca78ec2a5cd74110a6de728ecd19d8892ff65576f184"
|
||||
SOURCE_FILENAME="click-$portVersion.tar.gz"
|
||||
|
||||
ARCHITECTURES="any"
|
||||
|
||||
PROVIDES="
|
||||
$portName = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku_devel
|
||||
"
|
||||
|
||||
PYTHON_PACKAGES=(python3 python38 python39 python310)
|
||||
PYTHON_VERSIONS=(3.7 3.8 3.9 3.10)
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
eval "PROVIDES_${pythonPackage}=\"\
|
||||
${portName}_$pythonPackage = $portVersion\
|
||||
\"; \
|
||||
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
|
||||
mkdir -p "$installLocation"
|
||||
$python setup.py install \
|
||||
--root=/ --prefix="$prefix"
|
||||
|
||||
packageEntries $pythonPackage \
|
||||
"$prefix"/lib/$python
|
||||
|
||||
install -m 755 -d "$docDir"
|
||||
install -m 644 -t "$docDir" README.rst
|
||||
done
|
||||
}
|
||||
Reference in New Issue
Block a user