tqdm: drop unused recipe. (#11985)

Added in fd23026635, but not required by anything
on-tree since then.

It *does* provides a cmd:, but its usage outside of Python isn't popular enough
as to keep packaging this.

If users need it, they can `pip install` it.
This commit is contained in:
OscarL
2025-03-15 01:30:01 -03:00
committed by GitHub
parent 9c65bb4020
commit f264e2de06

View File

@@ -1,103 +0,0 @@
SUMMARY="Add a progress meter to your loops in a second"
DESCRIPTION="tqdm derives from the Arabic word *taqaddum* (تقدّم) which can mean *progress*, and \
is an abbreviation for *I love you so much* in Spanish *te quiero demasiado*.
Instantly make your loops show a smart progress meter - just wrap any iterable with \
``tqdm(iterable)``, and you're done!"
HOMEPAGE="https://github.com/tqdm/tqdm"
COPYRIGHT="2015-2023 tqdm contributors"
LICENSE="MIT
MPL v2.0"
REVISION="2"
SOURCE_URI="https://pypi.io/packages/source/${portName:0:1}/$portName/$portName-$portVersion.tar.gz"
CHECKSUM_SHA256="d88e651f9db8d8551a62556d3cff9e3034274ca5d66e93197cf2490e2dcb69c7"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python39 python310)
PYTHON_VERSIONS=(3.9 3.10)
defaultVersion=3.10
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_$pythonPackage=\"
${portName}_$pythonPackage = $portVersion
cmd:tqdm_$pythonVersion = $portVersion
\""
# Provide non-suffixed command for the default version
if [ $pythonVersion = $defaultVersion ]; then
eval "PROVIDES_${pythonPackage}+=\"
cmd:tqdm = $portVersion
\""
fi
eval "REQUIRES_$pythonPackage=\"
haiku
cmd:python$pythonVersion
\""
BUILD_REQUIRES+="
build_$pythonPackage
installer_$pythonPackage
setuptools_scm_$pythonPackage
setuptools_$pythonPackage
wheel_$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
# Avoid leftovers from the previous package build.
rm -rf build
# Without this, building without -G flag fails with an error from
# the installer module.
rm -rf dist
$python -m build --wheel --skip-dependency-check --no-isolation
$python -m installer -p $prefix dist/*.whl
# For non default versions, only provide suffixed commands
mv $binDir/tqdm $binDir/tqdm-$pythonVersion
if [ $pythonVersion = $defaultVersion ]; then
ln -sr $binDir/tqdm-$pythonVersion $binDir/tqdm
fi
packageEntries $pythonPackage \
$binDir \
$prefix/lib/python*
# Install man page and bash completions only for "tqdm".
if [ $pythonVersion = $defaultVersion ]; then
install -m 755 -d $manDir/man1
install -m 644 -t $manDir/man1 tqdm/tqdm.1
install -m 755 -d $dataDir/bash-completion/completions
install -m 644 tqdm/completion.sh $dataDir/bash-completion/completions/tqdm
packageEntries $pythonPackage \
$dataDir \
$manDir
fi
done
}