SUMMARY="CLI curses based monitoring tool" DESCRIPTION="Glances is a cross-platform monitoring tool which aims to present a large amount of monitoring information through a curses or Web based interface. The information dynamically adapts depending on the size of the user interface." HOMEPAGE="https://nicolargo.github.io/glances/" COPYRIGHT="2019 Nicolargo" LICENSE="GNU LGPL v3" REVISION="1" SOURCE_URI="https://github.com/nicolargo/glances/archive/v$portVersion.tar.gz" CHECKSUM_SHA256="e3e8f9362b82c74427522e82501b47696945251035b35282f9ee4bc533996220" #SOURCE_DIR="psutil-release-$portVersion" #PATCHES="psutil-$portVersion.patchset" ARCHITECTURES="all !x86_gcc2" SECONDARY_ARCHITECTURES="x86" PROVIDES=" $portName = $portVersion cmd:glances = $portVersion " REQUIRES=" haiku$secondaryArchSuffix " BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel " BUILD_PREREQUIRES=" cmd:gcc$secondaryArchSuffix " PYTHON_PACKAGES=(python36 python3) PYTHON_VERSIONS=(3.6 3.7) for i in "${!PYTHON_PACKAGES[@]}"; do pythonPackage=${PYTHON_PACKAGES[i]} pythonVersion=${PYTHON_VERSIONS[$i]} eval "PROVIDES_${pythonPackage}=\"\ ${portName}_$pythonPackage = $portVersion\ \"; \ REQUIRES_$pythonPackage=\"\ haiku$secondaryArchSuffix\n\ future_$pythonPackage\n\ psutil${secondaryArchSuffix}_$pythonPackage\n\ cmd:python$pythonVersion\ \"" BUILD_REQUIRES="$BUILD_REQUIRES setuptools_$pythonPackage psutil${secondaryArchSuffix}_$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 }