mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
whatever: drop unused recipe. (#11968)
Introduced in 21b15109c4, just for tests
of the `funcy` recipe (but we are dropping that as well).
Users should try to `pip install` this, if they need it.
This commit is contained in:
@@ -1,71 +0,0 @@
|
||||
SUMMARY="Easy way to make anonymous functions by partial application of operators"
|
||||
DESCRIPTION="An easy way to make lambdas by partial application of python operators.
|
||||
|
||||
Inspired by Perl 6 one, see http://perlcabal.org/syn/S02.html#The_Whatever_Object"
|
||||
HOMEPAGE="http://github.com/Suor/whatever"
|
||||
COPYRIGHT="2012-2014 Alexander Schepanovski"
|
||||
LICENSE="BSD (3-clause)"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://pypi.python.org/packages/source/w/$portName/$portName-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="82d9ab46297c41e2fd4947684f666d4f06c632edd458caf4468417da51c84581"
|
||||
|
||||
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+="
|
||||
build_$pythonPackage
|
||||
installer_$pythonPackage
|
||||
setuptools_$pythonPackage
|
||||
wheel_$pythonPackage
|
||||
"
|
||||
BUILD_PREREQUIRES+="
|
||||
cmd:python$pythonVersion
|
||||
"
|
||||
done
|
||||
|
||||
TEST_REQUIRES="
|
||||
cmd:pytest
|
||||
"
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
|
||||
python=python$pythonVersion
|
||||
|
||||
$python -m build --wheel --skip-dependency-check --no-isolation
|
||||
$python -m installer -p $prefix dist/*.whl
|
||||
|
||||
packageEntries ${PYTHON_PACKAGES[i]} \
|
||||
$prefix/lib/python*
|
||||
done
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
pytest -v
|
||||
}
|
||||
Reference in New Issue
Block a user