aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2015-06-16 07:31:06 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2015-06-16 07:31:06 +0800
commite293f114f9f1499a44b61785ffb24c1f41705b71 (patch)
tree30fbcf83ffc38a6be2cc1a845229e174019179f5 /sysutils
parent5a0c2a522595ac550eea42433c78e270c79a7db6 (diff)
downloadfreebsd-ports-gnome-e293f114f9f1499a44b61785ffb24c1f41705b71.tar.gz
freebsd-ports-gnome-e293f114f9f1499a44b61785ffb24c1f41705b71.tar.zst
freebsd-ports-gnome-e293f114f9f1499a44b61785ffb24c1f41705b71.zip
- Update to 2.4.2
- Remove NLS support (has been removed from upstream) - Add LICENSE_FILE PR: 200877 Submitted by: gasol.wu@gmail.com
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/py-glances/Makefile12
-rw-r--r--sysutils/py-glances/distinfo4
-rw-r--r--sysutils/py-glances/files/patch-setup.py17
3 files changed, 9 insertions, 24 deletions
diff --git a/sysutils/py-glances/Makefile b/sysutils/py-glances/Makefile
index 2e03abbe0fb8..587a24deb2d3 100644
--- a/sysutils/py-glances/Makefile
+++ b/sysutils/py-glances/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= glances
-PORTVERSION= 2.1
+PORTVERSION= 2.4.2
DISTVERSIONPREFIX= v
CATEGORIES= sysutils python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -11,10 +11,11 @@ MAINTAINER= gasol.wu@gmail.com
COMMENT= CLI curses based monitoring tool for GNU/Linux and BSD OS
LICENSE= LGPL3
+LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}psutil>=2.1.1:${PORTSDIR}/sysutils/py-psutil
-OPTIONS_DEFINE= DOCS NLS
+OPTIONS_DEFINE= DOCS
OPTIONS_SUB= yes
USE_GITHUB= yes
@@ -24,16 +25,11 @@ USES= python
USE_PYTHON= autoplist distutils
PLIST_FILES= %%ETCDIR%%/glances.conf.sample \
- man/man1/glances.1.gz \
- %%NLS%%share/locale/de/LC_MESSAGES/glances.mo
-
-NLS_USES= gettext
+ man/man1/glances.1.gz
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/
- ${INSTALL_DATA} ${WRKSRC}/i18n/de/LC_MESSAGES/glances.mo \
- ${STAGEDIR}${PREFIX}/share/locale/de/LC_MESSAGES/
.include <bsd.port.mk>
diff --git a/sysutils/py-glances/distinfo b/sysutils/py-glances/distinfo
index 0e64845f3ab3..dd5611bfb1b9 100644
--- a/sysutils/py-glances/distinfo
+++ b/sysutils/py-glances/distinfo
@@ -1,2 +1,2 @@
-SHA256 (nicolargo-glances-v2.1_GH0.tar.gz) = fe74ad039aca9c12b656c5e7d687599231e380c75235335860a608947f596976
-SIZE (nicolargo-glances-v2.1_GH0.tar.gz) = 1779104
+SHA256 (nicolargo-glances-v2.4.2_GH0.tar.gz) = 725e8d15e8347e5371e3b8c7c3e9f2e3c8389dd847f01a693ceae8c910d1b97c
+SIZE (nicolargo-glances-v2.4.2_GH0.tar.gz) = 3077285
diff --git a/sysutils/py-glances/files/patch-setup.py b/sysutils/py-glances/files/patch-setup.py
index 58f6efbe9cd3..e0e3e52e9ad8 100644
--- a/sysutils/py-glances/files/patch-setup.py
+++ b/sysutils/py-glances/files/patch-setup.py
@@ -1,6 +1,6 @@
---- ./setup.py.orig 2014-06-16 10:56:37.000000000 +0800
-+++ ./setup.py 2014-06-16 10:57:02.000000000 +0800
-@@ -11,8 +11,7 @@
+--- setup.py.orig 2015-06-15 02:42:15 UTC
++++ setup.py
+@@ -15,8 +15,7 @@ def get_data_files():
data_files = [
('share/doc/glances', ['AUTHORS', 'COPYING', 'NEWS', 'README.rst',
'conf/glances.conf', 'docs/glances-doc.html']),
@@ -9,15 +9,4 @@
+ ('share/doc/glances/images', glob.glob('docs/images/*.png'))
]
- if hasattr(sys, 'real_prefix') or 'bsd' in sys.platform:
-@@ -23,10 +22,6 @@
- conf_path = os.path.join('/usr/local', 'etc', 'glances')
- elif 'win32' in sys.platform:
- conf_path = os.path.join(os.environ.get('APPDATA'), 'glances')
-- data_files.append((conf_path, ['conf/glances.conf']))
--
-- for mo in glob.glob('i18n/*/LC_MESSAGES/*.mo'):
-- data_files.append((os.path.dirname(mo).replace('i18n/', 'share/locale/'), [mo]))
-
return data_files
-