mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
Add recipe for psutil
And partial patch, but not enough to run glances yet.
This commit is contained in:
1410
dev-python/psutil/patches/psutil-5.6.7.patchset
Normal file
1410
dev-python/psutil/patches/psutil-5.6.7.patchset
Normal file
File diff suppressed because it is too large
Load Diff
71
dev-python/psutil/psutil-5.6.7.recipe
Normal file
71
dev-python/psutil/psutil-5.6.7.recipe
Normal file
@@ -0,0 +1,71 @@
|
||||
SUMMARY="Cross-platform lib for process and system monitoring in Python"
|
||||
DESCRIPTION="psutil (process and system utilities) is a cross-platform library
|
||||
for retrieving information on running processes and system utilization
|
||||
(CPU, memory, disks, network, sensors) in Python.
|
||||
It is useful mainly for system monitoring, profiling and limiting process
|
||||
resources and management of running processes.
|
||||
It implements many functionalities offered by classic UNIX command line
|
||||
tools such as ps, top, iotop, lsof, netstat, ifconfig, free and others."
|
||||
HOMEPAGE="https://github.com/giampaolo/psutil/"
|
||||
COPYRIGHT="2009 Giampaolo Rodola'"
|
||||
LICENSE="BSD (3-clause)"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://github.com/giampaolo/psutil/archive/release-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="ebbed18bf912fa4981d05c5c1a0cacec2aa8c594e1608f0cf5cc7a3d4f63d4d4"
|
||||
SOURCE_DIR="psutil-release-$portVersion"
|
||||
PATCHES="psutil-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 ?x86_64"
|
||||
SECONDARY_ARCHITECTURES="?x86"
|
||||
|
||||
PROVIDES="
|
||||
$portName = $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\
|
||||
cmd:python$pythonVersion\
|
||||
\""
|
||||
BUILD_REQUIRES="$BUILD_REQUIRES
|
||||
setuptools_$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
|
||||
}
|
||||
Reference in New Issue
Block a user