From c8fffbdc460fd5a7217ae8649309044902d05945 Mon Sep 17 00:00:00 2001 From: Muhammad Moinur Rahman Date: Tue, 26 May 2020 20:54:04 +0000 Subject: [PATCH] sysutils/py-glances: Update version 3.1.3=>3.1.4 - Add TEST_DEPENDS and test framework - Update support for python upto 3.6 - Make use of ETCDIR PR: 244983 Approved by: gasol.wu@gmail.com (MAINTAINER) --- sysutils/py-glances/Makefile | 14 +++++++++----- sysutils/py-glances/distinfo | 6 +++--- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/sysutils/py-glances/Makefile b/sysutils/py-glances/Makefile index 3388b7db7f5b..cc2783a49fc7 100644 --- a/sysutils/py-glances/Makefile +++ b/sysutils/py-glances/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= glances -PORTVERSION= 3.1.3 +PORTVERSION= 3.1.4 DISTVERSIONPREFIX= v CATEGORIES= sysutils python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -15,9 +15,10 @@ LICENSE_FILE= ${WRKSRC}/COPYING RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}psutil>=5.3.0:sysutils/py-psutil@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}future>=0.15.2:devel/py-future@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}coverage>=0.15.2:devel/py-coverage@${PY_FLAVOR} -USES= python -USE_PYTHON= autoplist distutils +USES= python:-3.6 +USE_PYTHON= autoplist concurrent distutils USE_GITHUB= yes OPTIONS_DEFINE= DOCS @@ -31,8 +32,11 @@ PLIST_FILES= ${ETCDIR}/glances.conf.sample \ man/man1/glances.1.gz post-install: - @${MKDIR} ${STAGEDIR}${PREFIX}/etc/glances - ${INSTALL_DATA} ${WRKSRC}/conf/glances.conf ${STAGEDIR}${PREFIX}/etc/glances/glances.conf.sample + @${MKDIR} ${STAGEDIR}${ETCDIR} + ${INSTALL_DATA} ${WRKSRC}/conf/glances.conf ${STAGEDIR}${ETCDIR}/glances.conf.sample ${INSTALL_MAN} ${WRKSRC}/docs/man/glances.1 ${STAGEDIR}${MANPREFIX}/man/man1/ +do-test: + @(cd ${WRKSRC} && ${SETENV} coverage-${PYTHON_VER} run --source=glances unitest.py) + .include diff --git a/sysutils/py-glances/distinfo b/sysutils/py-glances/distinfo index de4f0be8357f..5b487fbde3ef 100644 --- a/sysutils/py-glances/distinfo +++ b/sysutils/py-glances/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1571070873 -SHA256 (nicolargo-glances-v3.1.3_GH0.tar.gz) = e3e8f9362b82c74427522e82501b47696945251035b35282f9ee4bc533996220 -SIZE (nicolargo-glances-v3.1.3_GH0.tar.gz) = 6759527 +TIMESTAMP = 1584897349 +SHA256 (nicolargo-glances-v3.1.4_GH0.tar.gz) = bf5ec080b824f724bc2a5a42b6e2dbe9eba3effd60d50f2cf39af7e9bf18f6b7 +SIZE (nicolargo-glances-v3.1.4_GH0.tar.gz) = 6770502