c1784225b0
Ok sthen@
37 lines
795 B
Makefile
37 lines
795 B
Makefile
# $OpenBSD: Makefile,v 1.8 2017/01/13 12:44:28 nigel Exp $
|
|
|
|
COMMENT = library to retrieve system information and utilisation
|
|
|
|
MODPY_EGG_VERSION = 4.4.2
|
|
GH_ACCOUNT = giampaolo
|
|
GH_PROJECT = psutil
|
|
GH_TAGNAME = release-${MODPY_EGG_VERSION}
|
|
DISTNAME = psutil-${MODPY_EGG_VERSION}
|
|
PKGNAME = py-psutil-${MODPY_EGG_VERSION}
|
|
CATEGORIES = sysutils
|
|
REVISION = 0
|
|
|
|
HOMEPAGE = https://github.com/giampaolo/psutil
|
|
|
|
# BSD
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
WANTLIB += kvm pthread ${MODPY_WANTLIB}
|
|
|
|
MODULES = lang/python
|
|
MODPY_SETUPTOOLS = Yes
|
|
TEST_DEPENDS = ${BUILD_PKGPATH} \
|
|
devel/py-mock${MODPY_FLAVOR}
|
|
|
|
FLAVORS = python3
|
|
FLAVOR ?=
|
|
|
|
.if ! ${FLAVOR:Mpython3}
|
|
TEST_DEPENDS += net/py-ipaddress${MODPY_FLAVOR}
|
|
.endif
|
|
|
|
do-test:
|
|
cd ${WRKSRC}; ${MODPY_BIN} psutil/tests/runner.py
|
|
|
|
.include <bsd.port.mk>
|