1SUMMARY="YAML parser and emitter for Python" 2DESCRIPTION="YAML is a data serialization format designed for human readability \ 3and interaction with scripting languages. \ 4PyYAML is a YAML parser and emitter for Python. 5 6PyYAML features a complete YAML 1.1 parser, Unicode support, \ 7pickle support, capable extension API, and sensible error messages. \ 8PyYAML supports standard YAML tags and \ 9provides Python-specific tags that allow to represent an arbitrary Python object. 10 11PyYAML is applicable for a broad range of tasks from \ 12complex configuration files to object serialization and persistance." 13HOMEPAGE="https://pyyaml.org/" 14COPYRIGHT="2017-2021 Ingy d��t Net 15 2006-2016 Kirill Simonov" 16LICENSE="MIT" 17REVISION="3" 18SOURCE_URI="https://github.com/yaml/pyyaml/archive/refs/tags/$portVersion.tar.gz" 19CHECKSUM_SHA256="f33eaba25d8e0c1a959bbf00655198c287dfc5868f5b7b01e401eaa1796cc778" 20SOURCE_FILENAME="pyyaml-$portVersion.tar.gz" 21 22ARCHITECTURES="any" 23 24PROVIDES=" 25 $portName = $portVersion 26 " 27REQUIRES=" 28 haiku 29 " 30 31BUILD_REQUIRES=" 32 haiku_devel 33 " 34BUILD_PREREQUIRES=" 35 cmd:gcc 36 " 37 38PYTHON_PACKAGES=(python39 python310) 39PYTHON_VERSIONS=(3.9 3.10) 40for i in "${!PYTHON_PACKAGES[@]}"; do 41pythonPackage=${PYTHON_PACKAGES[i]} 42pythonVersion=${PYTHON_VERSIONS[$i]} 43eval "PROVIDES_${pythonPackage}=\"\ 44 ${portName}_$pythonPackage = $portVersion\ 45 \"; \ 46REQUIRES_$pythonPackage=\"\ 47 haiku\n\ 48 cmd:python$pythonVersion\ 49 \"" 50BUILD_REQUIRES="$BUILD_REQUIRES 51 setuptools_$pythonPackage" 52BUILD_PREREQUIRES="$BUILD_PREREQUIRES 53 cmd:python$pythonVersion" 54done 55 56INSTALL() 57{ 58 for i in "${!PYTHON_PACKAGES[@]}"; do 59 pythonPackage=${PYTHON_PACKAGES[i]} 60 pythonVersion=${PYTHON_VERSIONS[$i]} 61 62 python=python$pythonVersion 63 installLocation=$prefix/lib/$python/vendor-packages/ 64 export PYTHONPATH=$installLocation:$PYTHONPATH 65 mkdir -p $installLocation 66 rm -rf build 67 $python setup.py build install \ 68 --root=/ --prefix=$prefix 69 70 packageEntries $pythonPackage \ 71 $prefix/lib/python* 72 done 73} 74