mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 21:30:08 +02:00
* python3.8: bulk removal of now obsolete "_python38" packages. Done via scripting. No functional change intended or expected. Some manual tweaks will follow. * python3.8: further manual tweaks after bulk-3.8-removal. Unlike the previous commit with automated changes, I've tested builds for *these* recipes in beta4 64 bits.
67 lines
1.7 KiB
Bash
67 lines
1.7 KiB
Bash
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="3"
|
|
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=(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\
|
|
\"; \
|
|
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
|
|
}
|