# $NetBSD: Makefile,v 1.27 2019/03/18 12:59:50 adam Exp $ DISTNAME= psutil-5.6.1 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} CATEGORIES= sysutils python 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 .include "../../lang/python/pyversion.mk" .if ${_PYTHON_VERSION} == 27 TEST_DEPENDS+= ${PYPKGPREFIX}-enum34-[0-9]*:../../devel/py-enum34 TEST_DEPENDS+= ${PYPKGPREFIX}-ipaddress-[0-9]*:../../net/py-ipaddress TEST_DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock .endif 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"