argparse_manpage: actually commit the recipe

fixup for the last commit
This commit is contained in:
Joachim Mairböck
2024-08-25 12:47:07 +02:00
parent 1d6af37bf2
commit dc92451a55

View File

@@ -15,10 +15,11 @@ HOMEPAGE="https://github.com/praiskup/argparse-manpage"
COPYRIGHT="Gabriele Giammatteo
Pavel Raiskup"
LICENSE="Apache v2"
REVISION="1"
REVISION="2"
SOURCE_URI="https://github.com/praiskup/argparse-manpage/releases/download/v$portVersion/argparse-manpage-$portVersion.tar.gz"
CHECKSUM_SHA256="0b659d70fd142876da41c2918bd6de4d027875720b0e4672d6443b51198dbb62"
SOURCE_DIR="argparse-manpage-$portVersion"
PATCHES="argparse_manpage-$portVersion.patchset"
ARCHITECTURES="any"
@@ -53,24 +54,35 @@ for i in "${!PYTHON_VERSIONS[@]}"; do
eval "REQUIRES_$pythonPackage=\"
haiku
cmd:python$pythonVersion
tomli_$pythonPackage
\""
if [ ${pythonVersion:2} -lt 11 ]; then
eval "REQUIRES_$pythonPackage+=\"
tomli_$pythonPackage
\""
fi
BUILD_REQUIRES+="
build_$pythonPackage
installer_$pythonPackage
setuptools_$pythonPackage
tomli_$pythonPackage # only needed for python < 3.11
wheel_$pythonPackage
"
BUILD_PREREQUIRES+="
cmd:python$pythonVersion
"
TEST_REQUIRES+="
pip_$pythonPackage
pytest_$pythonPackage
"
done
PATCH()
{
sed -i "s,share/man,$relativeManDir,g" build_manpages/build_manpages.py
sed -i "s,share/man,$relativeManDir,g" \
build_manpages/build_manpages.py \
tests/test_examples.py
}
INSTALL()
@@ -108,3 +120,14 @@ INSTALL()
$manDir
done
}
TEST() {
for i in "${!PYTHON_VERSIONS[@]}"; do
pythonVersion=${PYTHON_VERSIONS[$i]}
pythonPackage=python${pythonVersion//.}
python=python$pythonVersion
$python -m pytest
done
}