diff options
author | koobs <koobs@FreeBSD.org> | 2013-02-12 20:24:28 +0800 |
---|---|---|
committer | koobs <koobs@FreeBSD.org> | 2013-02-12 20:24:28 +0800 |
commit | 344f12670a5870c8256014405d63aece011d48a4 (patch) | |
tree | 46b74aab3bb99def145de21849bae12da0e5ee65 | |
parent | 0828f4feed7edc63c8fbaa4b6d7d5d38089a8336 (diff) | |
download | freebsd-ports-gnome-344f12670a5870c8256014405d63aece011d48a4.tar.gz freebsd-ports-gnome-344f12670a5870c8256014405d63aece011d48a4.tar.zst freebsd-ports-gnome-344f12670a5870c8256014405d63aece011d48a4.zip |
- Update to 4.2.3
- Add TEST_DEPENDS and regression-test target
- Add OPTIONS (TESTS)
- Limit USE_PYTHON version
- Tweak setup.py to allow use with dateutil > 2.0 (with comment)
Approved by: rm (mentor)
-rw-r--r-- | devel/py-sanetime/Makefile | 20 | ||||
-rw-r--r-- | devel/py-sanetime/distinfo | 4 | ||||
-rw-r--r-- | devel/py-sanetime/files/patch-setup.py | 15 |
3 files changed, 31 insertions, 8 deletions
diff --git a/devel/py-sanetime/Makefile b/devel/py-sanetime/Makefile index 724bd0243926..2a0466e2ef21 100644 --- a/devel/py-sanetime/Makefile +++ b/devel/py-sanetime/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= sanetime -PORTVERSION= 4.1.9 +PORTVERSION= 4.2.3 CATEGORIES= devel python astro MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -14,8 +14,22 @@ LICENSE= MIT RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dateutil>=1.5:${PORTSDIR}/devel/py-dateutil \ ${PYTHON_PKGNAMEPREFIX}pytz>=2010:${PORTSDIR}/devel/py-pytz +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}unittest2:${PORTSDIR}/devel/py-unittest2 -USE_PYTHON= yes -USE_PYDISTUTILS=easy_install +OPTIONS_DEFINE= TESTS +TESTS_DESC= Include tools for unit tests +OPTIONSFILE?= ${PORT_DBDIR}/py-${PORTNAME}/options + +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MTESTS} +BUILD_DEPENDS:= ${TEST_DEPENDS} +.endif + +USE_PYTHON= -2.7 +USE_PYDISTUTILS= easy_install + +regression-test: build + cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test .include <bsd.port.mk> diff --git a/devel/py-sanetime/distinfo b/devel/py-sanetime/distinfo index 446997bbde24..f635ad65ff61 100644 --- a/devel/py-sanetime/distinfo +++ b/devel/py-sanetime/distinfo @@ -1,2 +1,2 @@ -SHA256 (sanetime-4.1.9.tar.gz) = 36144e930ccba3cf36639f9b7c8762f2743893a0ad882dd20bcfff103ea5ceca -SIZE (sanetime-4.1.9.tar.gz) = 13852 +SHA256 (sanetime-4.2.3.tar.gz) = ec69cc3494a98954b90b4c0659355194873eacca86adaf655518cee3ccc79fb9 +SIZE (sanetime-4.2.3.tar.gz) = 22179 diff --git a/devel/py-sanetime/files/patch-setup.py b/devel/py-sanetime/files/patch-setup.py index 51979c6b174d..7d30f88b911c 100644 --- a/devel/py-sanetime/files/patch-setup.py +++ b/devel/py-sanetime/files/patch-setup.py @@ -1,8 +1,17 @@ ---- ./setup.py.orig 2012-07-14 18:23:43.000000000 +1000 -+++ ./setup.py 2012-07-14 18:24:21.000000000 +1000 -@@ -20,6 +20,7 @@ +--- ./setup.py.orig 2013-01-23 18:34:56.000000000 +1100 ++++ ./setup.py 2013-02-10 17:59:21.880891462 +1100 +@@ -18,7 +18,7 @@ + long_description=open('README.markdown').read(), + install_requires=[ + 'pytz>=2010', +- 'python-dateutil>=1.5,<2.0', # we're not compatible with python 3.0 yet ++ 'python-dateutil>=1.5', # py-dateutil >2.1 is Python 2/3 compat 'unittest2' ], + classifiers=[ +@@ -54,6 +54,7 @@ + ], + include_package_data=True, test_suite='sanetime.test', - platforms=['any'] + platforms=['any'], |