1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/sysutils/py-glances/Makefile
Sunpoet Po-Chuan Hsieh fd68f4026f - Fix package
- While I'm here, cleanup and simplify Makefile

PR:		ports/185408
Submitted by:	Gasol Wu <gasol.wu@gmail.com> (maintainer)
2014-01-04 08:26:00 +00:00

41 lines
1.2 KiB
Makefile

# Created by: Gasol Wu <gasol.wu@gmail.com>
# $FreeBSD$
PORTNAME= glances
PORTVERSION= 1.7.3
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>=1.2.1:${PORTSDIR}/sysutils/py-psutil
OPTIONS_DEFINE= MANPAGES NLS
OPTIONS_SUB= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USE_PYTHON= yes
USE_PYDISTUTILS=easy_install
PYDISTUTILS_PKGNAME= Glances
MANPAGES_MAN1= glances.1
NLS_TRANSLATIONS= es fr it pt_BR zh_CN
NLS_USES= gettext
post-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/glances
${INSTALL_DATA} ${WRKSRC}/conf/glances.conf ${STAGEDIR}${PREFIX}/etc/glances/glances.conf.sample
${INSTALL_MAN} ${WRKSRC}/man/glances.1 ${STAGEDIR}${MANPREFIX}/man/man1/
.for lang in ${NLS_TRANSLATIONS}
${INSTALL_DATA} ${WRKSRC}/i18n/${lang}/LC_MESSAGES/glances.mo \
${STAGEDIR}${PREFIX}/share/locale/${lang}/LC_MESSAGES/
.endfor
.include <bsd.port.mk>