0ce1cf37a7
Bug fixes 1000: fixed some setup.py warnings. 1002: [SunOS] remove C macro which will not be available on new Solaris versions. (patch by Danek Duvall) 1004: [Linux] Process.io_counters() may raise ValueError. 1006: [Linux] cpu_freq() may return None on some Linux versions does not support the function; now the function is not declared instead. 1009: [Linux] sensors_temperatures() may raise OSError. 1010: [Linux] virtual_memory() may raise ValueError on Ubuntu 14.04.
38 lines
1,020 B
Makefile
38 lines
1,020 B
Makefile
# $NetBSD: Makefile,v 1.20 2017/05/29 16:02:40 adam Exp $
|
|
|
|
DISTNAME= psutil-5.2.2
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= ${MASTER_SITE_PYPI:=p/psutil/}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://github.com/giampaolo/psutil
|
|
COMMENT= Cross-platform process and system utilities module for Python
|
|
LICENSE= modified-bsd
|
|
|
|
USE_LANGUAGES= c
|
|
|
|
.include "../../lang/python/pyversion.mk"
|
|
|
|
.if "${PYPKGPREFIX}" == "py27"
|
|
BUILD_DEPENDS+= ${PYPKGPREFIX}-ipaddress-[0-9]*:../../net/py-ipaddress
|
|
.endif
|
|
BUILD_DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock
|
|
BUILD_DEPENDS+= ${PYPKGPREFIX}-unittest2-[0-9]*:../../devel/py-unittest2
|
|
|
|
REPLACE_PYTHON= psutil/*py
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
# facilitate PLIST processing
|
|
.if ${OPSYS} == "Darwin"
|
|
PLIST_SUBST+= SYSTEM=osx
|
|
.elif !empty(OPSYS:M*BSD)
|
|
PLIST_SUBST+= SYSTEM=bsd
|
|
.else
|
|
PLIST_SUBST+= SYSTEM=${OPSYS:tl}
|
|
.endif
|
|
|
|
.include "../../lang/python/application.mk"
|
|
.include "../../lang/python/egg.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|