python-distutils-extra: drop unused recipe. (#9478)

This one looks rather Debian specific (not found on PyPI), and
not used by anything on-tree.

Lets drop it for now, unless a specific usecase for it promts for
a revival :-D
This commit is contained in:
OscarL
2023-09-21 01:35:28 -03:00
committed by GitHub
parent 0afca26b49
commit 581388483d

View File

@@ -1,60 +0,0 @@
SUMMARY="Enhancements to the Python build system"
DESCRIPTION="Enables you to easily integrate gettext support, themed icons and scrollkeeper \
based documentation into Python's distutils."
HOMEPAGE="https://salsa.debian.org/python-team/packages/python-distutils-extra"
COPYRIGHT="2022 Debian Python Team"
LICENSE="GNU GPL v2"
REVISION="3"
SOURCE_URI="$HOMEPAGE/-/archive/$portVersion/python-distutils-extra-$portVersion.tar.bz2"
CHECKSUM_SHA256="bc8979d320d5b79016e65b5e598aa100f96ef04aeba0e389d4dfec7c4d9f6c15"
SOURCE_DIR="python-distutils-extra-$portVersion"
ARCHITECTURES="any"
PROVIDES="
$portName = $portVersion
"
REQUIRES="
haiku
"
BUILD_REQUIRES="
haiku_devel
"
PYTHON_PACKAGES=(python39)
PYTHON_VERSIONS=(3.9)
for i in "${!PYTHON_PACKAGES[@]}"; do
pythonPackage=${PYTHON_PACKAGES[i]}
pythonVersion=${PYTHON_VERSIONS[$i]}
eval "PROVIDES_${pythonPackage}=\"\
${portName}_$pythonPackage = $portVersion\
\"; \
REQUIRES_$pythonPackage=\"$REQUIRES\
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:$PYTHONPATH
mkdir -p $installLocation
rm -rf build
$python setup.py build install \
--root=/ --prefix=$prefix
packageEntries $pythonPackage \
$prefix/lib/python*
done
}