aboutsummaryrefslogtreecommitdiff
path: root/textproc/py-gettext
diff options
context:
space:
mode:
authorRuslan Makhmatkhanov <rm@FreeBSD.org>2011-12-25 12:08:12 +0000
committerRuslan Makhmatkhanov <rm@FreeBSD.org>2011-12-25 12:08:12 +0000
commit05b0797a7aece00711163c6777cb05b49d9a0623 (patch)
tree7a63b80df1c84327614bfc5c6d9257bcbf269554 /textproc/py-gettext
parent8c1dfd62726a047befe9b40e74fd8c60802414e5 (diff)
downloadports-05b0797a7aece00711163c6777cb05b49d9a0623.tar.gz
ports-05b0797a7aece00711163c6777cb05b49d9a0623.zip
- update to 2.0
- depend on devel/py-unittest2 conditionally (doesn't needed for python3) Approved by: novel (mentor, implicit)
Notes
Notes: svn path=/head/; revision=288000
Diffstat (limited to 'textproc/py-gettext')
-rw-r--r--textproc/py-gettext/Makefile13
-rw-r--r--textproc/py-gettext/distinfo4
-rw-r--r--textproc/py-gettext/pkg-plist2
3 files changed, 13 insertions, 6 deletions
diff --git a/textproc/py-gettext/Makefile b/textproc/py-gettext/Makefile
index 423dcac9db9e..7ed1f0c8e0bf 100644
--- a/textproc/py-gettext/Makefile
+++ b/textproc/py-gettext/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= gettext
-PORTVERSION= 1.2
+PORTVERSION= 2.0
CATEGORIES= textproc python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -17,11 +17,16 @@ COMMENT= Python Gettext po to mo file compiler
LICENSE= BSD
-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}unittest2>=0:${PORTSDIR}/devel/py-unittest2
-
+# Python3 and Pypy 1.7 ready
USE_PYTHON= yes
USE_PYDISTUTILS= easy_install
PYDISTUTILS_PKGNAME= python-${PORTNAME}
USE_ZIP= yes
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} <= 300
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}unittest2>=0:${PORTSDIR}/devel/py-unittest2
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/textproc/py-gettext/distinfo b/textproc/py-gettext/distinfo
index 2909977847d4..191f63d09db5 100644
--- a/textproc/py-gettext/distinfo
+++ b/textproc/py-gettext/distinfo
@@ -1,2 +1,2 @@
-SHA256 (python-gettext-1.2.zip) = e11bfa5d464964058a1df0b468208beb1e3207008da8305b7c0cc1f861ef7e44
-SIZE (python-gettext-1.2.zip) = 20524
+SHA256 (python-gettext-2.0.zip) = bb9aaea90527455164a390d613d6aecf8b0325992a2d48d7f12b8cd91fae9264
+SIZE (python-gettext-2.0.zip) = 23090
diff --git a/textproc/py-gettext/pkg-plist b/textproc/py-gettext/pkg-plist
index 2a0f2ce75a11..3da8357efa03 100644
--- a/textproc/py-gettext/pkg-plist
+++ b/textproc/py-gettext/pkg-plist
@@ -22,6 +22,8 @@
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/pythongettext/tests/test3.po
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/pythongettext/tests/test4.po
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/pythongettext/tests/test5.po
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/pythongettext/tests/test6.mo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/pythongettext/tests/test6.po
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/pythongettext/tests/test_compile.py
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/pythongettext/tests/test_compile.pyc
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/pythongettext/tests/test_compile.pyo