pkgsrc/sysutils/py-Glances/Makefile

39 lines
1.3 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.9 2021/05/04 22:18:17 fox Exp $
DISTNAME= Glances-3.1.7
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
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"