1SUMMARY="An unobtrusive argparse wrapper with natural syntax" 2DESCRIPTION="Building a command-line interface? \ 3Found yourself uttering "argh!" while struggling with the API of argparse? \ 4Don't like the complexity but need the power? 5Argh is a smart wrapper for argparse. Argparse is a very powerful tool; \ 6Argh just makes it easy to use." 7HOMEPAGE="https://pypi.python.org/pypi/argh" 8COPYRIGHT="2010-2023 Andrey Mikhaylenko and contributors" 9LICENSE="GNU LGPL v3" 10REVISION="2" 11pypiVersion="b2/03/7cad222e3aed5ed668c3c93c35f7ee866bc1da5cdcac945275f45e8caf80" 12SOURCE_URI="https://files.pythonhosted.org/packages/$pypiVersion/$portName-$portVersion-py3-none-any.whl#noarchive" 13CHECKSUM_SHA256="10e7311f3ea54a78a366e5456900d8b81049f44d8d653b524eb90cf7d29a71ee" 14 15ARCHITECTURES="any" 16 17PROVIDES=" 18 $portName = $portVersion 19 " 20REQUIRES=" 21 haiku 22 " 23 24BUILD_REQUIRES=" 25 haiku_devel 26 " 27 28PYTHON_PACKAGES=(python39 python310) 29PYTHON_VERSIONS=(3.9 3.10) 30for i in "${!PYTHON_PACKAGES[@]}"; do 31pythonPackage=${PYTHON_PACKAGES[i]} 32pythonVersion=${PYTHON_VERSIONS[$i]} 33eval "PROVIDES_${pythonPackage}=\"\ 34 ${portName}_$pythonPackage = $portVersion\ 35 \"; \ 36REQUIRES_$pythonPackage=\"\ 37 haiku\n\ 38 cmd:python$pythonVersion\n\ 39 \"" 40BUILD_REQUIRES="$BUILD_REQUIRES 41 installer_$pythonPackage 42 " 43BUILD_PREREQUIRES="$BUILD_PREREQUIRES 44 cmd:python$pythonVersion" 45done 46 47INSTALL() 48{ 49 for i in "${!PYTHON_PACKAGES[@]}"; do 50 pythonPackage=${PYTHON_PACKAGES[i]} 51 pythonVersion=${PYTHON_VERSIONS[$i]} 52 53 python=python$pythonVersion 54 installLocation=$prefix/lib/$python/vendor-packages/ 55 export PYTHONPATH=$installLocation:$PYTHONPATH 56 mkdir -p $installLocation 57 58 $python -m installer -p $prefix $portName-$portVersion-py3-none-any.whl 59 60 packageEntries $pythonPackage \ 61 $prefix/lib/python* 62 done 63} 64