svn commit: r306124 - head/www/py-gunicorn
Ruslan Mahmatkhanov
rm at FreeBSD.org
Fri Oct 19 14:26:06 UTC 2012
Author: rm
Date: Fri Oct 19 14:26:05 2012
New Revision: 306124
URL: http://svn.freebsd.org/changeset/ports/306124
Log:
- Update to 0.15.0
- Tweak USE_PYTHON version
- Add TEST_DEPENDS and regression-test: target
- Add LICENSE
- Add TORNADO and TESTS
- Add NO_OPTIONS_SORT
- Tweak OPTIONS descriptions
- Trim Makefile header
- Whitespace alignment
PR: 172875
Submitted by: Kubilay Kocak <koobs.freebsd at gmail dot com> (maintainer)
Tested by: redports
Feature safe: yes
Modified:
head/www/py-gunicorn/Makefile
head/www/py-gunicorn/distinfo
head/www/py-gunicorn/pkg-descr
Modified: head/www/py-gunicorn/Makefile
==============================================================================
--- head/www/py-gunicorn/Makefile Fri Oct 19 14:13:06 2012 (r306123)
+++ head/www/py-gunicorn/Makefile Fri Oct 19 14:26:05 2012 (r306124)
@@ -1,12 +1,8 @@
-# New ports collection makefile for: py-gunicorn
-# Date created: 2010-03-03
-# Whom: Kristaps Kulis <kristaps.kulis at gmail.com>
-#
+# Created by: Kristaps Kulis <kristaps.kulis at gmail.com>
# $FreeBSD$
-#
PORTNAME= gunicorn
-PORTVERSION= 0.14.5
+PORTVERSION= 0.15.0
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -14,15 +10,22 @@ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= koobs.freebsd at gmail.com
COMMENT= Python WSGI server for unix
-USE_PYTHON= 2.5-2.7
+LICENSE= MIT
+
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>0:${PORTSDIR}/devel/py-nose
+
+USE_PYTHON= -2.7
USE_PYDISTUTILS= easy_install
-OPTIONS_DEFINE= EVENTLET GEVENT SETPROC
-EVENTLET_DESC= Add Eventlet asynchronous worker
-GEVENT_DESC= Add Gevent asynchronous worker
-SETPROC_DESC= Change process name support
+OPTIONS_DEFINE= EVENTLET GEVENT TORNADO SETPROC TESTS
+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
-OPTIONSFILE?= ${PORT_DBDIR}/py-${PORTNAME}/options
+OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
+NO_OPTIONS_SORT= yes
.include <bsd.port.options.mk>
@@ -31,11 +34,22 @@ RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}eve
.endif
.if ${PORT_OPTIONS:MGEVENT}
-RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/gevent/__init__.py:${PORTSDIR}/devel/py-gevent
+RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}gevent>0:${PORTSDIR}/devel/py-gevent
+.endif
+
+.if ${PORT_OPTIONS:MTORNADO}
+RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}tornado>=2.2:${PORTSDIR}/www/py-tornado
.endif
.if ${PORT_OPTIONS:MSETPROC}
-RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/setproctitle.so:${PORTSDIR}/devel/py-setproctitle
+RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}setproctitle>0:${PORTSDIR}/devel/py-setproctitle
.endif
+.if ${PORT_OPTIONS:MTESTS}
+BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}nose>0:${PORTSDIR}/devel/py-nose
+.endif
+
+regression-test: build
+ @cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} nosetests
+
.include <bsd.port.mk>
Modified: head/www/py-gunicorn/distinfo
==============================================================================
--- head/www/py-gunicorn/distinfo Fri Oct 19 14:13:06 2012 (r306123)
+++ head/www/py-gunicorn/distinfo Fri Oct 19 14:26:05 2012 (r306124)
@@ -1,2 +1,2 @@
-SHA256 (gunicorn-0.14.5.tar.gz) = cef7820010cc5d1bf134e25b0ab22097b67886ae72c42a774d555be605a9b422
-SIZE (gunicorn-0.14.5.tar.gz) = 228742
+SHA256 (gunicorn-0.15.0.tar.gz) = 811f7e9b6b81f5ef4ba07ba071ee8f09ce2c9b16824b75fcaf6452af8bc9a9ad
+SIZE (gunicorn-0.15.0.tar.gz) = 119108
Modified: head/www/py-gunicorn/pkg-descr
==============================================================================
--- head/www/py-gunicorn/pkg-descr Fri Oct 19 14:13:06 2012 (r306123)
+++ head/www/py-gunicorn/pkg-descr Fri Oct 19 14:26:05 2012 (r306124)
@@ -1,6 +1,6 @@
Gunicorn 'Green Unicorn' is a Python WSGI HTTP Server for UNIX.
-It's a pre-fork worker model ported from Ruby's Unicorn project.
+It's a pre-fork worker model ported from Ruby's Unicorn project.
The Gunicorn server is broadly compatible with various web frameworks,
simply implemented, light on server resource usage, and fairly speedy.
-WWW: http://gunicorn.org/
+WWW: http://gunicorn.org/
More information about the svn-ports-head
mailing list