mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
61 lines
1.5 KiB
Bash
61 lines
1.5 KiB
Bash
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="2"
|
|
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=(python38 python39)
|
|
PYTHON_VERSIONS=(3.8 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
|
|
}
|