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" ARCHITECTURES="?any" pythonVersion=3.10 pythonPackage=python${pythonVersion//.} PROVIDES=" $portName = $portVersion cmd:glances = $portVersion " REQUIRES=" haiku future_$pythonPackage psutil_$pythonPackage cmd:python$pythonVersion " BUILD_REQUIRES=" haiku_devel setuptools_$pythonPackage " BUILD_PREREQUIRES=" cmd:python$pythonVersion " INSTALL() { 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 mkdir -p $docDir $manDir mv $prefix/share/doc/glances/* $docDir/ mv $prefix/share/man/* $manDir/ rm -rf $prefix/share }