mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-10 22:00:09 +02:00
coverage: update to version 7.4.3. (#10210)
This commit is contained in:
@@ -4,12 +4,11 @@ HOMEPAGE="https://github.com/nedbat/coveragepy
|
||||
https://coverage.readthedocs.io/
|
||||
https://pypi.org/project/coverage/"
|
||||
COPYRIGHT="2001 Gareth Rees
|
||||
2004-2023 Ned Batchelder"
|
||||
2004-2024 Ned Batchelder"
|
||||
LICENSE="Apache v2"
|
||||
REVISION="1"
|
||||
pypiVersion="54/8a/db9d9cd24f96bb872eea151bb0d5c8cb6a96825b70a0cfaf07bceab2884d"
|
||||
SOURCE_URI="https://files.pythonhosted.org/packages/$pypiVersion/coverage-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="36dd42da34fe94ed98c39887b86db9d06777b1c8f860520e21126a75507024f2"
|
||||
SOURCE_URI="https://pypi.org/packages/source/c/coverage/coverage-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="276f6077a5c61447a48d133ed13e759c09e62aff0dc84274a68dc18660104d52"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
@@ -26,16 +25,15 @@ BUILD_REQUIRES="
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:rst2html.py
|
||||
cmd:rst2man.py
|
||||
cmd:rst2html
|
||||
cmd:rst2man
|
||||
"
|
||||
|
||||
PYTHON_PACKAGES=(python39 python310)
|
||||
PYTHON_VERSIONS=(3.9 3.10)
|
||||
defaultVersion=3.9
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
defaultVersion=3.10
|
||||
for i in "${!PYTHON_VERSIONS[@]}"; do
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
pythonPackage=python${pythonVersion//.}
|
||||
|
||||
eval "PROVIDES_$pythonPackage=\"
|
||||
${portName}_$pythonPackage = $portVersion
|
||||
@@ -73,12 +71,12 @@ done
|
||||
BUILD()
|
||||
{
|
||||
# Build the man page and README.html
|
||||
rst2man.py < doc/python-coverage.1.txt > coverage.1
|
||||
rst2html.py < README.rst > README.html
|
||||
rst2man < doc/python-coverage.1.txt > coverage.1
|
||||
rst2html < README.rst > README.html
|
||||
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
for i in "${!PYTHON_VERSIONS[@]}"; do
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
pythonPackage=python${pythonVersion//.}
|
||||
|
||||
rm -rf "$sourceDir"-$pythonPackage
|
||||
cp -a "$sourceDir" "$sourceDir"-$pythonPackage
|
||||
@@ -91,9 +89,9 @@ BUILD()
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
for i in "${!PYTHON_PACKAGES[@]}"; do
|
||||
pythonPackage=${PYTHON_PACKAGES[i]}
|
||||
for i in "${!PYTHON_VERSIONS[@]}"; do
|
||||
pythonVersion=${PYTHON_VERSIONS[$i]}
|
||||
pythonPackage=python${pythonVersion//.}
|
||||
|
||||
cd "$sourceDir"-$pythonPackage
|
||||
|
||||
Reference in New Issue
Block a user