aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorrm <rm@FreeBSD.org>2012-12-02 05:22:44 +0800
committerrm <rm@FreeBSD.org>2012-12-02 05:22:44 +0800
commite2171e833c7406451e3ed4057842e55a243f0558 (patch)
treefcf09221eacae3e991bea70467657b84ef36e1fd /www
parent0b457b53586dabceea981acdd4051d4310027bc0 (diff)
downloadfreebsd-ports-gnome-e2171e833c7406451e3ed4057842e55a243f0558.tar.gz
freebsd-ports-gnome-e2171e833c7406451e3ed4057842e55a243f0558.tar.zst
freebsd-ports-gnome-e2171e833c7406451e3ed4057842e55a243f0558.zip
- update to 0.16.1
- Use GITHUB mastersite instead of CHEESESHOP - remove USE_PYTHON version limit (Python3 Ready) - tweak TESTS_DESC - allow OPTIONSFILE to be overridden - re-order TEST_DEPENDS and replace py-nose with py-test in it - add {TEST,RUN}_DEPENDS to BUILD_DEPENDS when TESTS option is selected - patch out pytest-cov from requirements_dev.txt - update regression-test target bits - fix plist for python >= 3.2, while here PR: 173901 Submitted by: Kubilay Kocak <koobs.freebsd@gmail.com> (maintainer) Feature safe: yes
Diffstat (limited to 'www')
-rw-r--r--www/py-gunicorn/Makefile30
-rw-r--r--www/py-gunicorn/distinfo4
-rw-r--r--www/py-gunicorn/files/patch-requirements_dev.txt5
-rw-r--r--www/py-gunicorn/pkg-plist6
4 files changed, 30 insertions, 15 deletions
diff --git a/www/py-gunicorn/Makefile b/www/py-gunicorn/Makefile
index 0551b6875318..955434c60450 100644
--- a/www/py-gunicorn/Makefile
+++ b/www/py-gunicorn/Makefile
@@ -2,9 +2,8 @@
# $FreeBSD$
PORTNAME= gunicorn
-PORTVERSION= 0.15.0
+PORTVERSION= 0.16.1
CATEGORIES= www python
-MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= koobs.freebsd@gmail.com
@@ -12,9 +11,13 @@ COMMENT= Python WSGI server for unix
LICENSE= MIT
-TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>0:${PORTSDIR}/devel/py-nose
+USE_GITHUB= yes
+GH_ACCOUNT= benoitc
+GH_TAGNAME= 0.16.1
+GH_COMMIT= 0d91a51
-USE_PYTHON= -2.7
+# Python3 Ready
+USE_PYTHON= yes
USE_PYDISTUTILS= easy_install
OPTIONS_DEFINE= EVENTLET GEVENT TORNADO SETPROC TESTS
@@ -22,12 +25,12 @@ EVENTLET_DESC= Add Eventlet async worker
GEVENT_DESC= Add Gevent async worker
TORNADO_DESC= Add Tornado async worker
SETPROC_DESC= Support changing process title (setproctitle)
-TESTS_DESC= Install nose for running unittests
+TESTS_DESC= Install tools for running unittests
-OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
+OPTIONSFILE?= ${PORT_DBDIR}/py-${PORTNAME}/options
NO_OPTIONS_SORT= yes
-.include <bsd.port.options.mk>
+.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MEVENTLET}
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}eventlet>=0.9:${PORTSDIR}/net/py-eventlet
@@ -46,10 +49,17 @@ RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}setproctitle>0:${PORTSDIR}/devel/py-setproc
.endif
.if ${PORT_OPTIONS:MTESTS}
-BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}nose>0:${PORTSDIR}/devel/py-nose
+BUILD_DEPENDS:= ${TEST_DEPENDS} \
+ ${RUN_DEPENDS}
.endif
+TEST_DEPENDS:= ${PYTHON_PKGNAMEPREFIX}pytest>0:${PORTSDIR}/devel/py-pytest
+
regression-test: build
- @cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} nosetests
+ @cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test
+
+.if ${PYTHON_REL} >= 320
+.include "${PORTSDIR}/devel/py-virtualenv/files/py3k-fix-pkg-plist.inc"
+.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/www/py-gunicorn/distinfo b/www/py-gunicorn/distinfo
index ffb2357a6814..dd98e73a93bb 100644
--- a/www/py-gunicorn/distinfo
+++ b/www/py-gunicorn/distinfo
@@ -1,2 +1,2 @@
-SHA256 (gunicorn-0.15.0.tar.gz) = 811f7e9b6b81f5ef4ba07ba071ee8f09ce2c9b16824b75fcaf6452af8bc9a9ad
-SIZE (gunicorn-0.15.0.tar.gz) = 119108
+SHA256 (gunicorn-0.16.1.tar.gz) = e1972878b7a742302fb5281cb4d4c64f4c0eace2c58a814e88bd09754149ff40
+SIZE (gunicorn-0.16.1.tar.gz) = 333263
diff --git a/www/py-gunicorn/files/patch-requirements_dev.txt b/www/py-gunicorn/files/patch-requirements_dev.txt
new file mode 100644
index 000000000000..014fbf677514
--- /dev/null
+++ b/www/py-gunicorn/files/patch-requirements_dev.txt
@@ -0,0 +1,5 @@
+--- ./requirements_dev.txt.orig 2012-11-20 18:50:15.000000000 +1100
++++ ./requirements_dev.txt 2012-11-20 18:50:21.000000000 +1100
+@@ -1,2 +1 @@
+ pytest
+-pytest-cov
diff --git a/www/py-gunicorn/pkg-plist b/www/py-gunicorn/pkg-plist
index 9534c365ac55..43ac7b122fb7 100644
--- a/www/py-gunicorn/pkg-plist
+++ b/www/py-gunicorn/pkg-plist
@@ -67,9 +67,6 @@ bin/gunicorn_paster
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/gunicorn/http/wsgi.py
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/gunicorn/http/wsgi.pyc
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/gunicorn/http/wsgi.pyo
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/gunicorn/logging_config.py
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/gunicorn/logging_config.pyc
-%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/gunicorn/logging_config.pyo
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/gunicorn/management/__init__.py
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/gunicorn/management/__init__.pyc
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/gunicorn/management/__init__.pyo
@@ -82,6 +79,9 @@ bin/gunicorn_paster
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/gunicorn/pidfile.py
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/gunicorn/pidfile.pyc
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/gunicorn/pidfile.pyo
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/gunicorn/six.py
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/gunicorn/six.pyc
+%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/gunicorn/six.pyo
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/gunicorn/sock.py
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/gunicorn/sock.pyc
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/gunicorn/sock.pyo