diff --git a/devel/py-omnijson/Makefile b/devel/py-omnijson/Makefile index b5d593a1d3e3..963bd136462a 100644 --- a/devel/py-omnijson/Makefile +++ b/devel/py-omnijson/Makefile @@ -3,8 +3,8 @@ PORTNAME= omnijson PORTVERSION= 0.1.2 +PORTREVISION= 1 CATEGORIES= devel python -MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= koobs@FreeBSD.org @@ -13,8 +13,23 @@ COMMENT= Wraps the best Python JSON installed LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:${PORTSDIR}/devel/py-pytest + +OPTIONS_DEFINE= TESTS + +TESTS_DESC= Install tools required to run unit tests +TESTS_BUILD_DEPENDS= ${TEST_DEPENDS} + +USE_GITHUB= yes +GH_ACCOUNT= kennethreitz +GH_TAGNAME= v${PORTVERSION} +GH_COMMIT= 2235005 + USE_PYTHON= yes USE_PYDISTUTILS= yes PYDISTUTILS_AUTOPLIST= yes +regression-test: build + @cd ${WRKSRC} && ${PYTHON_CMD} -m pytest + .include diff --git a/devel/py-omnijson/distinfo b/devel/py-omnijson/distinfo index 86d2d62c2f3b..86585b73d77c 100644 --- a/devel/py-omnijson/distinfo +++ b/devel/py-omnijson/distinfo @@ -1,2 +1,2 @@ -SHA256 (omnijson-0.1.2.tar.gz) = 0b73d7f3129b92b55adb3463d84d1ca7e4261042e2499759e46e0d77453d614c -SIZE (omnijson-0.1.2.tar.gz) = 16817 +SHA256 (omnijson-0.1.2.tar.gz) = 92758346537371ef41cf417bad62c786233d10d16940fb90a01a437e6e850346 +SIZE (omnijson-0.1.2.tar.gz) = 16728 diff --git a/devel/py-omnijson/pkg-descr b/devel/py-omnijson/pkg-descr index 712a2cab507c..eb8760f1f64a 100644 --- a/devel/py-omnijson/pkg-descr +++ b/devel/py-omnijson/pkg-descr @@ -5,7 +5,7 @@ Features: * Loads whichever is the fastest JSON module installed * Falls back on built in pure-python simplejson, just in case. * Proper API (loads(), dumps()) - * Verndorizable + * Vendorizable * Supports Python 2.5-3.2 out of the box WWW: https://github.com/kennethreitz/omnijson