blob: 386849532a25ba8c21331446594fefcb82e31178 (
plain) (
blame)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Created by: Gasol Wu <gasol.wu@gmail.com>
# $FreeBSD$
PORTNAME= glances
PORTVERSION= 1.7.1
CATEGORIES= sysutils python
MASTER_SITES= https://github.com/nicolargo/glances/archive/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= v${PORTVERSION}
MAINTAINER= gasol.wu@gmail.com
COMMENT= CLI curses based monitoring tool for GNU/Linux and BSD OS
LICENSE= LGPL3
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Jinja2>=2.0.0:${PORTSDIR}/devel/py-Jinja2 \
${PYTHON_PKGNAMEPREFIX}psutil>=0.4.1:${PORTSDIR}/sysutils/py-psutil
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
FETCH_ARGS= -pRr
USE_PYTHON= yes
USE_PYDISTUTILS=easy_install
PYDISTUTILS_PKGNAME= Glances
OPTIONS_DEFINE= NLS
.if !defined(NO_INSTALL_MANPAGES)
MAN1= glances.1
.endif
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
TRANSLATIONS= es fr it pt_BR zh_CN
.else
PLIST_SUB+= NLS="@comment "
.endif
post-install:
@${MKDIR} ${PREFIX}/etc/glances
${INSTALL_DATA} ${WRKSRC}/glances/conf/glances.conf ${PREFIX}/etc/glances/glances.conf.sample
.if !defined(NO_INSTALL_MANPAGES)
${INSTALL_MAN} ${WRKSRC}/docs/man/glances.1 ${MANPREFIX}/man/man1/
.endif
.if ${PORT_OPTIONS:MNLS}
.for lang in ${TRANSLATIONS}
${INSTALL_DATA} ${WRKSRC}/i18n/${lang}/LC_MESSAGES/glances.mo \
${PREFIX}/share/locale/${lang}/LC_MESSAGES/
.endfor
.endif
.include <bsd.port.mk>
|