aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorkoobs <koobs@FreeBSD.org>2013-03-24 12:42:13 +0800
committerkoobs <koobs@FreeBSD.org>2013-03-24 12:42:13 +0800
commit797a1d58fad02c9b1a854f687e1a6f346aa578fb (patch)
tree018bc0e16ab3130b162eff655f8cd89da909eb5f /security
parent711d6fb873d5995d71624286e46b81486e7ebda9 (diff)
downloadfreebsd-ports-gnome-797a1d58fad02c9b1a854f687e1a6f346aa578fb.tar.gz
freebsd-ports-gnome-797a1d58fad02c9b1a854f687e1a6f346aa578fb.tar.zst
freebsd-ports-gnome-797a1d58fad02c9b1a854f687e1a6f346aa578fb.zip
- Update to 0.3.8
- Update pkg-plist - Use GITHUB for DISTFILES - Add TEST_DEPENDS and regression-test target - Refactor {BUILD,RUN,TEST}_DEPENDS lists - Update COMMENT accoding to standards - Tab->space in pkg-descr Changes: https://github.com/idan/oauthlib/tree/0.3.8#changelog Approved by: rm (mentor)
Diffstat (limited to 'security')
-rw-r--r--security/py-oauthlib/Makefile29
-rw-r--r--security/py-oauthlib/distinfo4
-rw-r--r--security/py-oauthlib/pkg-descr2
-rw-r--r--security/py-oauthlib/pkg-plist21
4 files changed, 44 insertions, 12 deletions
diff --git a/security/py-oauthlib/Makefile b/security/py-oauthlib/Makefile
index e1418588d800..74457fbda967 100644
--- a/security/py-oauthlib/Makefile
+++ b/security/py-oauthlib/Makefile
@@ -2,21 +2,34 @@
# $FreeBSD$
PORTNAME= oauthlib
-PORTVERSION= 0.3.0
+PORTVERSION= 0.3.8
CATEGORIES= security net python
-MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= koobs@FreeBSD.org
-COMMENT= An RFC-compliant Python implementation of OAuth
+COMMENT= RFC-compliant Python implementation of OAuth
LICENSE= BSD
-BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pycrypto>0:${PORTSDIR}/security/py-pycrypto
-RUN_DEPENDS:= ${BUILD_DEPENDS}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pycrypto>0:${PORTSDIR}/security/py-pycrypto
+TEST_DEPENDS= nosetests:${PORTSDIR}/devel/py-nose \
+ ${PYTHON_PKGNAMEPREFIX}pycrypto>0:${PORTSDIR}/security/py-pycrypto
-# Python3 ready
-USE_PYTHON= yes
+USE_GITHUB= yes
+USE_PYTHON= yes
USE_PYDISTUTILS= easy_install
-.include <bsd.port.mk>
+GH_ACCOUNT= idan
+GH_COMMIT= 554182c
+
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 300
+TEST_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}mock>0:${PORTSDIR}/devel/py-mock \
+ ${PYTHON_PKGNAMEPREFIX}unittest2>0:${PORTSDIR}/devel/py-unittest2
+.endif
+
+regression-test: build
+ @cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test
+
+.include <bsd.port.post.mk>
diff --git a/security/py-oauthlib/distinfo b/security/py-oauthlib/distinfo
index cb0151f7efb1..452f5914c496 100644
--- a/security/py-oauthlib/distinfo
+++ b/security/py-oauthlib/distinfo
@@ -1,2 +1,2 @@
-SHA256 (oauthlib-0.3.0.tar.gz) = 8c62a18370b87fda3299bad4d4af2949e1bcb2d65519887ffcdcbcd00dfa9bf0
-SIZE (oauthlib-0.3.0.tar.gz) = 43581
+SHA256 (oauthlib-0.3.8.tar.gz) = a06090d62ebeea8aa3d02d4404bd619216fa1aaf5a00e932288bf605ec5f57f7
+SIZE (oauthlib-0.3.8.tar.gz) = 85375
diff --git a/security/py-oauthlib/pkg-descr b/security/py-oauthlib/pkg-descr
index e8a387f04725..5366bf857c60 100644
--- a/security/py-oauthlib/pkg-descr
+++ b/security/py-oauthlib/pkg-descr
@@ -2,4 +2,4 @@ OAuthLib is a generic Python module which implements the logic of OAuth without
assuming a specific HTTP request object. Use it to graft OAuth support onto
your favorite HTTP library.
-WWW: https://github.com/idangazit/oauthlib
+WWW: https://github.com/idangazit/oauthlib
diff --git a/security/py-oauthlib/pkg-plist b/security/py-oauthlib/pkg-plist
index 9c9a3885a289..50c0e73be0b3 100644
--- a/security/py-oauthlib/pkg-plist
+++ b/security/py-oauthlib/pkg-plist
@@ -2,9 +2,9 @@
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/PKG-INFO
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/SOURCES.txt
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/dependency_links.txt
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/not-zip-safe
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/requires.txt
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/top_level.txt
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/not-zip-safe
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/oauthlib/__init__.py
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/oauthlib/__init__.pyc
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/oauthlib/__init__.pyo
@@ -32,6 +32,15 @@
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/oauthlib/oauth2/draft25/__init__.py
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/oauthlib/oauth2/draft25/__init__.pyc
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/oauthlib/oauth2/draft25/__init__.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/oauthlib/oauth2/draft25/errors.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/oauthlib/oauth2/draft25/errors.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/oauthlib/oauth2/draft25/errors.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/oauthlib/oauth2/draft25/exceptions.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/oauthlib/oauth2/draft25/exceptions.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/oauthlib/oauth2/draft25/exceptions.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/oauthlib/oauth2/draft25/grant_types.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/oauthlib/oauth2/draft25/grant_types.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/oauthlib/oauth2/draft25/grant_types.pyo
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/oauthlib/oauth2/draft25/parameters.py
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/oauthlib/oauth2/draft25/parameters.pyc
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/oauthlib/oauth2/draft25/parameters.pyo
@@ -41,6 +50,16 @@
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/oauthlib/oauth2/draft25/utils.py
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/oauthlib/oauth2/draft25/utils.pyc
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/oauthlib/oauth2/draft25/utils.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/oauthlib/oauth2/ext/__init__.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/oauthlib/oauth2/ext/__init__.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/oauthlib/oauth2/ext/__init__.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/oauthlib/oauth2/ext/django.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/oauthlib/oauth2/ext/django.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/oauthlib/oauth2/ext/django.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/oauthlib/uri_validate.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/oauthlib/uri_validate.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/oauthlib/uri_validate.pyo
+@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/oauthlib/oauth2/ext
@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/oauthlib/oauth2/draft25
@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/oauthlib/oauth2
@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/oauthlib/oauth1/rfc5849