mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
72 lines
1.6 KiB
Bash
72 lines
1.6 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="4"
|
|
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_VERSIONS=(3.10)
|
|
defaultVersion=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
|
|
|
|
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
|
|
}
|