blob: fbeb6a3a171ce8af5f13f44873c5ef6f9310efbd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# $NetBSD: Makefile,v 1.5 2020/03/26 14:20:11 fox Exp $
DISTNAME= Glances-3.1.4.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
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"
|