2022-08-08 11:28:06 +02:00
|
|
|
# $NetBSD: Makefile,v 1.20 2022/08/08 09:28:06 fox Exp $
|
2019-10-10 14:38:40 +02:00
|
|
|
|
2022-08-08 11:28:06 +02:00
|
|
|
DISTNAME= Glances-3.2.7
|
2019-10-10 14:38:40 +02:00
|
|
|
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
|
2021-07-16 06:24:16 +02:00
|
|
|
DEPENDS+= ${PYPKGPREFIX}-defusedxml-[0-9]*:../../textproc/py-defusedxml
|
2021-12-05 12:46:40 +01:00
|
|
|
DEPENDS+= ${PYPKGPREFIX}-packaging-[0-9]*:../../devel/py-packaging
|
2019-10-10 14:38:40 +02:00
|
|
|
|
|
|
|
USE_LANGUAGES= # none
|
|
|
|
|
2022-05-01 11:13:41 +02:00
|
|
|
PYTHON_VERSIONS_INCOMPATIBLE= 27
|
|
|
|
|
2022-01-05 16:40:56 +01:00
|
|
|
USE_PKG_RESOURCES= yes
|
|
|
|
|
2019-10-10 14:38:40 +02:00
|
|
|
SUBST_CLASSES+= prefix
|
|
|
|
SUBST_STAGE.prefix= pre-configure
|
|
|
|
SUBST_MESSAGE.prefix= Set correct prefix in setup.py
|
|
|
|
SUBST_FILES.prefix= ${WRKSRC}/setup.py
|
2019-10-12 07:35:03 +02:00
|
|
|
SUBST_SED.prefix= -e 's,share/man,${PKGMANDIR},'
|
2019-10-10 14:38:40 +02:00
|
|
|
|
2019-10-16 13:07:57 +02:00
|
|
|
post-extract:
|
|
|
|
# Removes the nodejs component which is not required.
|
|
|
|
${RM} -fR ${WRKSRC}/glances/outputs/static
|
|
|
|
|
2019-10-10 14:38:40 +02:00
|
|
|
post-install:
|
|
|
|
cd ${DESTDIR}${PREFIX} && \
|
2019-10-12 07:35:03 +02:00
|
|
|
${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}
|
2019-10-10 14:38:40 +02:00
|
|
|
|
|
|
|
.include "../../lang/python/egg.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|