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)
This commit is contained in:
Muhammad Moinur Rahman 2020-05-26 20:54:04 +00:00
parent 06d85c9843
commit c8fffbdc46
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=536654
2 changed files with 12 additions and 8 deletions

View File

@ -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 <bsd.port.mk>

View File

@ -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