c560e2127b
Changes since 3.2.3: =============== Version 3.2.3.1 =============== Patch to correct issue (regression) #1922: * Incorrect processes disk IO stats #1922 * DSM 6 docker error crash /sys/class/power_supply #1921
39 lines
1.4 KiB
Makefile
39 lines
1.4 KiB
Makefile
# $NetBSD: Makefile,v 1.13 2021/08/21 21:45:52 fox Exp $
|
|
|
|
DISTNAME= Glances-3.2.3.1
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
|
|
CATEGORIES= sysutils python
|
|
MASTER_SITES= ${MASTER_SITE_PYPI:=G/Glances/}
|
|
|
|
MAINTAINER= fox@NetBSD.org
|
|
HOMEPAGE= https://nicolargo.github.io/glances/
|
|
COMMENT= Cross-platform curses-based monitoring tool
|
|
LICENSE= gnu-lgpl-v3
|
|
|
|
DEPENDS+= ${PYPKGPREFIX}-psutil>=5.3.0:../../sysutils/py-psutil
|
|
DEPENDS+= ${PYPKGPREFIX}-future-[0-9]*:../../devel/py-future
|
|
DEPENDS+= ${PYPKGPREFIX}-curses-[0-9]*:../../devel/py-curses
|
|
DEPENDS+= ${PYPKGPREFIX}-cursespanel-[0-9]*:../../devel/py-cursespanel
|
|
DEPENDS+= ${PYPKGPREFIX}-defusedxml-[0-9]*:../../textproc/py-defusedxml
|
|
|
|
USE_LANGUAGES= # none
|
|
|
|
SUBST_CLASSES+= prefix
|
|
SUBST_STAGE.prefix= pre-configure
|
|
SUBST_MESSAGE.prefix= Set correct prefix in setup.py
|
|
SUBST_FILES.prefix= ${WRKSRC}/setup.py
|
|
SUBST_SED.prefix= -e 's,share/man,${PKGMANDIR},'
|
|
|
|
post-extract:
|
|
# Removes the nodejs component which is not required.
|
|
${RM} -fR ${WRKSRC}/glances/outputs/static
|
|
|
|
post-install:
|
|
cd ${DESTDIR}${PREFIX} && \
|
|
${MV} bin/glances bin/glances-${PYVERSSUFFIX} && \
|
|
${MV} ${PKGMANDIR}/man1/glances.1 ${PKGMANDIR}/man1/glances-${PYVERSSUFFIX}.1 && \
|
|
${MV} share/doc/glances share/doc/glances-${PYVERSSUFFIX} && \
|
|
${MV} share/examples/glances share/examples/glances-${PYVERSSUFFIX} || ${TRUE}
|
|
|
|
.include "../../lang/python/egg.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|