aboutsummaryrefslogtreecommitdiff
path: root/sysutils/py-glances
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2014-06-18 07:39:35 +0000
committerMartin Wilke <miwi@FreeBSD.org>2014-06-18 07:39:35 +0000
commitb7ad989463c0951d0f996d52180e41b35f802979 (patch)
treecfaee6253ab36815d1f6923f75aca3b66603a3b4 /sysutils/py-glances
parent748c5a4d340405646eea665ac07ed88b8f64aecb (diff)
downloadports-b7ad989463c0951d0f996d52180e41b35f802979.tar.gz
ports-b7ad989463c0951d0f996d52180e41b35f802979.zip
Notes
Diffstat (limited to 'sysutils/py-glances')
-rw-r--r--sysutils/py-glances/Makefile24
-rw-r--r--sysutils/py-glances/distinfo4
-rw-r--r--sysutils/py-glances/files/patch-setup.py40
3 files changed, 31 insertions, 37 deletions
diff --git a/sysutils/py-glances/Makefile b/sysutils/py-glances/Makefile
index 7d2c39489cab..d2d20d6ec758 100644
--- a/sysutils/py-glances/Makefile
+++ b/sysutils/py-glances/Makefile
@@ -2,11 +2,9 @@
# $FreeBSD$
PORTNAME= glances
-PORTVERSION= 1.7.7
+PORTVERSION= 2.0
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
@@ -19,21 +17,19 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Jinja2>=2.0.0:${PORTSDIR}/devel/py-Jinja2 \
OPTIONS_DEFINE= DOCS NLS
OPTIONS_SUB= yes
-WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+USE_GITHUB= yes
+GH_ACCOUNT= nicolargo
+GH_TAGNAME= v${PORTVERSION}
+GH_COMMIT= 2484bea
+
USE_PYTHON= yes
USE_PYDISTUTILS=yes
PYDISTUTILS_AUTOPLIST= yes
PLIST_FILES= %%ETCDIR%%/glances.conf.sample \
man/man1/glances.1.gz \
- %%NLS%%share/locale/de/LC_MESSAGES/glances.mo \
- %%NLS%%share/locale/es/LC_MESSAGES/glances.mo \
- %%NLS%%share/locale/fr/LC_MESSAGES/glances.mo \
- %%NLS%%share/locale/it/LC_MESSAGES/glances.mo \
- %%NLS%%share/locale/pt_BR/LC_MESSAGES/glances.mo \
- %%NLS%%share/locale/zh_CN/LC_MESSAGES/glances.mo
+ %%NLS%%share/locale/de/LC_MESSAGES/glances.mo
PLIST_DIRS= etc/glances
-PORTDOCS= *
NLS_USES= gettext
@@ -41,9 +37,7 @@ 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 de es fr it pt_BR zh_CN
- ${INSTALL_DATA} ${WRKSRC}/i18n/${lang}/LC_MESSAGES/glances.mo \
- ${STAGEDIR}${PREFIX}/share/locale/${lang}/LC_MESSAGES/
-.endfor
+ ${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 8459cb774f5b..57589d8956da 100644
--- a/sysutils/py-glances/distinfo
+++ b/sysutils/py-glances/distinfo
@@ -1,2 +1,2 @@
-SHA256 (v1.7.7.tar.gz) = 13c783333d4223040120f32665195694413f52a240cebfff48c154ca769efeff
-SIZE (v1.7.7.tar.gz) = 596125
+SHA256 (glances-2.0.tar.gz) = 544e66cbc6dab3f8485a8f889fe2927d1acf5b9136104bb44cf2c7d0075ad77b
+SIZE (glances-2.0.tar.gz) = 1692473
diff --git a/sysutils/py-glances/files/patch-setup.py b/sysutils/py-glances/files/patch-setup.py
index 48087c42028c..58f6efbe9cd3 100644
--- a/sysutils/py-glances/files/patch-setup.py
+++ b/sysutils/py-glances/files/patch-setup.py
@@ -1,23 +1,23 @@
---- ./setup.py.orig 2013-12-15 17:23:06.000000000 +0800
-+++ ./setup.py 2013-12-16 21:45:25.000000000 +0800
-@@ -9,8 +9,7 @@
- data_files = [
- ('share/doc/glances', ['AUTHORS', 'COPYING', 'NEWS', 'README.rst',
- 'conf/glances.conf', 'docs/glances-doc.html']),
-- ('share/doc/glances/images', glob.glob('docs/images/*.png')),
-- ('share/man/man1', ['man/glances.1'])
-+ ('share/doc/glances/images', glob.glob('docs/images/*.png'))
- ]
+--- ./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 @@
+ data_files = [
+ ('share/doc/glances', ['AUTHORS', 'COPYING', 'NEWS', 'README.rst',
+ 'conf/glances.conf', 'docs/glances-doc.html']),
+- ('share/doc/glances/images', glob.glob('docs/images/*.png')),
+- ('share/man/man1', ['man/glances.1'])
++ ('share/doc/glances/images', glob.glob('docs/images/*.png'))
+ ]
- if hasattr(sys, 'real_prefix') or 'bsd' in sys.platform:
-@@ -21,10 +20,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']))
+ 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]))
+- for mo in glob.glob('i18n/*/LC_MESSAGES/*.mo'):
+- data_files.append((os.path.dirname(mo).replace('i18n/', 'share/locale/'), [mo]))
+
+ return data_files
- if sys.platform.startswith('win'):
- requires = ['psutil>=0.5.1', 'colorconsole==0.6']